Section 2: Multiple choice

Slides:



Advertisements
Similar presentations
Graphs and Finding your way in the wilderness
Advertisements

2012: J Paul GibsonT&MSP: Mathematical FoundationsMAT7003/L2-GraphsAndTrees.1 MAT 7003 : Mathematical Foundations (for Software Engineering) J Paul Gibson,
IKI 10100: Data Structures & Algorithms Ruli Manurung (acknowledgments to Denny & Ade Azurat) 1 Fasilkom UI Ruli Manurung (Fasilkom UI)IKI10100: Lecture10.
Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All rights reserved Chapter 27 Graph Applications.
Midwestern State University Department of Computer Science Dr. Ranette Halverson CMPS 2433 CHAPTER 4 - PART 2 GRAPHS 1.
 Graph Graph  Types of Graphs Types of Graphs  Data Structures to Store Graphs Data Structures to Store Graphs  Graph Definitions Graph Definitions.
Module 5 – Networks and Decision Mathematics Chapter 24 – Directed Graphs.
Decision Maths Graphs Wiltshire Graphs A graph is just a diagram made up of “dots” and “lines”. These are all graphs. The dots are called “nodes” or.
1 Representing Graphs. 2 Adjacency Matrix Suppose we have a graph G with n nodes. The adjacency matrix is the n x n matrix A=[a ij ] with: a ij = 1 if.
Graph Algorithms: Minimum Spanning Tree We are given a weighted, undirected graph G = (V, E), with weight function w:
9-1 Chapter 9 Approximation Algorithms. 9-2 Approximation algorithm Up to now, the best algorithm for solving an NP-complete problem requires exponential.
9-1 Chapter 9 Approximation Algorithms. 9-2 Approximation algorithm Up to now, the best algorithm for solving an NP-complete problem requires exponential.
Approximation Algorithms Motivation and Definitions TSP Vertex Cover Scheduling.
Graphs & Graph Algorithms 2 Fawzi Emad Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
Chapter 4 Graphs.
Approximation Algorithms
Discrete Mathematics Lecture 9 Alexander Bukharovich New York University.
Dijkstra’s Algorithm. 2 Shortest-path Suppose we want to find the shortest path from node X to node Y It turns out that, in order to do this, we need.
IT 60101: Lecture #201 Foundation of Computing Systems Lecture 20 Classic Optimization Problems.
Chapter 2 Graph Algorithms.
Graph Theory Topics to be covered:
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.
Solve problems by using linear programming.
Can you connect the dots as shown without taking your pen off the page or drawing the same line twice.
7.1 and 7.2: Spanning Trees. A network is a graph that is connected –The network must be a sub-graph of the original graph (its edges must come from the.
Module 5 – Networks and Decision Mathematics Chapter 23 – Undirected Graphs.
Nyhoff, ADTs, Data Structures and Problem Solving with C++, Second Edition, © 2005 Pearson Education, Inc. All rights reserved Graphs.
Graphs. Definitions A graph is two sets. A graph is two sets. –A set of nodes or vertices V –A set of edges E Edges connect nodes. Edges connect nodes.
CSE 589 Part VI. Reading Skiena, Sections 5.5 and 6.8 CLR, chapter 37.
D1 stuff The tail wags the dog. M1A1 A1 A1 We mark your best effort.
Mathematics in Management Science
Graphs A graphs is an abstract representation of a set of objects, called vertices or nodes, where some pairs of the objects are connected by links, called.
Graph theory and networks. Basic definitions  A graph consists of points called vertices (or nodes) and lines called edges (or arcs). Each edge joins.
Graph Theory. undirected graph node: a, b, c, d, e, f edge: (a, b), (a, c), (b, c), (b, e), (c, d), (c, f), (d, e), (d, f), (e, f) subgraph.
Chapter 20: Graphs. Objectives In this chapter, you will: – Learn about graphs – Become familiar with the basic terminology of graph theory – Discover.
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.
Linear Programming. What is linear programming? Use a system of constraints (inequalities) to find the vertices of the feasible region (overlapping shaded.
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.
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 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.
Programming Abstractions Cynthia Lee CS106B. Upcoming Topics Graphs! 1.Basics  What are they? How do we represent them? 2.Theorems  What are some things.
Decision Mathematics 1 Course Overview.
The Theory of NP-Completeness
Graph theory Definitions Trees, cycles, directed graphs.
Section 2: Multiple choice
Planar Graphs & Euler’s Formula
CS120 Graphs.
The tail wags the dog. M1A1 A1 A1 We mark your best effort
Spanning Trees Discrete Mathematics.
Graph Algorithm.
Connected Components Minimum Spanning Tree
Graphs & Graph Algorithms 2
Graph Theory.
Graphs Chapter 13.
THE CHINESE POSTMAN PROBLEM Liz Biz and Hells Bells.
Chapter 2: Business Efficiency Business Efficiency
Lecture 19-Problem Solving 4 Incremental Method
Course Contents: T1 Greedy Algorithm Divide & Conquer
AS Maths Decision Paper January 2006 Model Answers.
Decision Maths Graphs.
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.
The Theory of NP-Completeness
CSC 380: Design and Analysis of Algorithms
Simple Graphs: Connectedness, Trees
1.6 Linear Programming Pg. 30.
Weighted Graphs AQR.
For Friday Read chapter 9, sections 2-3 No homework
Presentation transcript:

Section 2: Multiple choice When would you use a bin-packing algorithm? To sort a group into alphabetical order To work out how many pieces of wood you needed for a building project To allocate jobs to five people Which of the following is true of Djikstra’s algorithm? Point are labelled in order from left to right Points are labelled in order according to their distance from the start Points are labelled in order of the weight of arcs leading to them How would you begin to solve a route inspection problem? By finding a Hamiltonian cycle. By finding earliest and latest times By identifying the odd nodes and finding shortest pairs In critical path analysis the lower bound for the number of workers is found by: Dividing number of tasks by minimum time Multiplying number of tasks by minimum time Multiplying total time by minimum time To find the maximum profit on a graph: Look for the last point in the region parallel to a profit line Look for the first point in the region parallel to a profit line Look for the first point in the region perpendicular to a profit line

Section 3: Definitions The last letter of each answer is the first letter of the next answer. A method of finding the minimum spanning tree that can also be applied to a matrix. A subgraph which includes all vertices and is also a tree A graph that is traversable is known as… Another word for a vertex is a … 5. Another word for arc is…

Section 4: Quick calculations Find an alternating path between D and 1 in picture 1. Which activities must be taking place at 12.30 on the chart in picture 3? Find w on picture 2. 10 lengths of fabric need to be cut from rolls of length 6m. 40cm , 320cm , 52cm , 385cm , 72cm, 500cm, 200cm, 95cm, 350cm, 70cm Calculate the lower bound for the number of rolls needed? It takes 30 minutes to make a gold coin and 20 minutes to make a silver coins. The company has 3 hours available. Write down an inequality, in terms of x and y, to model this constraint.

Section 1: Picture round Gantt chart Bipartitie Q3. Early event time Q5. Quick sort Q4. Dummy

Section 2: Multiple choice When would you use a bin-packing algorithm? To sort a group into alphabetical order To work out how many pieces of wood you needed for a building project To allocate jobs to five people Which of the following is true of Djikstra’s algorithm? Point are labelled in order from left to right Points are labelled in order according to their distance from the start Points are labelled in order of the weight of arcs leading to them How would you begin to solve a route inspection problem? By finding a Hamiltonian cycle. By finding earliest and latest times By identifying the odd nodes and finding shortest pairs In critical path analysis the lower bound for the number of workers is found by: Dividing number of tasks by minimum time Multiplying number of tasks by minimum time Multiplying total time by minimum time To find the maximum profit on a graph: Look for the last point in the region parallel to a profit line Look for the first point in the region parallel to a profit line Look for the first point in the region perpendicular to a profit line

Section 3: Definitions The last letter of each answer is the first letter of the next answer. A method of finding the minimum spanning tree that can also be applied to a matrix. Primms A subgraph which includes all vertices and is also a tree Spanning tree A graph that is traversable is known as… Eulerian Another word for a vertex is a … Node 5. Another word for arc is… Edge

Section 4: Quick calculations Find an alternating path between D and 1 in picture 1. D – 4 = E – 2 = A – 1 Which activities must be taking place at 12.30 on the chart in picture 3? F and E Find w on picture 2. 25 10 lengths of fabric need to be cut from rolls of length 6m. 40cm , 320cm , 52cm , 385cm , 72cm, 500cm, 200cm, 95cm, 350cm, 70cm Calculate the lower bound for the number of rolls needed? 6 It takes 30 minutes to make a gold coin and 20 minutes to make a silver coins. The company has 3 hours available. Write down an inequality, in terms of x and y, to model this constraint. 3x + 2y < 18