Facilities Planning Objectives and Agenda: 1. Different types of Facilities Planning Problems 2. Intro to Graphs as a tool for deterministic optimization.

Slides:



Advertisements
Similar presentations
CSE 211 Discrete Mathematics
Advertisements

Lecture 15. Graph Algorithms
Cpt S 223 – Advanced Data Structures Graph Algorithms: Introduction
O(N 1.5 ) divide-and-conquer technique for Minimum Spanning Tree problem Step 1: Divide the graph into  N sub-graph by clustering. Step 2: Solve each.
Introduction to Graph Theory Instructor: Dr. Chaudhary Department of Computer Science Millersville University Reading Assignment Chapter 1.
IKI 10100: Data Structures & Algorithms Ruli Manurung (acknowledgments to Denny & Ade Azurat) 1 Fasilkom UI Ruli Manurung (Fasilkom UI)IKI10100: Lecture10.
CS 206 Introduction to Computer Science II 03 / 27 / 2009 Instructor: Michael Eckmann.
CMPS 2433 Discrete Structures Chapter 5 - Trees R. HALVERSON – MIDWESTERN STATE UNIVERSITY.
CS 206 Introduction to Computer Science II 11 / 11 / Veterans Day Instructor: Michael Eckmann.
C++ Programming: Program Design Including Data Structures, Third Edition Chapter 21: Graphs.
Graphs Intro G.Kamberova, Algorithms Graphs Introduction Gerda Kamberova Department of Computer Science Hofstra University.
Graph Algorithms: Minimum Spanning Tree We are given a weighted, undirected graph G = (V, E), with weight function w:
Network Optimization Problems: Models and Algorithms This handout: Minimum Spanning Tree Problem.
Introduction to Graphs
Graphs and Trees This handout: Trees Minimum Spanning Tree Problem.
CS 206 Introduction to Computer Science II 11 / 03 / 2008 Instructor: Michael Eckmann.
CS 206 Introduction to Computer Science II 11 / 05 / 2008 Instructor: Michael Eckmann.
CS 206 Introduction to Computer Science II 03 / 25 / 2009 Instructor: Michael Eckmann.
CS Data Structures Chapter 6 Graphs.
Graphs G = (V,E) V is the vertex set. Vertices are also called nodes and points. E is the edge set. Each edge connects two different vertices. Edges are.
1 CSE 417: Algorithms and Computational Complexity Winter 2001 Lecture 10 Instructor: Paul Beame.
Graphs. Graph A “graph” is a collection of “nodes” that are connected to each other Graph Theory: This novel way of solving problems was invented by a.
Discrete Mathematics Lecture 9 Alexander Bukharovich New York University.
Minimum Spanning Trees. Subgraph A graph G is a subgraph of graph H if –The vertices of G are a subset of the vertices of H, and –The edges of G are a.
Minimum Spanning Tree Algorithms. What is A Spanning Tree? u v b a c d e f Given a connected, undirected graph G=(V,E), a spanning tree of that graph.
IS 2610: Data Structures Graph April 5, 2004.
Algorithms for Network Optimization Problems This handout: Minimum Spanning Tree Problem Approximation Algorithms Traveling Salesman Problem.
Chapter 9 – Graphs A graph G=(V,E) – vertices and edges
Lecture 13 Graphs. Introduction to Graphs Examples of Graphs – Airline Route Map What is the fastest way to get from Pittsburgh to St Louis? What is the.
Graph Dr. Bernard Chen Ph.D. University of Central Arkansas.
Chapter 2 Graph Algorithms.
GRAPHS CSE, POSTECH. Chapter 16 covers the following topics Graph terminology: vertex, edge, adjacent, incident, degree, cycle, path, connected component,
1 ELEC692 Fall 2004 Lecture 1b ELEC692 Lecture 1a Introduction to graph theory and algorithm.
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.
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.
Introduction to Graphs. Introduction Graphs are a generalization of trees –Nodes or verticies –Edges or arcs Two kinds of graphs –Directed –Undirected.
1 CS104 : Discrete Structures Chapter V Graph Theory.
Minimum Spanning Trees Prof. Sin-Min Lee Dept. of Computer Science, San Jose State University.
Lecture 19 Greedy Algorithms Minimum Spanning Tree Problem.
Introduction to Graph Theory
COSC 2007 Data Structures II Chapter 14 Graphs I.
Minimum Spanning Trees CS 146 Prof. Sin-Min Lee Regina Wang.
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.
Graphs. Graphs Similar to the graphs you’ve known since the 5 th grade: line graphs, bar graphs, etc., but more general. Those mathematical graphs are.
Graphs and MSTs Sections 1.4 and 9.1. Partial-Order Relations Everybody is not related to everybody. Examples? Direct road connections between locations.
GRAPHS. Graph Graph terminology: vertex, edge, adjacent, incident, degree, cycle, path, connected component, spanning tree Types of graphs: undirected,
Graphs Upon completion you will be able to:
Chapter 20: Graphs. Objectives In this chapter, you will: – Learn about graphs – Become familiar with the basic terminology of graph theory – Discover.
Chapter 05 Introduction to Graph And Search Algorithms.
Lecture 20. Graphs and network models 1. Recap Binary search tree is a special binary tree which is designed to make the search of elements or keys in.
Minimum Spanning Trees
Graph Theory and Optimization
Minimum Spanning Trees
Discrete Mathematicsq
I206: Lecture 15: Graphs Marti Hearst Spring 2012.
Refresh and Get Ready for More
Minimum Spanning Trees
Graphs & Graph Algorithms 2
Graphs Chapter 13.
Graphs Chapter 11 Objectives Upon completion you will be able to:
Minimum Spanning Trees
Chapter 23 Minimum Spanning Tree
CS 583 Analysis of Algorithms
Minimum Spanning Tree Section 7.3: Examples {1,2,3,4}
Minimum spanning trees
INTRODUCTION TO NETWORK FLOWS
Graphs G = (V,E) V is the vertex set.
More Graphs Lecture 19 CS2110 – Fall 2009.
Presentation transcript:

Facilities Planning Objectives and Agenda: 1. Different types of Facilities Planning Problems 2. Intro to Graphs as a tool for deterministic optimization 3. Finding the Minimum Spanning Tree (MST) in a graph 4. Optimum solution of a Facilities Planning Problem using MST

Facilities Planning Problems: (a) Site Location Problem - Where to locate a new/additional facility Issues: Cost, labor availability, wage levels, govt. subsidies, transportation costs for materials, taxes, legal issues, … Example: New China Oil co. 7 oil wells  1 Refinery Where to locate the refinery to minimize pipeline costs.

Facilities Planning Problems: (b) Site planning - How many buildings are required at a site, their locations, sizes, and connections (materials, data) Example: Athletic Shoe Co. (a) What are the issues used to determine building locations? (b) Optimum layout of underground data cables to connect all buildings?

Facilities Planning Problems: (c) Building Layout Problem - Determine the best size and shape of each department in a building Mold cutting workshop Injection Molding Machine Spray painting shop Plastics molding shop FACTORY BUILDINGS Raw materials warehouse Product assembly shop Design Dept Mold warehouse Product warehouse Example: Plastic Mold Co.

Facilities Planning Problems: (d) Department Layout Problem - How to layout the machines, work stations, etc. in a department Example: Old China Bicycle Co. How will you design the assembly line for assembling 100 bikes/day?

Facilities Planning Problems Most Facility Planning Problems have many constraints  Mathematical models are very complex [Why do we need to make mathematical model ?] We will study one (simple) example of the Site planning Problem

Example: Site Planning Problem - Join N population centers of a city by Train System (MTR) - Direct connection lines can be built between some pairs - Cost of Train network  total length of lines - Each pair of Stations must have some train route between them Example: Map of Delhi and some Population centers.

Example: Site Planning Problem We will use ‘Graphs’ to solve the example - Graph theory (in Mathematics) is useful to solve many problems - We will use one Graph method: Minimum Spanning Trees (MST) - MST can be used for many different problems

Introduction and Terminology: Graphs Graph: G(V, E), V = a set of nodes and E = a set of edges. Each edge links exactly two nodes, (node1, node2) An edge is incident on each node on its ends. Example: G(V, E) = ( { a, b, c, d}, { (a, b), (b, c), (b, d), (c, d), (a, d)} ) a b d c a b d c

Graph terminology Path:a sequence of nodes, such that (i) each n i  V (ii) (n i, n i+1 )  E, for each i = 0,.., k Moving on a path: traversing the graph The length of a path = number of edges in the path Example: P =, |P| = 3 a b d c a b d c

Graph terminology.. Directed graph, Digraph: each edge has a direction (tail, head) A directed edge isincident from the tail, incident to the head. Tail = = parent, Head = = child e c d f a b Degree of node: no. of edges incident on it Digraph:no. of incoming edges = indegree no. of incoming edges = outdegree Cycle: A closed path Weighted graph: each edge  a real weight a d b c

Graph terminology… Connected graph: a path between every pair of nodes e c d f a b e c d f a b e c d f a b e h f b d a g c e h f b d a g c e h f b d a g c e c d f a b e c d f a b e c d f a b e h f b d a g c e h f b d a g c e h f b d a g c Strongly connected digraph: each node reachable from every other node unconnected connected Strongly connected not strongly connected

Graph terminology…. e c d f a b e c d f a b e c d f a b e c d f a b e c d f a b e c d f a b A tree is an undirected, acyclic, connected graph Acyclic graph: graph with no cycles

Example: (repeat) - Join N population centers of a city by Train System (MTR) - Direct connection lines can be built between some pairs - Cost of Train network  total length of lines - Each pair of Stations must have some train route between them Example: Map of Delhi and some Population centers.

Minimum spanning Trees: Example Redraw only the graph, with weights  length of rail link.

Properties of optimum solution Property 2. The optimum solution is a tree. Proof (by contradiction): Assume existence of cycle. => ?? => Optimum set of railway links is a minimum spanning tree Property 1. The optimum set of connections is a sub-graph M( V’, E’) of G, such that V’ = V, and E’  E. Why?

Minimum spanning Trees: Prim’s method Step 1. Put the entire graph (all nodes and edges) in a bag. Step 2. Select any one node, pull it out of the bag; (edges incident on this node will cross the bag) Step 3. Among all edges crossing the bag, pick the one with MIN weight. Add this edge to the MST. Step 4.Select the node inside the bag connected to edge selected in Step 3. Step 5.Pull node selected in Step 5 out of bag. Step 6.Repeat steps 3, 4, 5 until the bag is empty.

Minimum spanning Trees: Example

Minimum spanning Trees: Example..

Minimum spanning Trees: Example…

Minimum spanning Trees: Example….

Minimum spanning Trees: Example…..

Minimum spanning Trees: Example……

Minimum spanning Trees: Example…….

Minimum spanning Trees: Example……..

Minimum spanning Trees: Example……...

Minimum spanning Trees: Example……….

Minimum spanning Trees: not unique

Proof of correctness, Prim’s algorithm Proof by induction: At the i-th step: we have a partial MST “outside the bag” we select Least weight edge crossing the bag Light-edge

Proof of correctness, Prim’s algorithm.. Assume: Light-edge is not part of MST => Some other “bag-crossing-edge” must be part of MST [WHY?] heavy-edge e out w y x e w y x e in c b a e c b a p Light-edge- => : cycle => cut heavy-edge, join light-edge  reduce cost (contradiction!)

Concluding remarks Minimum spanning Trees provide good starting solutions For problems of the type: connect towns with roads, connect factories with supply lines connect buildings with networks connect town-areas with water/sewage channels … For real solutions: extra (redundant) links may be useful next topic: Transportation Planning: Shortest Paths