Homework #6: Local Access Design

Slides:



Advertisements
Similar presentations
Chapter 23 Minimum Spanning Tree
Advertisements

1. Find the cost of each of the following using the Nearest Neighbor Algorithm. a)Start at Vertex M.
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.
Nearest Neighbor Queries using R-trees
Great Theoretical Ideas in Computer Science for Some.
Chen, Lu Mentor: Zhou, Jian Shanghai University, School of Management Chen213.shu.edu.cn.
IKI 10100: Data Structures & Algorithms Ruli Manurung (acknowledgments to Denny & Ade Azurat) 1 Fasilkom UI Ruli Manurung (Fasilkom UI)IKI10100: Lecture10.
Parsimony based phylogenetic trees Sushmita Roy BMI/CS 576 Sep 30 th, 2014.
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.
Lecture 13 CSE 331 Oct 2, Announcements Please turn in your HW 3 Graded HW2, solutions to HW 3, HW 4 at the END of the class Maybe extra lectures.
Approximation Algorithms Lecture for CS 302. What is a NP problem? Given an instance of the problem, V, and a ‘certificate’, C, we can verify V is in.
Graphs & Graph Algorithms 2 Nelson Padua-Perez Bill Pugh Department of Computer Science University of Maryland, College Park.
Graphs & Graph Algorithms 2
CSE 421 Algorithms Richard Anderson Lecture 10 Minimum Spanning Trees.
TCOM 540/11 TCOM 540 Session 6. TCOM 540/12 Agenda Review Session 4 and 5 assignments Multicenter local access design.
CSE 550 Computer Network Design Dr. Mohammed H. Sqalli COE, KFUPM Spring 2007 (Term 062)
Graphs & Graph Algorithms 2 Fawzi Emad Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
Lecture 27 CSE 331 Nov 6, Homework related stuff Solutions to HW 7 and HW 8 at the END of the lecture Turn in HW 7.
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 Trees What is a MST (Minimum Spanning Tree) and how to find it with Prim’s algorithm and Kruskal’s algorithm.
An Illustration of Prim's Algorithm
Nirmalya Roy School of Electrical Engineering and Computer Science Washington State University Cpt S 223 – Advanced Data Structures Graph Algorithms: Minimum.
Minimum Spanning Trees
CS 146: Data Structures and Algorithms July 21 Class Meeting
© The McGraw-Hill Companies, Inc., Chapter 3 The Greedy Method.
Chapter 9 – Graphs A graph G=(V,E) – vertices and edges
1 TCOM 5143 Telecommunications Analysis, Planning and Design Lecture 6 Network Design and Graph Theory: part 2 Shortest Path trees and Tours.
Spring 2015 Mathematics in Management Science Network Problems Networks & Trees Minimum Networks Spanning Trees Minimum Spanning Trees.
Dijkstra’s Algorithm. Announcements Assignment #2 Due Tonight Exams Graded Assignment #3 Posted.
Lecture 19 Greedy Algorithms Minimum Spanning Tree Problem.
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.
Minimum Spanning Trees CS 146 Prof. Sin-Min Lee Regina Wang.
Union-Find  Application in Kruskal’s Algorithm  Optimizing Union and Find Methods.
Spanning Tree Algorithms William T. Trotter and Mitchel T. Keller Math 3012 – Applied Combinatorics Spring 2009.
Routing Topology Algorithms Mustafa Ozdal 1. Introduction How to connect nets with multiple terminals? Net topologies needed before point-to-point routing.
CSE 421 Algorithms Richard Anderson Winter 2009 Lecture 5.
1 TCOM 5143 Lecture 10 Centralized Networks: Time Delay and Cost Tradeoffs.
Lecture 19 Minimal Spanning Trees CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
Example Apply hierarchical clustering with d min to below data where c=3. Nearest neighbor clustering d min d max will form elongated clusters!
Turn in HW and Classwork sheet from last class. You have 10 minutes to complete the warm- up. After the warm-up, we will finish our notes on algorithms.
Data Structures & Algorithms Graphs Richard Newman based on book by R. Sedgewick and slides by S. Sahni.
Kruskal’s Algorithm for Computing MSTs Section 9.2.
Graph Search Applications, Minimum Spanning Tree
Chapter 9 : Graphs Part II (Minimum Spanning Trees)
Dr. Bernard Chen Ph.D. University of Central Arkansas Fall 2008
Greedy function greedy { S <- S0 //Initialization
Shortest Paths and Minimum Spanning Trees
Great Theoretical Ideas in Computer Science
Topological Sort (topological order)
Short paths and spanning trees
Data Structures & Algorithms Graphs
Graph Search Applications
Graph Algorithm.
Minimum Spanning Tree.
Visualizing Prim’s MST Algorithm Used to Trace the Algorithm in Class
Minimum Spanning Tree.
Graphs & Graph Algorithms 2
Minimum Spanning Trees
Kruskal’s Algorithm for finding a minimum spanning tree
Access Network Design A Backbone network connects major sites.
Kruskal’s Minimum Spanning Tree Algorithm
A path that uses every vertex of the graph exactly once.
Minimum Spanning Tree Algorithms
Shortest Paths and Minimum Spanning Trees
Cheapest-Link Algorithm/Sorted Edges (Unit 10) SOL: DM.2
Minimum Spanning Tree.
CSE 550 Computer Network Design
CSE 417: Algorithms and Computational Complexity
Minimum Spanning Trees (MSTs)
Chapter 15.5 from “Distributed Algorithms” by Nancy A. Lynch
Presentation transcript:

Homework #6: Local Access Design Given the topology below, the weight of each node is 1, and W = 3 a) apply the greedy CMST algorithm. b) apply the Esau-Williams algorithm. Highlight the trees (components) selected. 4/15/2019 C. Edward Chow

Solution to Hw#6 Solution a): Greedy MST. First sort the edge cost in increasing order. Edge Cost CMST Decision (1,4) 1 select (2,3) (0,1) 2 (3,5) (0,5) 5 Select, Done! (2,4) (1,2) 6 (1,3) 7 (0,2) 8 4/15/2019 C. Edward Chow

Solution to Hw#6(2) Solution b) Esau-Williams Algorithm begin by computing the tradeoffs for the nearest neighbors of each node (since that link will have smallest cost and yield a low trade-off values): t14 = c14 - cc1 = 1 - 2 = -1 t23 = 1 - 8 = -7 t32 = 1 - 11 = -10 t41 = 1 - 14 = -13 t53 = c53 - cc5 = 2 - 5 = -3 starting with t41 which is the lowest tradeoff value, we add link (4,1) to subtrees, now cc4 = 2 since node 4 now connected to the center through node 1, find the next nearest neighbor of 1 to be 0, t10=2-2=0 let us now compute the tradeoff between node 4 and the next nearest neighbor to node 4 (which is node 2), t42 = c42 - cc4 = 5 -2 = 3 4/15/2019 C. Edward Chow

Solution to Hw#6(3) Now t32 has the lowest tradeoff value, add link (3,2) to the subtrees, now cc3 = 8 and the next nearest neighbor to node 3 is 5, t35 = 2 - 8 = -6 We also need to update t23 since (2,3) is chosen. The next nearest neighbor to node 2 is 4, t24 = 5 - 8 = -3 Select t35=-6, add link(3,5) to the subtrees. N ow Cc2=Cc3=Cc5=5, we need to update t31=7-5=2 t24=5-5=0 t50=5-5=0 Select (1,0) add link (1,0) to the subtrees. Reject (2,4) since it will create a component of weight = 4. Select (5,0) add link (5,0) to the subtrees. Now all nodes are connected to node 0. Note that the algorithm always terminates with links whose tradeoffs are 0. We will never consider any links with positive tradeoff. 4/15/2019 C. Edward Chow

Solution to Hw#6(4) The solution has a cost of 11. Both EW algorithm and GMST find optimal solution but GMST is much faster. 4/15/2019 C. Edward Chow