Louisiana Travels.

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

ITS THE FINAL LECTURE! (SING IT, YOU KNOW YOU WANT TO) Operations Research.
Copyright © 2005 Pearson Education, Inc. Slide 13-1.
Discrete Maths Chapter 5: Route Inspection Lesson 1: Chinese Postman.
DIJKSTRA’s Algorithm. Definition fwd search Find the shortest paths from a given SOURCE node to ALL other nodes, by developing the paths in order of increasing.
7.3 Kruskal’s Algorithm. Kruskal’s Algorithm was developed by JOSEPH KRUSKAL.
Minimum-Cost Spanning Tree weighted connected undirected graph spanning tree cost of spanning tree is sum of edge costs find spanning tree that has minimum.
Steiner trees Algorithms and Networks. Steiner Trees2 Today Steiner trees: what and why? NP-completeness Approximation algorithms Preprocessing.
Graphs & Graph Algorithms 2 Fawzi Emad Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
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 9 – Graphs A graph G=(V,E) – vertices and edges
Lecture 12-2: Introduction to Computer Algorithms beyond Search & Sort.
Graph Dr. Bernard Chen Ph.D. University of Central Arkansas.
Minimum Spanning Trees
Problem Solving with Networks 18/08/2012 Jamie Sneddon
© Nuffield Foundation 2011 Nuffield Free-Standing Mathematics Activity Chinese postman problems What route can I take to avoid going along the same street.
COSC 2007 Data Structures II Chapter 14 Graphs III.
Spanning Trees Introduction to Spanning Trees AQR MRS. BANKS Original Source: Prof. Roger Crawfis from Ohio State University.
Spanning Trees Introduction to Spanning Trees AQR MRS. BANKS Original Source: Prof. Roger Crawfis from Ohio State University.
Spring 2015 Mathematics in Management Science Network Problems Networks & Trees Minimum Networks Spanning Trees Minimum Spanning Trees.
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.
Structures 7 Decision Maths: Graph Theory, Networks and Algorithms.
Module 5 – Networks and Decision Mathematics Chapter 23 – Undirected Graphs.
Aim: Graph Theory - Trees Course: Math Literacy Do Now: Aim: What’s a tree?
Solution to HW1. Problem 1 Need to find shortest path from a single source s to a single destination d. Have a condition in the Dijkstra algo loop which.
Minimum spanning trees Aims: To know the terms: tree, spanning tree, minimum spanning tree. To understand that a minimum spanning tree connects a network.
Copyright 2013, 2010, 2007, Pearson, Education, Inc. Section 14.4 Trees.
Minimal Spanning Tree Problems in What is a minimal spanning tree An MST is a tree (set of edges) that connects all nodes in a graph, using.
Michael Walker. From Maps to Graphs  Make Intersections Vertices  Make Roads Edges  Result is Weighted Directed Graph  Weights: Speed Limit Length.
TSP – Upper Bounds and Lower Bounds Initial problem : Upper Bound A salesman based in Stockton needs to visit shops based in Darlington, Billingham, Middlesbrough,
Chapter 14 Section 4 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
© Nuffield Foundation 2012 Nuffield Free-Standing Mathematics Activity Networks © Rudolf Stricker.
Graph Theory Trees. WHAT YOU WILL LEARN Trees, spanning trees, and minimum-cost spanning trees.
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.
I can describe the differences between Hamilton and Euler circuits and find efficient Hamilton circuits in graphs. Hamilton Circuits I can compare and.
Network Problems A D O B T E C
Spanning Trees Dijkstra (Unit 10) SOL: DM.2 Classwork worksheet Homework (day 70) Worksheet Quiz next block.
Graphs 1 Neil Ghani University of Strathclyde. Where are we …. We studied lists: * Searching and sorting a list Then we studied trees: * Efficient search.
D1 Discrete Mathematics
Algorithms Detour - Shortest Path
Minimum Spanning Tree Chapter 13.6.
Discrete Math 2 Weighted Graph Search Tree
Chapter 2: Business Efficiency Lesson Plan
Chapter 2: Business Efficiency Lesson Plan
Graph Algorithm.
Minimum-Cost Spanning Tree
Minimum Spanning Tree.
Graphs & Graph Algorithms 2
The Travelling Salesperson problem
D1 Discrete Mathematics
Nuffield Free-Standing Mathematics Activity
Section 14.4 Trees.
Shortest Path.
Chapter 2: Business Efficiency Business Efficiency
Minimum-Cost Spanning Tree
CSE 373: Data Structures and Algorithms
4-4 Graph Theory Trees.
Kruskal’s Algorithm for finding a minimum spanning tree
Minimum-Cost Spanning Tree
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.
Spanning Tree Algorithms
Networks Kruskal’s Algorithm
CSE 373: Data Structures and Algorithms
Networks Prim’s Algorithm
Minimum spanning trees
Minimum Spanning Trees (MSTs)
The Minimum Cost Spanning Tree Problem
Warm Up – Monday Calculate the Redundancy of the above network.
Prim’s algorithm for minimum spanning trees
Minimum-Cost Spanning Tree
Presentation transcript:

Louisiana Travels

O2, L3, M2, B4, K4, P3, C3, N3, S2 Task 1 : Not traversable; there are 4 odd nodes To make the network semi-traversable, remove one edge between two odd nodes (this will create a new network that is traversable, because it will have 2 odd nodes) For example, remove the edge between Ponchatoula and Covington OR remove the edge between Covington and New Orleans

P-C has been removed; O2, L3, M2, B4, K4, P2, C2, N3, S2; Travel N, C, S, N, K, B, P, K, M, L, O, B, L

C-N has been removed; O2, L3, M2, B4, K4, P3, C2, N2, S2; Travel P, B, O, L, M, K, P, C, S, N, K, B, L

Task 2: drive from New Orleans to Opelousas, stopping in at Ponchatoula on the return trip.

Task 2a: Shortest Path: N-K-B-O = 144miles (An alternate path NKBLO = 164 miles)

Task 2b: shortest path from Opelousas to New Orleans via Ponchatoula: O-B-P-K-N = 161 miles

63 24 46 24 28 59 40 41 69 33 12 68 74 Task 3 info: Minimum spanning tree; $25000 per mile; edge P-C is not to be upgraded

63 46 24 28 59 40 41 69 33 12 68 74 Task 3a: “Polygon Method”, which eliminates the route of highest distance from each polygon shape, eventually leaving a connected tree network.

Task 3a: “Polygon Method”, Step 1: - Remove C-N from CNSC (Why?) 63 46 24 28 59 40 69 33 12 68 74 Task 3a: “Polygon Method”, Step 1: - Remove C-N from CNSC (Why?)

Task 3a: “Polygon Method”, Step 2: - Remove B-K from BKPB (Why?) 63 46 24 28 59 40 33 12 68 74 Task 3a: “Polygon Method”, Step 2: - Remove B-K from BKPB (Why?)

Task 3a: “Polygon Method”, Step 3: - Remove O-B from OBLO (Why?) 46 24 28 59 40 33 12 68 74 Task 3a: “Polygon Method”, Step 3: - Remove O-B from OBLO (Why?)

Task 3a: “Polygon Method”, Step 3: - Remove M-K from LBPKML (Why?) 46 24 28 59 40 33 12 68 Task 3a: “Polygon Method”, Step 3: - Remove M-K from LBPKML (Why?)

Task 3a: Correct??? 9 nodes connected by 8 edges 46 24 28 59 40 33 12 68 Task 3a: Correct??? 9 nodes connected by 8 edges

46 24 28 59 40 33 12 68 Task 3a: Min span tree weight = 310 miles; (310 miles ×$25000 = $7,750,000)

Task 3a - again, but this time using Kruskal’s Algorithm 63 24 46 24 28 59 40 41 69 33 12 68 74 Task 3a - again, but this time using Kruskal’s Algorithm

Kruskal’s Algorithm Kruskal's algorithm is a minimum-spanning- tree algorithm which finds an edge of the least possible weight that connects any two ‘trees’ in the ‘forest’.

63 46 24 28 59 40 41 69 33 12 68 74 Task 3a: “Kruskal’s Algorithm”, which selects the edges (from smallest to largest) until a connected tree network is formed.

63 46 24 28 59 40 41 69 33 12 68 74 Task 3a: “Kruskal’s Algorithm”, Steps 1 and 2: Select the edges of least weight (12 and 24)

63 46 24 28 59 40 41 69 33 12 68 74 Task 3a: “Kruskal’s Algorithm”, Steps 3 and 4: Select the edges of least weight (28 and 33)

63 46 24 28 59 40 41 69 33 12 68 74 Task 3a: “Kruskal’s Algorithm”, Steps 5 and 6: Select the edges of least weight (40 and 46)

63 46 24 28 59 40 41 69 33 12 68 74 Task 3a: “Kruskal’s Algorithm”, Steps 7: Select the edge of least weight (59)

46 24 28 59 40 33 12 68 Step 8: Select the edge (of least weight) which connects the final node to the tree (68)

46 24 28 59 40 33 12 68 Task 3b info: Travel along the upgraded roads in the most efficient way…

46 24 28 59 40 33 12 68 Task 3b ANS: One road (O-L) is travelled twice; M,L,O,L,B,P,K,N,S,C = 310 + 24 = 334 miles