Routing Through Networks - 1

Slides:



Advertisements
Similar presentations
22C:19 Discrete Math Graphs Fall 2010 Sukumar Ghosh.
Advertisements

Introduction to Graph Theory Instructor: Dr. Chaudhary Department of Computer Science Millersville University Reading Assignment Chapter 1.
22C:19 Discrete Math Graphs Fall 2014 Sukumar Ghosh.
AMDM UNIT 7: Networks and Graphs
BY: MIKE BASHAM, Math in Scheduling. The Bridges of Konigsberg.
Combinatorial Algorithms
Approximation Algorithms: Combinatorial Approaches Lecture 13: March 2.
MIT and James Orlin © Introduction to Networks Eulerian Tours Hamiltonian Tours The Shortest Path Problem Dijkstra’s Algorithm for Solving the Shortest.
The Theory of NP-Completeness
Graphs and Trees This handout: Eulerian Cycles: Sufficiency of the condition Hamiltonian tour.
IEOR266 © Classification of MCNF problems.
A traveling salesman has customers in 5 cities which we will call A, B, C, D, and E. The salesman needs to travel to all 5 cities with his trip starting.
Euler and Hamilton Paths
Chapter 11 Graphs and Trees This handout: Terminology of Graphs Eulerian Cycles.
Graphs and Trees This handout: Terminology of Graphs Applications of Graphs.
22C:19 Discrete Math Graphs Spring 2014 Sukumar Ghosh.
Euler Paths and Circuits. The original problem A resident of Konigsberg wrote to Leonard Euler saying that a popular pastime for couples was to try.
Take a Tour with Euler Elementary Graph Theory – Euler Circuits and Hamiltonian Circuits Amro Mosaad – Middlesex County Academy.
Theory of Computing Lecture 10 MAS 714 Hartmut Klauck.
Algorithms for Network Optimization Problems This handout: Minimum Spanning Tree Problem Approximation Algorithms Traveling Salesman Problem.
Programming for Geographical Information Analysis: Advanced Skills Online mini-lecture: Introduction to Networks Dr Andy Evans.
EECS 203: It’s the end of the class and I feel fine. Graphs.
Graph Theory Hamilton Paths and Hamilton Circuits.
Euler and Hamilton Paths
Combinatorial Optimization Chapter 1. Problems and Algorithms  1.1 Two Problems (representative problems)  The Traveling Salesman Problem 47 drilling.
6.1 Hamilton Circuits and Paths: Hamilton Circuits and Paths: Hamilton Path: Travels to each vertex once and only once… Hamilton Path: Travels to each.
CS 200 Algorithms and Data Structures
The Traveling Salesman Problem Over Seventy Years of Research, and a Million in Cash Presented by Vladimir Coxall.
This opportunity is funded by the United States Department of Education. Award # WEEK 2 – 6/17/13 – 6/21/13 INTRODUCTION TO OPTIMIZATION.
Graphs Edge(arc) Vertices can be even or odd or undirected (two-way) Edges can be directed (one-way) This graph is connected. Degree(order) = 3 Odd vertex.
CIRCUITS, PATHS, AND SCHEDULES Euler and Königsberg.
Associated Matrices of Vertex Edge Graphs Euler Paths and Circuits Block Days April 30, May 1 and May
Euler Paths and Circuits. The original problem A resident of Konigsberg wrote to Leonard Euler saying that a popular pastime for couples was to try.
I can describe the differences between Hamilton and Euler circuits and find efficient Hamilton circuits in graphs. Hamilton Circuits I can compare and.
Chapter 14 Section 3 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
1 Euler and Hamilton paths Jorge A. Cobb The University of Texas at Dallas.
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,
Traveling Salesman Problem DongChul Kim HwangRyol Ryu.
MAT 110 Workshop Created by Michael Brown, Haden McDonald & Myra Bentley for use by the Center for Academic Support.
Hamilton Paths and Hamilton Circuits
Excursions in Modern Mathematics Sixth Edition
D1 Discrete Mathematics
Weighted Graphs and traveling Salesperson problem
EECS 203 Lecture 19 Graphs.
Network Optimization J.B. Orlin
Euler and Hamiltonian Graphs
Agenda Lecture Content: Introduction to Graph Path and Cycle
Week 11 - Monday CS221.
EECS 203 Lecture 20 More Graphs.
Chapter 2: Business Efficiency Lesson Plan
Networks.
Discrete Maths 9. Graphs Objective
Chapter 2: Business Efficiency Lesson Plan
Heuristics Definition – a heuristic is an inexact algorithm that is based on intuitive and plausible arguments which are “likely” to lead to reasonable.
Approximation Algorithms for TSP
ICS 353: Design and Analysis of Algorithms
The Travelling Salesperson problem
Introduction to Graph Theory Euler and Hamilton Paths and Circuits
D1 Discrete Mathematics
Genome Assembly.
Chapter 2: Business Efficiency Business Efficiency
Heuristic Algorithms via VBA
Konigsberg- in days past.
Integer Programming (정수계획법)
Hamilton Paths and Hamilton Circuits
Euler and Hamiltonian Graphs
CSC 380: Design and Analysis of Algorithms
Chapter 10 Graphs and Trees
Slides on Network Optimization based on slides prepared by J.B. Orlin
Lecture 24 Vertex Cover and Hamiltonian Cycle
Presentation transcript:

Routing Through Networks - 1 IE 102 Spring 2017 Routing Through Networks - 1

The Bridges of Koenigsberg: Euler 1735 “Graph Theory” began in 1735 Leonard Eüler Visited Koenigsberg People wondered whether it is possible to take a walk, end up where you started from, and cross each bridge in Koenigsberg exactly once Generally it was believed to be impossible

The Bridges of Koenigsberg: Euler 1736 A 1 2 3 B 4 C 5 6 7 D Is it possible to start in A, cross over each bridge exactly once, and end up back in A?

The Bridges of Koenigsberg: Euler 1736 A 1 2 3 B 4 C 5 6 7 D Conceptualization: Land masses are “nodes”.

The Bridges of Koenigsberg: Euler 1736 A 1 2 3 B 4 C 5 6 7 D Conceptualization: Bridges are “arcs.”

The Bridges of Koenigsberg: Euler 1736 A 1 2 3 B 4 C 5 6 7 D Is there a “walk” starting at A and ending at A and passing through each arc exactly once?

The Bridges of Koenigsberg: Euler 1736 A 1 2 3 B 4 C 5 6 7 D Is there a closed tour starting at A and ending at A and passing through each arc exactly once? Such a walk is called an eulerian cycle.

Adding two more bridges creates such a walk 8 1 2 3 4 B C 9 6 5 7 D Here is the tour A, 1, B, 5, D, 6, B, 4, C, 3, A, 8, C, 7, D, 9, B, 2, A

On Eulerian Cycles 4 1 2 4 3 7 6 5 A C D B 8 9 The degree of a node in an undirected graph is the number of incident arcs 6 4 4 Theorem. An undirected graph has an eulerian cycle if and only if (1) every node degree is even and (2) the graph is connected (that is, there is a path from each node to each other node).

Hamilton’s Around the World Game In 1857, the Irish mathematician, Sir William Rowan Hamilton invented a puzzle that he hoped would be very popular.

Hamilton’s Around the World Game The objective was to make what we just called a hamiltonian cycle. The game was not a commercial success, especially the 3D version. But the mathematics of hamiltonian cycles is very popular today.

Hamilton’s Around the World Game We will see this problem again when we generalize it to be the traveling salesman problem.

Where Network Flows Arise Transportation Transportation of goods over transportation networks Scheduling of fleets of airplanes: time/space networks Manufacturing Scheduling of goods for manufacturing Flow of manufactured items within inventory systems Communications Design and expansion of communication systems Flow of information across networks Personnel Assignment Assignment of crews to airline schedules Assignment of drivers to vehicles See if I can tie this back to the student’s comments about thesis work.

Travel and Delivery Problem Aim: To go from one-location to another Repetitive operations Example 1 – Kebab Delivery Example 2 – Mail Delivery Example 3 – Goods Delivery for a Retailer Example 4 – Electricity-Meter Reading

Representation by networks Graphical representation Nodes (vertices) + arcs (edges)

Representation by networks Nodes – often represent geographic points (cities, intersections, railroad stops, production points, ....) Arcs – often represents links between nodes (Roads, railroads, ....) Arcs can be undirected (two-way) or directed (one-way) Nodes, arcs can be uncapacitated, capacitated Arcs are weighted with numerical values (distance, time, cost, ....)

Hamiltonian Path Problem Assume a network with all possible arcs – called complete graph Hamiltonian Circuit (path, graph) – a path that visits each node exactly once Find the path that minimizes total “distance” written on the arcs. An approach: Brute-force approach (total enumeration) Try every unique circuit

Questions to answer: How many possible circuits? Take any circuit and travel in reverse How many unique circuits remain? Writing General formulas: How many total circuits? Without duplicates?

More questions to answer: Let n = 21. Then total number of unique circuits without repetition 20!/2 – 1.22x1018 What is an operation? Let the fastest computer do approximately 1 trillion (1x1012) operations (computations) per second Let us assume that we need more or less 100 operations to obtain a circuit 1400 days if the computer runs continuously

Traveling Salesman Problem - TSP Definition: What is the shortest possible route that visits each city exactly once and returns to the origin city? Find the Hamiltonian path that minimizes total “distance” written on the arcs.

More on solution What if enumeration is not possible? Will they give the optimal solution? Not always A good solution? Not sure But can be applied in reasonable time We can try a bit more sophisticated techniques, as well. These methods are called “heuristics”.

Ending Remarks NP-Hard (non-polynomial) - # of operations required by the solution algorithm is not polynomial in # of nodes. NP-Hard problems can not be solved to optimality unless # of nodes is “reasonable”. We resort to use of heuristics – no quarantee of optimality; if lucky get bounds – benchmark.

Ending Remarks (continued) Heuristics Should be easier to apply Should be based on some “logic” Construction heuristic – construct a solution (Random, Greedy / Nearest Neighbour) Improvement heuristic – improve an available solution (2-opt) You need both aspects, in general. Implications for IE curriculum

Heuristics Random Connect the cities randomly Nearest Neighbour Each time insert the closest unvisited node Greedy Go along the cheapest arc between a visited and unvisited node, continue until none remains Then apply 2-opt Choose two arcs and switch if the distance decreases. Continue until no such switch is possible

Heuristics Videos: 1) TSP general: https://www.youtube.com/watch?v=pQCpdrAxWkg 2) Some Algorithms: https://www.youtube.com/watch?v=q6fPk0--eHY First, 1:37 min 3) Visualization https://flowingdata.com/2016/05/06/algorithms-for-the- traveling-salesman-problem-visualized/

Don’t forget to enter nicknames as your ID’s. Networks QUIZ! www.getkahoot.com Don’t forget to enter nicknames as your ID’s.