Lower bound algorithm. 1 Start from A. Delete vertex A and all edges meeting at A. A B C 4 2 1 D 4 5 E 73 3 2 Find the length of the minimum spanning.

Slides:



Advertisements
Similar presentations
Instructor Neelima Gupta Table of Contents Approximation Algorithms.
Advertisements

Graph Theory Arnold Mesa. Basic Concepts n A graph G = (V,E) is defined by a set of vertices and edges v3 v1 v2Vertex (v1) Edge (e1) A Graph with 3 vertices.
Networks Prim’s Algorithm
3.3 Spanning Trees Tucker, Applied Combinatorics, Section 3.3, by Patti Bodkin and Tamsen Hunter.
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.
The Minimum Connector Problem: Finding the shortest way to link all the vertices in a graph. Method: Find a minimum spanning tree An example would be joining.
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.
Combinatorial Algorithms
7.3 Kruskal’s Algorithm. Kruskal’s Algorithm was developed by JOSEPH KRUSKAL.
Graph Algorithms: Minimum Spanning Tree We are given a weighted, undirected graph G = (V, E), with weight function w:
Approximation Algorithms: Combinatorial Approaches Lecture 13: March 2.
Approximation Algorithms: Concepts Approximation algorithm: An algorithm that returns near-optimal solutions (i.e. is "provably good“) is called an approximation.
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.
Approximation Algorithms for the Traveling Salesperson Problem.
3/29/05Tucker, Sec Applied Combinatorics, 4th Ed. Alan Tucker Section 4.2 Minimal Spanning Trees Prepared by Amanda Dargie and Michele Fretta.
9-1 Chapter 9 Approximation Algorithms. 9-2 Approximation algorithm Up to now, the best algorithm for solving an NP-complete problem requires exponential.
Greedy Algorithms Like dynamic programming algorithms, greedy algorithms are usually designed to solve optimization problems Unlike dynamic programming.
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.
© 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.
Module 5 – Networks and Decision Mathematics Chapter 23 – Undirected Graphs.
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.
Dear teacher, We wanted to apologize for the technical issues that EDpuzzle has experienced today. We have teachers in our team and understand how frustrating.
Minimum spanning trees Aims: To know the terms: tree, spanning tree, minimum spanning tree. To understand that a minimum spanning tree connects a network.
CSE 589 Part VI. Reading Skiena, Sections 5.5 and 6.8 CLR, chapter 37.
TSP – Upper Bounds and Lower Bounds Initial problem : Upper Bound A salesman based in Stockton needs to visit shops based in Darlington, Billingham, Middlesbrough,
Lecture19: Graph III Bohyung Han CSE, POSTECH CSED233: Data Structures (2014F)
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.
CSC2100B Tutorial 10 Graph Jianye Hao.
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.
Prims Algorithm for finding a minimum spanning tree
Graph Revisited Fei Chen CSCI2100B Data Structures Tutorial 12 1.
Optimization Problems The previous examples simply find a single solution What if we have a cost associated with each solution and we want to find the.
Instructor Neelima Gupta Table of Contents Introduction to Approximation Algorithms Factor 2 approximation algorithm for TSP Factor.
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.
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.
Shana Norman Dec 11, 2003 Final Project
D1 Discrete Mathematics
Greedy Technique.
Redraw these graphs so that none of the line intersect except at the vertices B C D E F G H.
Shortest Paths and Minimum Spanning Trees
Minimum Spanning Tree Chapter 13.6.
Hamiltonian Cycle and TSP
12. Graphs and Trees 2 Summary
1.3 Modeling with exponentially many constr.
Autumn 2016 Lecture 11 Minimum Spanning Trees (Part II)
Graph Algorithm.
2 TSP algorithms: (1) AP+B&B, (2) min spanning tree.
Connected Components Minimum Spanning Tree
The Travelling Salesperson problem
D1 Discrete Mathematics
Autumn 2015 Lecture 11 Minimum Spanning Trees (Part II)
Minimum Spanning Trees
Kruskal’s Algorithm for finding a minimum spanning tree
Applied Combinatorics, 4th Ed. Alan Tucker
Minimum spanning trees
Shortest Paths and Minimum Spanning Trees
Minimum spanning trees
Minimum spanning trees
Minimum Spanning tree Select any vertex
Weighted Graphs & Shortest Paths
Networks Prim’s Algorithm
Minimum spanning trees
Minimum Spanning Trees (MSTs)
The travelling salesman problem
EMIS 8373: Integer Programming
Jan 2009.
Presentation transcript:

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 tree for BCDE using Prim’s algorithm. 3 Add up the MST and the two shortest edges attached to A. Lower bound = MST + two shortest edges from A = (1+2+3) + (3+4) = 6+7 = 13 Notice that the lower bound does not represent a tour. The algorithm can be started from any vertex.

Lower bound algorithm Why there is no tour shorter than a lower bound? Let’s consider a network with 5 vertices. Unless AB and AE are the shortest edges from A, and BCDE is the MST, the tour ABCDE is longer than the lower bound, obtained by deleting vertex A. A A B B C C D D E E Any real tour (e.g. ABCDEA) can be split into two bits: 2 edges from vertex A, say, and the edges, connecting the rest of the vertices.

A salesman whose office is in town B wants to visit four other towns A,C,D and E and get back to his office in B as quick as possible. B A E D C ABCDE A-4583 B4-621 C56-43 D824-7 E3137- The table shows the times, in hours, it takes to travel between each pair of towns. Let’s find a lower bound for the optimal tour. Lower Bound Algorithm on table

ABCDE A-4583 B4-621 C56-43 D824-7 E3137- Lower bound Algorithm on table Find the lower bound by deleting vertex A. Delete 2143 MST+(two shortest edges from A) = 6+7 = 13 Note two shortest edges from A and then delete row A and column A. B A E 4 3 Apply Prim’s algorithm on the rest of the table. B E 1 D 2 3 C Lower Bound =13 The length, T, of the optimal tour is either equal to or greater than the lower bound,i.e. 13 ≤ T BE-1 BD-2 EC-3

A salesman whose office is in town B wants to visit four other towns A,C,D and E and get back to his office in B as quick as possible. B A E D C ABCDE A-4583 B4-621 C56-43 D824-7 E3137- The shortest possible time, T, for a tour lies between 13 and 15 hours. Travelling Salesperson Problem summary Lower Bound =13 Upper Bound=15 13 ≤ T ≤ 15 Suggested tour BDCAEB will take 15 hours