Homework 1 Problem 1: (5 points) Both Dijkstras algorihm and Bellmanford Algorithm generates shortest paths to all destinations. Modify the algorithm to.

Slides:



Advertisements
Similar presentations
Bellman-Ford algorithm
Advertisements

Lecture 7. Network Flows We consider a network with directed edges. Every edge has a capacity. If there is an edge from i to j, there is an edge from.
4/12/2015© 2009 Raymond P. Jefferis IIILect Internet Protocol - Continued.
Introduction 1 Lecture 22 Network Layer (Broadcast and Multicast) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science.
IKI 10100: Data Structures & Algorithms Ruli Manurung (acknowledgments to Denny & Ade Azurat) 1 Fasilkom UI Ruli Manurung (Fasilkom UI)IKI10100: Lecture10.
Chapter 4 The Greedy Approach. Minimum Spanning Tree A tree is an acyclic, connected, undirected graph. A spanning tree for a given graph G=, where E.
Design and Analysis of Algorithms Single-source shortest paths, all-pairs shortest paths Haidong Xue Summer 2012, at GSU.
Graphs Chapter 12. Chapter Objectives  To become familiar with graph terminology and the different types of graphs  To study a Graph ADT and different.
Midwestern State University Department of Computer Science Dr. Ranette Halverson CMPS 2433 CHAPTER 4 - PART 2 GRAPHS 1.
Lecture 2. Recapitulation Algorithm complexity analysis Point to point routing algorithms –Dijkstra –Bellman-Ford Questions?
Tirgul 12 Algorithm for Single-Source-Shortest-Paths (s-s-s-p) Problem Application of s-s-s-p for Solving a System of Difference Constraints.
Multicast Routing: Problem Statement r Goal: find a tree (or trees) connecting routers having local mcast group members m tree: not all paths between routers.
Chapter 9 Graph algorithms. Sample Graph Problems Path problems. Connectedness problems. Spanning tree problems.
CSC 213 Lecture 23: Shortest Path Algorithms. Weighted Graphs Each edge in weighted graph has numerical weight Weights can be distances, building costs,
Network Layer4-1 Spanning trees r Suppose you have a connected undirected graph m Connected: every node is reachable from every other node m Undirected:
1 Internet Networking Spring 2006 Tutorial 6 Network Cost of Minimum Spanning Tree.
Lecture 3. Preview of Markov Process A sequence of random variables X 1, X 2,….,X n,….. such that –X i+1 is independent of X 1,….X i-1 given X i –Pr(X.
A general approximation technique for constrained forest problems Michael X. Goemans & David P. Williamson Presented by: Yonatan Elhanani & Yuval Cohen.
Graphs Chapter 12. Chapter 12: Graphs2 Chapter Objectives To become familiar with graph terminology and the different types of graphs To study a Graph.
Lecture 5 Group Communication. Point to Multipoint Communication Single source, Multiple Destinations Broadcast – All nodes in the network are destinations.
Chapter 9 Graph algorithms Lec 21 Dec 1, Sample Graph Problems Path problems. Connectedness problems. Spanning tree problems.
TCOM 501: Networking Theory & Fundamentals
Lecture 11. Matching A set of edges which do not share a vertex is a matching. Application: Wireless Networks may consist of nodes with single radios,
Lecture 10. TCP flow Control Used for data transfer Every successful packet is acknowledged One can not have more than W unacknowledged packets, where.
1 IP Multicasting. 2 IP Multicasting: Motivation Problem: Want to deliver a packet from a source to multiple receivers Applications: –Streaming of Continuous.
CSE 421 Algorithms Richard Anderson Lecture 10 Minimum Spanning Trees.
1 Internet Networking Spring 2004 Tutorial 6 Network Cost of Minimum Spanning Tree.
1 Internet Networking Spring 2002 Tutorial 6 Network Cost of Minimum Spanning Tree.
Fall 2007CS 2251 Graphs Chapter 12. Fall 2007CS 2252 Chapter Objectives To become familiar with graph terminology and the different types of graphs To.
1 Shortest Path Algorithms. 2 Routing Algorithms Shortest path routing What is a shortest path? –Minimum number of hops? –Minimum distance? There is a.
Lecture 11. Matching A set of edges which do not share a vertex is a matching. Application: Wireless Networks may consist of nodes with single radios,
The Shortest Path Problem
Homework 2. Problem 1 Families 1…..N go out for dinner together. To increase their social interaction, no two members of the same family use the same.
CS223 Advanced Data Structures and Algorithms 1 The Bellman-Ford Shortest Path Algorithm Neil Tang 03/11/2010.
Lecture 12-2: Introduction to Computer Algorithms beyond Search & Sort.
Review: routing algorithms. –Choose the appropriate paths. –Routing algorithms Flooding Shortest path routing (example). –Dijkstra algorithm. –Bellman-Ford.
CS 5565 Network Architecture and Protocols Godmar Back Lecture 22.
IEEE Globecom 2010 Tan Le Yong Liu Department of Electrical and Computer Engineering Polytechnic Institute of NYU Opportunistic Overlay Multicast in Wireless.
CS774. Markov Random Field : Theory and Application Lecture 21 Kyomin Jung KAIST Nov
Network and Communications Ju Wang Chapter 5 Routing Algorithm Adopted from Choi’s notes Virginia Commonwealth University.
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.
Lecture 19 Greedy Algorithms Minimum Spanning Tree Problem.
Shortest Path Algorithms. Definitions Variants  Single-source shortest-paths problem: Given a graph, finding a shortest path from a given source.
CS223 Advanced Data Structures and Algorithms 1 Maximum Flow Neil Tang 3/30/2010.
Graphs Chapter 12. Chapter 12: Graphs2 Chapter Objectives To become familiar with graph terminology and the different types of graphs To study a Graph.
Suppose G = (V, E) is a directed network. Each edge (i,j) in E has an associated ‘length’ c ij (cost, time, distance, …). Determine a path of shortest.
1 Low Latency Multimedia Broadcast in Multi-Rate Wireless Meshes Chun Tung Chou, Archan Misra Proc. 1st IEEE Workshop on Wireless Mesh Networks (WIMESH),
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.
Fundamentals of Computer Networks ECE 478/578
CSCI-256 Data Structures & Algorithm Analysis Lecture Note: Some slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved. 11.
Distance Vector and Link State Routing Pragyaditya Das.
Spanning Trees Dijkstra (Unit 10) SOL: DM.2 Classwork worksheet Homework (day 70) Worksheet Quiz next block.
Minimum Spanning Trees
(How the routers’ tables are filled in)
Minimum Spanning Tree Chapter 13.6.
Spanning Trees Discrete Mathematics.
CS223 Advanced Data Structures and Algorithms
Graph Algorithm.
Minimum Spanning Trees
Minimum Spanning Tree Neil Tang 3/25/2010
Connected Components Minimum Spanning Tree
Weighted Graphs & Shortest Paths
Dijkstra’s Shortest Path Algorithm Neil Tang 3/2/2010
Maximum Flow Neil Tang 4/8/2008
Winter 2019 Lecture 11 Minimum Spanning Trees (Part II)
Prim’s Minimum Spanning Tree Algorithm Neil Tang 4/1/2008
Chapter 9 Graph algorithms
For Friday Read chapter 9, sections 2-3 No homework
Optimal Control for Generalized Network-Flow Problems
Autumn 2019 Lecture 11 Minimum Spanning Trees (Part II)
Presentation transcript:

Homework 1 Problem 1: (5 points) Both Dijkstras algorihm and Bellmanford Algorithm generates shortest paths to all destinations. Modify the algorithm to compute shortest paths to a single specified destination and analyze its complexity. Problem 2: (5 points) Can you modify Dijkstras algorithm to generate shortest paths to all vertices from a given source vertex, if all these vertices are connected to the source vertex, and detect that the graph is not connected if the source is not connected to some vertices?

Problem 3: (5 points) Generate a counter example where Dijkstras algorithm fails to generate shortest paths in graphs with negative edge weights, but no non-positive weight cycle. Problem 4: (5 points) Give an algorithm for computing the maximum weight spanning tree in a graph and analyze its complexity.

Problem 5: (10 points) Consider two graphs G and G’ which are identical except the weights of the edges. Weight in edge e of graph G is w(e) >=0, and weight in edge e of Graph G’ is aw(e) + b, where a and b are constants. Are the minimum spanning trees of G and G’ identical? Are the shortest paths between any two vertices in the two graphs identical? Justify your answer. (If you answer positive, then prove your answer. If you answer negative, then give counter examples). If you answer negative for any of these, can you think of conditions on a and b, for which your answer would be positive? Suppose the weight of an edge e in graph G’ is 1/w(e). Is the minimum weight spanning tree in G the maximum weight spanning tree in G’ and vice-versa? Justify.

Problem 6: (5 points) Consider the minimum steiner tree problem. Suppose someone tells you the intermediate vertices in a minimum steiner tree (intermediate vertices are the ones which are not the vertices in the multicast group). Can you present a polynomial complexity algorithm to compute the minimum steiner tree? Analyze its complexity. Problem 7: (5 points) Consider a vertex v. Does the mnimum spanning tree always consist of shortest paths from v to all other vertices?

Problem 8: (10 points) Prove that the markov chain representing the wireless network taught in lectures 2 and 3 has one closed set, and possibly a few other open sets, under the routing and scheduling policy discussed in class. Also prove that the closed set has period 1, under certain assumptions on the arrival probabilities. You may assume that every packet has duration 1 slot. Problem 9: (10 points) Consider a network with a reward associated with every edge. The reward associated with every path is the minimum reward in any link in the path. Present an algorithm which computes the highest reward path between a source and a destination. Analyze its complexity.

Problem 10: (15 points) Consider a unirate, multicast network with N sessions. Assume that the traffic for every session traverses a predetermined route. Construct a unicast network with N sessions with predetermined routes for each session such that a feasible rate vector in the unirate, multicast network is a feasible rate vector in the unicast network and vice versa. (The size of the unicast network will be larger than the size of the multicast network). Now consider a multirate, multicast network with M virtual sessions. Again assume that the traffic for every session traverses a predetermined route. Construct a unicast network with M sessions with predetermined routes for each session such that a feasible rate vector in the multirate, multicast network is a feasible rate vector in the unicast network and vice versa. (The size of the unicast network will be much larger than the size of the multicast network).