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.

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

1 LP Duality Lecture 13: Feb Min-Max Theorems In bipartite graph, Maximum matching = Minimum Vertex Cover In every graph, Maximum Flow = Minimum.
Networks Prim’s Algorithm
Introduction to Graph Theory Instructor: Dr. Chaudhary Department of Computer Science Millersville University Reading Assignment Chapter 1.
Greed is good. (Some of the time)
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.
Chapter 3 The Greedy Method 3.
1 Discrete Structures & Algorithms Graphs and Trees: II EECE 320.
Linear Programming Unit 2, Lesson 4 10/13.
Graph Algorithms: Minimum Spanning Tree We are given a weighted, undirected graph G = (V, E), with weight function w:
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.
Approximation Algorithms
Graphs & Graph Algorithms 2 Nelson Padua-Perez Bill Pugh Department of Computer Science University of Maryland, College Park.
MATH 310, FALL 2003 (Combinatorial Problem Solving) Lecture 15, Friday, October 3.
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.
Chapter 5 Linear Inequalities and Linear Programming Section R Review.
Systems of Equations and Inequalities
Busby, Dodge, Fleming, and Negrusa. Backtracking Algorithm Is used to solve problems for which a sequence of objects is to be selected from a set such.
© The McGraw-Hill Companies, Inc., Chapter 3 The Greedy Method.
Programming for Geographical Information Analysis: Advanced Skills Online mini-lecture: Introduction to Networks Dr Andy Evans.
Slide 14-1 Copyright © 2005 Pearson Education, Inc. SEVENTH EDITION and EXPANDED SEVENTH EDITION.
Graph Theory Topics to be covered:
1 Introduction to Approximation Algorithms. 2 NP-completeness Do your best then.
Structures 7 Decision Maths: Graph Theory, Networks and Algorithms.
© 2015 JW Ryder CSCI 203 Data Structures1. © 2015 JW Ryder CSCI 203 Data Structures2.
The travelling Salesman problem involves visiting every town (node) on a graph and returning to the start in the shortest distance. The slides will show.
Minimum spanning trees Aims: To know the terms: tree, spanning tree, minimum spanning tree. To understand that a minimum spanning tree connects a network.
Linear Programming Problem. Definition A linear programming problem is the problem of optimizing (maximizing or minimizing) a linear function (a function.
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.
D1 stuff The tail wags the dog. M1A1 A1 A1 We mark your best effort.
Warm-up Solve each system of equations:
Graphs Part II Lecture 7. Lecture Objectives  Topological Sort  Spanning Tree  Minimum Spanning Tree  Shortest Path.
Prims Algorithm for finding a minimum spanning tree
Tree Diagrams A tree is a connected graph in which every edge is a bridge. There can NEVER be a circuit in a tree diagram!
1.Which of the following is NOT an algorithm? a.A set of instructions used to build a wardrobe b.A flow chart used to solve a quadratic equation c.A note.
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.
Grade 11 AP Mathematics Graph Theory Definition: A graph, G, is a set of vertices v(G) = {v 1, v 2, v 3, …, v n } and edges e(G) = {v i v j where 1 ≤ i,
AS Maths Decision Paper January 2011 Model Answers.
The travelling salesman problem Finding an upper bound using minimum spanning trees Find a minimum spanning tree using Prim’s algorithm or Kruskal’s algorithm.
Linear Programming Chapter 3 Lesson 4 Vocabulary Constraints- Conditions given to variables, often expressed as linear inequalities. Feasible Region-
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.
Redraw these graphs so that none of the line intersect except at the vertices B C D E F G H.
AS Maths Decision Paper June 2011 Model Answers.
Minimum Spanning Tree Chapter 13.6.
Courtsey & Copyright: DESIGN AND ANALYSIS OF ALGORITHMS Courtsey & Copyright:
Lecture 21 Primal-Dual in Algorithms
Section 2: Multiple choice
Matchings (Bipartite Graphs)
Graph Algorithm.
Graph Theory.
Chapter 5 Linear Inequalities and Linear Programming
3-3 Optimization with Linear Programming
Shortest Path.
AS Maths Decision Paper January 2006 Model Answers.
Section 2: Multiple choice
AS Maths Decision Paper January 2012 Model Answers.
AS Maths Decision Paper January 2010 Model Answers.
Networks Kruskal’s Algorithm
Networks Prim’s Algorithm
Lecture 19 Linear Program
Matchings (Bipartite Graphs)
The Greedy Approach Young CS 530 Adv. Algo. Greedy.
Section Linear Programming
1.6 Linear Programming Pg. 30.
Jan 2009.
Presentation transcript:

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 Kruskal will be in ascending order Prim, by adding the next lowest edge to any existing vertex Label vertices on any spanning tree you have to draw Your spanning tree shouldn’t contain any loops A minimum spanning tree will have n – 1 edges (n being the vertices) Know how to use Prim’s matrix, particular with lower bound questions Spanning trees can be in travelling salesman questions

Djikstra’s What examiner’s are looking for Limitations of Djikstra is that you can’t use negative numbers

Chinese Postman Problems What examiner’s are looking for To identify the ODD vertices (there will normally be four) Find the shortest distance between the combinations of odd vertices. STATE which edge is to be repeated and its length. Add the repeated edges to the total of all edges (I generally draw the repeated edges on the diagram) Remember when stating how many times a vertex will be visited this includes the REPEATED edges and is number of edges at the vertex divided by 2 (expect the start and end vertex, which will be edges ÷ 2 + 1)

Travelling Salesman What examiner’s are looking for To be able to use the nearest neighbour algorithm to trace a journey To understand that the best Upper bound is the LOWEST value Know that a tour for an upper bound may be improved upon To be able to find the best lower bound by deleting a vertex, either from a spanning tree or Prim’s matrix, and adding the lowest two connectors Be able to use and solve inequalities in nearest neighbour questions To be able to state if the upper and lower bound create an optimal journey (it can be done)

Graph Theory (1) What examiner’s are expecting you to know

Graph Theory (2) What examiner’s are expecting you to know

Matchings What examiner’s are looking for To be able to draw a bipartite graph from an adjacency table or worded matchings To be able to draw a adjacency matrix from a bipartite graph and use 1 and 0 only in the table for matchings From an initial match, how to solve and annotate a solution to a final match eg A – 1 – C – 5 – B – 3 etc. / / You must state the final match eg A5, B4, C6, D2, E1, F3.

Algorithms What examiner’s are looking for Most questions ask you trace one or two algorithms Ensure you are familiar with the correct format for setting out the problem You may be asked to comment on what the algorithm shows or what happens if a line is removed (this type of question will normally generate a continuous loop) You must follow instructions set out in the question

Sorting Algorithms What examiner’s are looking for Your ability to understand the different processes involved in Bubble sort Quick sort Shell sort and Shuttle sort It is vital you know how they differ and learn the processes involved in applying each algorithm You must know how comparisons and swaps are generated for each pass or after each pass

Linear Programming What examiner’s are looking for Your ability to formulate a linear programming problem and write each inequality as simply as possible To manipulate data that has three variables to two (this often means recognising that one of the variables equals another) or the value of one variable is given Graph the information which should establish a feasible region. This must be stated. You may need to draw an objective line on your graph, if requested. Ensure you have a sharp pencil and lines are drawn very accurately (to within half a small square) It is likely you will need to find a maximum / minimum value for loss or profit, by using the co-ordinates of intersecting lines that create the feasible region, for a given equation. To solve problems using the data formed in the first paragraph