AS Maths Decision Paper June 2011 Model Answers.

Slides:



Advertisements
Similar presentations
Decision Maths Networks Kruskals Algorithm Wiltshire Networks A Network is a weighted graph, which just means there is a number associated with each.
Advertisements

Networks Prim’s Algorithm
Minimum Spanning Tree Sarah Brubaker Tuesday 4/22/8.
6.8 The Cheapest-Link Algorithm. The Cheapest-Link Algorithm Pick the edge with the smallest weight and mark it Pick the next edge with the smallest weight.
MINIMAL CONNECTOR PROBLEMS Problem: A cable TV company is installing a system of cables to connect all the towns in a region. The numbers in the network.
Prim’s Algorithm from a matrix A cable TV company is installing a system of cables to connect all the towns in the region. The numbers in the network are.
Aims: To know the terms: tree, spanning tree, minimum spanning tree. To understand that a minimum spanning tree connects a network using the lowest possible.
3 -1 Chapter 3 The Greedy Method 3 -2 The greedy method Suppose that a problem can be solved by a sequence of decisions. The greedy method has that each.
Is the following graph Hamiltonian- connected from vertex v? a). Yes b). No c). I have absolutely no idea v.
Discrete Math for CS Chapter 7: Graphs. Discrete Math for CS Map of Koenigsberg at the time of Euler.
Algorithms on graphs In Decision Mathematics, a graph consists of points (called vertices or nodes) which are connected by lines (edges or arcs). Eg in.
The Travelling Salesman Algorithm A Salesman has to visit lots of different stores and return to the starting base On a graph this means visiting every.
Quickest Route B St Li C La time matrix (minutes) Liskeard Launceston Callington St Austell Bodmin 32 What is the quickest route from.
Algorithmic Foundations COMP108 COMP108 Algorithmic Foundations Greedy methods Prudence Wong
© The McGraw-Hill Companies, Inc., Chapter 3 The Greedy Method.
Slide 14-1 Copyright © 2005 Pearson Education, Inc. SEVENTH EDITION and EXPANDED SEVENTH EDITION.
Graph Theory Topics to be covered:
Graph Theory Hamilton Paths and Hamilton Circuits.
Chapter 4 sections 1 and 2.  Fig. 1  Not connected  All vertices are even.  Fig. 2  Connected  All vertices are even.
Module 5 – Networks and Decision Mathematics Chapter 23 – Undirected Graphs.
TSP – Upper Bounds and Lower Bounds Initial problem : Upper Bound A salesman based in Stockton needs to visit shops based in Darlington, Billingham, Middlesbrough,
Graphs A ‘Graph’ is a diagram that shows how things are connected together. It makes no attempt to draw actual paths or routes and scale is generally inconsequential.
Minimum Spanning tree Prim’s algorithm 1.Select any vertex 2.Select the shortest edge connected to that vertex 3.Select the shortest edge which connects.
By Meli & Amy & Meggie & Bex. What is route inspection hmmmm??? Objective: Is to go along every single edge and end up back to where you started from.
Prims Algorithm for finding a minimum spanning tree
Approximation Algorithms Guo QI, Chen Zhenghai, Wang Guanhua, Shen Shiqi, Himeshi De Silva.
Minimum Spanning Trees Text Read Weiss, §9.5 Prim’s Algorithm Weiss §9.5.1 Similar to Dijkstra’s Algorithm Kruskal’s Algorithm Weiss §9.5.2 Focuses on.
Graphs Definition: a graph is an abstract representation of a set of objects where some pairs of the objects are connected by links. The interconnected.
Chapter 14 Section 3 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
DECISION 1. How do you do a Bubble Sort? Bubble Sort:  You compare adjacent items in a list;  If they are in order, leave them.  If they are not in.
AS Decision Maths Tips for each Topic. Kruskal and Prim What examiner’s are looking for A table of values in the order that they are added and the total.
AS Maths Decision Paper January 2011 Model Answers.
Unit 3 Chinese Postman. Non - Eulerian Semi - Eulerian Eulerian.
1 Data Structures and Algorithms Graphs. 2 Graphs Basic Definitions Paths and Cycles Connectivity Other Properties Representation Examples of Graph Algorithms:
CSE 326: Data Structures Lecture #23 Dijkstra and Kruskal (sittin’ in a graph) Steve Wolfman Winter Quarter 2000.
Shortest Path -Prim’s -Djikstra’s. PRIM’s - Minimum Spanning Tree -A spanning tree of a graph is a tree that has all the vertices of the graph connected.
The graph is neither Eulerian or Semi – Eulerian as it has 4 ODD vertices.
Lower bound algorithm. 1 Start from A. Delete vertex A and all edges meeting at A. A B C D 4 5 E Find the length of the minimum spanning.
AS Maths Decision Paper June 2011 Model Answers.
Minimum Spanning Trees
COMP108 Algorithmic Foundations Greedy methods
Redraw these graphs so that none of the line intersect except at the vertices B C D E F G H.
Discrete Math 2 Weighted Graph Search Tree
Minimum Spanning Trees and Shortest Paths
Jan 2007.
It’s a powerpoint! SWEET!
Planar Graphs & Euler’s Formula
CSE373: Data Structures & Algorithms Lecture 12: Minimum Spanning Trees Catie Baker Spring 2015.
Directed Graphs (Part II)
CSE373: Data Structures & Algorithms Lecture 20: Minimum Spanning Trees Linda Shapiro Spring 2016.
CSE 373 Data Structures and Algorithms
Shortest Path.
AS Maths Decision Paper January 2006 Model Answers.
AS Maths Decision Paper January 2012 Model Answers.
Route Inspection The first method mark is for three distinct pairings of the correct four odd nodes. Get this wrong and you lose all say (five) marks.
AB AC AD AE AF 5 ways If you used AB, then, there would be 4 remaining ODD vertices (C, D, E and F) CD CE CF 3 ways If you used CD, then, there.
Route Inspection Which of these can be drawn without taking your pencil off the paper and without going over the same line twice? If we introduce a vertex.
AS Maths Decision Paper January 2010 Model Answers.
Networks Kruskal’s Algorithm
Minimum Spanning tree Select any vertex
Lecture 19: Minimum Spanning Trees
Networks Prim’s Algorithm
The Greedy Approach Young CS 530 Adv. Algo. Greedy.
Kruskal’s Algorithm AQR.
AS Maths Decision Paper June 2013 Model Answers.
CSE 373: Data Structures and Algorithms
Lecture 23: Minimum Spanning Trees
DECISION 1 “It’s obvious” “It’s easy”
Homework Solutions.
Jan 2009.
Presentation transcript:

AS Maths Decision Paper June 2011 Model Answers

It is important students have a copy of the questions as you go through the model answers.

Grade Boundaries Grade A B C D E Marks 59 52 45 39 33

A 1 B 2 C 3 D 4 E 5 F 6

Final Match – 1 then E – 5 – D – 2 – B A1, B6, C4, D2, E3, F5 Initial Match A 1 B 2 C 3 D 4 E 5 F 6 A 1 B 2 C 3 D 4 E 5 F 6 One solution is Final Match E – 5 – D – 2 – B – 1 then / / A1, B6, C4, D2, E3, F5 F – 5 – E – 3 – A – 1 – B – 6 / / /

x < 6 x < 4 Initial List 6 4 x 2 11 After 1st pass 4 x 2 6 11 6 swap with 4, 6 swap with x, 6 swap with 2, x < 6 After 2nd pass x 2 4 6 11 x < 4 4 swap with x, 4 swap with 2,

x < 11 x > 2 x = 3 Initial List 11 x 2 4 6 After 1st pass x 11 2 4 6 x < 11 11 swap with x After 2nd pass 2 x 11 4 6 x > 2 11 swap with 2 x swap with 2 c) So x > 2, but < 4 (part 1) then x = 3

AC = 10 CH = 9 FH = 8 CE = 10 ED = 11 Could use CD GH = 13 DB = 14 1 8 2 6 5 4 7 3 CH = 9 FH = 8 CE = 10 ED = 11 Could use CD GH = 13 DB = 14

75p AC = 10 CH = 9 FH = 8 CE = 10 ED = 11 GH = 13 DB = 14 Total Spanning Tree = 13 14 G B 75p

70p Delete ALL edges connected to H Total Spanning Tree = 10 C 10 E 11 9 11 8 F H D 14 13 14 Total Spanning Tree = 70p G B From the matrix TWO more edges need to be added, (AF 11 and any one of GC, GA, GD and GF all 14 are the lowest)

7 18 14 13 17 29 10 22 23 9 8 6 14 13 18 16

Route O, F, S, T, E, D 16 minutes Route O, F, S, R, B

ODD vertices at A, C, D, F AC + DF AC (14) + DF (18) = 32 AF + CD AF (10) + CD (26) = 36 AD + CF AD (26) + CF (24) = 50 Repeat AC + DF = 32 Total route is 150 + (BE + CD) 32 = 182 km

As he is starting at an ODD vertex and completing his journey at an ODD vertex (A and C) he only needs to repeat FD Total = 150 + 18 = 168 km

ci) She needs to start at an ODD vertex and finish at an ODD vertex and REPEAT the SMALLEST value of the pairs of ODD VERTICES Smallest distance is AF (10) Distance therefore is 150 + 10 = = 160 km cii) If she repeats AF she must start / finish at C and D

Line A B C D E 10 6 20 7 30 300 40 6.5 50 25.375 100 6.5 40 6.75 50 -7.547 80 6.75 40 6.625 50 9.92 100 6.625 40 6.6875 50 0.92

First reason – there is no output Second reason – Need to know an interval within which the cube root lies at the outset

200x + 1000y = 5000 → x + 5y ≥ 25 200x + 1500y = 6000 → 2x + 15y ≥ 60 100x + 2500y = 4000 → x + 25y ≥ 40 (C =) 2.5x +15y

Feasible Region x + 5y ≥ 25 2x + 15y ≥ 60 x + 25y ≥ 40 Objective Line (C =) 2.5x +15y 2.5x + 15y = 37.5 x = 15, y = 2.5 Objective Line

Feasible Region 15 DIY, 2 Trade Cost (C =) 2.5x +15y 2.5 x 15 + 15 x 2 = 37.5 + 30 = £67.50 Objective Line

P → U → S → R This is shorter than any other route

40 24 26 14 40 16 28 26 24 16 12 10 26 28 12 14 26 10

ci) Q U S T P R Q ci) Q → U → S → T → P → R → Q 11 + 10 + 12 + 26 + 40 + 20 = 119 miles

ci) Q U S T P R Q Q → U U → S S → T T → U → P P → U → S S → R R → Q cii) Q → U → S → T → U → P → U → S → R → Q

Lower Bound 52 + 31 = 83 minutes Remove Q Q 20 11 P U T S R 16 10 14 12 12 Either UT or ST as both12 Total = 52 Add lowest 2 from Q QU = 11 + QR = 20 = 31 Q R 20 U 11 Lower Bound 52 + 31 = 83 minutes This is not an optimal route as at least one edge has to be repeated