D1 stuff The tail wags the dog. M1A1 A1 A1 We mark your best effort.

Slides:



Advertisements
Similar presentations
Greed is good. (Some of the time)
Advertisements

IKI 10100: Data Structures & Algorithms Ruli Manurung (acknowledgments to Denny & Ade Azurat) 1 Fasilkom UI Ruli Manurung (Fasilkom UI)IKI10100: Lecture10.
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.
Comparing Integers Lesson
D1: Quick Sort. The quick sort is an algorithm that sorts data into a specified order. For a quick sort, select the data item in the middle of the list.
Chapter 3 The Greedy Method 3.
Discussion #36 Spanning Trees
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.
Probability And Expected Value ————————————
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.
College Algebra Fifth Edition James Stewart Lothar Redlin Saleem Watson.
Regions Defined by Two Inequalities
1 1 Slide © 2000 South-Western College Publishing/ITP Slides Prepared by JOHN LOUCKS.
Higher Biology Unit 1: Cell biology Unit 2: Genetics & Adaptations
C o n f i d e n t i a l HOME NEXT Subject Name: Data Structure Using C Unit Title: Graphs.
Traditional Method One mean, sigma known. The Problem In 2004, the average monthly Social Security benefit for retired workers was $ with a standard.
Worksheet for a Service Business
© The McGraw-Hill Companies, Inc., Chapter 3 The Greedy Method.
© Peter Andreae CS4HS Algorithms Searching for an item in a list Sorting a list Searching for a word in text Analysing Networks.
Lecture 12-2: Introduction to Computer Algorithms beyond Search & Sort.
Chapter 2 Graph Algorithms.
Graph Theory Topics to be covered:
Maths Test Top Tips to Avoid the SAT's Trap. Tip – Get the units all the same Change them all into the same units to see which is smallest!
Networks.
Which of these can be drawn without taking your pencil off the paper and without going over the same line twice? If we can find a path that goes over all.
1 Topic Regions Defined by Inequalities Regions Defined by Inequalities.
3rd Grade Math Skills & Strategies
Lesson Objective: Understand what an algorithm is and be able to use them to solve a simple problem.
Mr Barton’s Maths Notes Graphs 2. Quadratics and Cubics
College Algebra Sixth Edition James Stewart Lothar Redlin Saleem Watson.
Chapter 18: Searching and Sorting Algorithms. Objectives In this chapter, you will: Learn the various search algorithms Implement sequential and binary.
1 Network Models Transportation Problem (TP) Distributing any commodity from any group of supply centers, called sources, to any group of receiving.
WASL Wisdom From Lessons Learned. Number Sense Students have difficulties labeling fractional parts. –Examples of mislabels:
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.
Answering the Edexcel Medicine Paper 14 th June 2011.
You already know inequalities. Often they are used to place limits on variables. That just means x can be any number equal to 9 or less than 9.
What I know about decimals:. Decimal Basics Place Value Chart ___ ___ ___ ___ ___. ___ ___ ___ ___ ___ ___ When reading or saying a decimal: 1. Read the.
Bushy Binary Search Tree from Ordered List. Behavior of the Algorithm Binary Search Tree Recall that tree_search is based closely on binary search. If.
TAKS Tutorial Test-Taking Strategies. Remember that the TAKS test is untimed! That gives you plenty of time to do this first strategy! Look at the ENTIRE.
I can describe the differences between Hamilton and Euler circuits and find efficient Hamilton circuits in graphs. Hamilton Circuits I can compare and.
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.
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.
Spanning Trees Dijkstra (Unit 10) SOL: DM.2 Classwork worksheet Homework (day 70) Worksheet Quiz next block.
Module 3 Lesson 13. Objectives  Read and write numbers within 1,000 after modeling with place value disks.  Model numbers with more than 9 ones or 9.
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.
MATRIX FORM OF PRIM’S ALGORITHM. This network may be described using a Distance Matrix.
AP PHYSICS 1 SUMMER PACKET Table of Contents 1.What is Physics? 2.Scientific Method 3.Mathematics and Physics 4.Standards of Measurement 5.Metric System.
Any questions on today’s homework. (Sections 1. 6/1
Redraw these graphs so that none of the line intersect except at the vertices B C D E F G H.
Lesson Objectives Aims Understand the following “standard algorithms”:
Section 2: Multiple choice
Planar Graphs & Euler’s Formula
The tail wags the dog. M1A1 A1 A1 We mark your best effort
Chapter 2: Business Efficiency Lesson Plan
Critical Path Analysis
Critical Path Analysis 2
Shortest Path.
Section 2: Multiple choice
Matchings If they ask you to show the matching on a diagram (say there are four matchings) don’t just highlight them with a thicker line on the bipartite.
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.
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.
Linear programming If they ask for the constraints, don’t forget x ≥ 0 and y ≥ 0 If they ask you to indicate clearly the feasible region with R, that’s.
Critical Path Analysis
Dijkstra The start box doesn’t need zero in working values
Quick Sort A quick sort needs a final statement too. Once you have no sublists greater then 1 remaining it’s best to rewrite the line (or write sort complete).
Y544 Discrete Mathematics Annotated sample assessment materials.
Write your final answers on your warm up sheet. Factor the following:
Bin Packing and Binary Search
Jan 2009.
Presentation transcript:

D1 stuff The tail wags the dog. M1A1 A1 A1 We mark your best effort

Minimum Spanning Trees 1.If you do Prims and it asks for Kruskals even though you get the same answer it is 0 marks. Remember Prims (P) for points, Kruskals has an A in it for arcs. 2.You must write out the order you select the arcs (even in Prims from a matrix). The examiners report suggests you do this as you go through the algorithm, rather than at the end. 3.In Prims, they always give you the point to start at. 4.In Kruskals they don’t need to necessarily see the word ‘reject’ as long as your arcs are in the correct order. Prims doesn’t have any rejections so if you accidently write the word ‘reject’ anywhere in a Prims you lose all marks.

Critical Path Analysis 1.If you have to draw an activity network from a precedence table all arcs must have arrows, in the right directions. Additional dummies lose the final accuracy mark. If it tells you the network has two dummies but you draw a network with no dummies you lose all say (five) marks. You need to draw at least one dummy. 2.Qu is ‘explain why each of the dummies is necessary’ Answer is ‘ A and B must be able to be described uniquely in terms of the events at each end’ ‘I depends on D only but J depends on D and G’ (use ‘events’ instead of ‘activities’ is 0 marks) 3.All boxes must be completed. Miss a number out and lose say 4 marks. We check your top numbers are generally increasing left to right (and vice versa for bottom)

more CPA 4.Check carefully if they want a Gannt (cascade) chart or a scheduling diagram. If it is scheduling and there are four workers, if you draw more rows it’s 0 marks. If it is a Gantt chart then you can have as many rows as you like. For both graphs there are four marks and the first two marks come from drawing in the critical path. With both graphs we count to check you have the correct number of activities drawn. Missing out an activity loses two marks. 5.If they ask you whether it is possible to complete the project with 3 workers on time (say on a Gantt chart) check carefully if the question says to explain or to calculate. If it wants an explanation then you need 3 things ‘at time 9.5 days activities D, C, F and G are needed so 4 workers needed, it is not possible’ If it says calculate then do a lower bound eg 108/35 = 3.08 so 4 workers needed. If in doubt, do both.

Route Inspection Problem 1.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. 2.State clearly which individual arcs you repeat. ‘Repeat DA, AE, FJ, FK, is accepted whereas ‘repeat DE, FK’ is not. Don’t just point to the table with an arrow. 3.If they ask for you to state the route count the number of edges (say 14), add on the repeated edges (say 3) then add 1 more to give 18. We count 18 letters in your route, then we check you have the repeats (underlining AB and BA) helps, then we check all letters are included. 4.Often at the end of a RIP. Qu is ‘the boy starts at K and finishes at a different vertex, traversing each path at least once. Determine where he finishes giving a reason for your answer’ (you’ll have checked the lengths of all arcs not including K and determined the shortest) so your answer is ‘Repeat DF (24) as it is the shortest that does not include K. Start at K, finish at E ‘ (they check 4 things)

Matchings 1.If they ask you to show the matching on a diagram (say there are four matchings) don’t just highlight them with a thicker line on the bipartite graph. The examiner won’t search for them on your diagram. Redraw a sketch with only four matchings on it. Any extra lines is 0 marks. 2.Qu is ‘explain why a complete matching is not possible’ Ans is ‘N and P can only be allocated to V’ (V can only be allocated to N and P………or………’only N and P can be allocated to V’) is 0 marks. The positioning of the word ‘only’ is important. 3.You must have an indication you have changed the status. The safest way is to change the symbols. We accept ‘cs’ (but it is easy to miss it) or write ‘change of status’. Best to rewrite symbols. P – V = F – T = A – C = J – D P = V – F = T – A = C – J = D 4.You must write the final matching out at the end (or clearly draw it on a diagram at the end). We won’t search for lines shaded thicker on a working bipartite graph. It helps us if you start on the left hand side. A = C, F = T, J = D, P = V, R = G

Sorts and Bin Packing and Binary Search 1.If you do a bubble sort instead of a quick sort it’s 0 marks. 2.Use lines. Common to miss a number out or misread a number. Check by counting at the end. 3.A bubble sort needs a final statement saying you have stopped. Best to repeat the line or say ‘stop’ or ‘sorted’ 4.A quick sort needs a final statement too. Once you have no sublists greater then 1 remaining it’s best to rewrite the line (or say ‘complete etc). We won’t look for your final line in your workings. Make it clear at the end. 5.In Quick sort, the pivot is the middle right. If you go wrong you can still get full marks if you choose middle left. Choosing the first or last number to pivot on is 0 marks. The first M1 is for a pivot with smaller numbers to the left and larger to the right (if ascending). Have a rogue number in there and lose all marks. 6.In Quick sort, if there are 2 sublists, do not do one pivot per line. You’ll lose all your marks except 1. 7.If you sort in ascending order and the qu says descending, keep going BUT you must reverse the list at the very end (full marks)

more sorts 8.If your bin pack follows your sort check you have the same amount of numbers. You need the first four items placed correctly and at least six items to score the first M1. Get this wrong and lose 4 easy marks 9.Qu is ‘determine whether your answer shows the min amount of bins. Justify your answer’ They don’t want a ‘yes, I drew 4 bins’ they want a calculation. Eg Ans is ‘6.8/2 = 3.4 so yes, 4 bins is enough’ 10.In binary state what the pivot is and the reduced list each time. You always need a final statement, eg ‘Jenny is found’.

Dijkstras 1.The start box doesn’t need zero in working values 2.The first method mark is for a smaller number replacing a larger number at least once in the main boxes. Miss that and lose all marks. 3.All boxes must be labelled. Miss a number out loses the whole mark to that box. 4.Safest to never write in larger values. If you do, they have to be in the right order. If any numbers are in the wrong order you lose the mark for that box. If you need more room list outside the box in a line. 5.If they ask you to ‘justify your answer’ they expect a full backread (not an essay) so: T-H = 11 H-F = 35 F-E = 11 etc

Linear programming 1.If they ask for the constraints, don’t forget the non negatitvity constraints (x,y≥0) 2.If they ask you to indicate clearly the feasible region with R, that’s all we accept. Shading the region, outlining or pointing to it is not enough. Put R on. 3.If they give you a choice about finding the optimal point it is safer to use the objective line method. Make sure your line is not too small. You don’t need to draw it hitting an optimal point. 4.The correct line drawn is often worth two points. If you choose the point testing you need all four points correct and all four values calculated correctly to get the same 2 points. If in doubt, do both. 5.If you draw your objective line wrong you will lose a mark only if you muddle up the plotting of the x and y axes. Any old line lose you all the marks. So plot carefully. 6.You need to identify the optimal point by solving simultaneous equations. If you have chosen the points method you need to have calculated three points correctly (objective line is quicker and safer).