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.

Slides:



Advertisements
Similar presentations
Maximum flow Main goals of the lecture:
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.
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.
Interconnect throughput modeling. Important network performance metrics Throughput – Point to point (link bandwidth + end host software overheads) – Aggregate.
15.082J & 6.855J & ESD.78J October 14, 2010 Maximum Flows 2.
1 Maximum flow sender receiver Capacity constraint Lecture 6: Jan 25.
Label Placement and graph drawing Imo Lieberwerth.
EMIS 8374 Vertex Connectivity Updated 20 March 2008.
R. Johnsonbaugh Discrete Mathematics 5 th edition, 2001 Chapter 8 Network models.
MAX FLOW APPLICATIONS CS302, Spring 2013 David Kauchak.
Five Problems CSE 421 Richard Anderson Winter 2009, Lecture 3.
Prof. Swarat Chaudhuri COMP 482: Design and Analysis of Algorithms Spring 2012 Lecture 19.
1 Maximum Flow Networks Suppose G = (V, E) is a directed network. Each edge (i,j) in E has an associated ‘capacity’ u ij. Goal: Determine the maximum amount.
1 Discrete Structures & Algorithms Graphs and Trees: II EECE 320.
HW2 Solutions. Problem 1 Construct a bipartite graph where, every family represents a vertex in one partition, and table represents a vertex in another.
CSE 421 Algorithms Richard Anderson Lecture 22 Network Flow.
1 Internet Networking Spring 2002 Tutorial 9 Max-Min Fairness.
1 Internet Networking Spring 2004 Tutorial 9 Max-Min Fairness.
Maximum Flows Lecture 4: Jan 19. Network transmission Given a directed graph G A source node s A sink node t Goal: To send as much information from s.
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.
Gomory-Hu Tree for representation of minimum cuts Elad Avni.
Linear Programming – Max Flow – Min Cut Orgad Keller.
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,
Advanced Algorithms Piyush Kumar (Lecture 4: MaxFlow MinCut Applications) Welcome to COT5405.
CSE 421 Algorithms Richard Anderson Lecture 24 Network Flow Applications.
Lecture 16 Maximum Matching. Incremental Method Transform from a feasible solution to another feasible solution to increase (or decrease) the value of.
Theory of Computing Lecture 13 MAS 714 Hartmut Klauck.
Interconnect Performance Modeling. Performance modeling Given an interconnect topology, routing, and other parameters, predict the interconnect performance.
Announcements Network Flow today, depending on how far we get, we will do String Matching on Wednesday Then Review for Final next Monday This week’s lab.
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.
MAX FLOW APPLICATIONS CS302, Spring 2012 David Kauchak.
CS223 Advanced Data Structures and Algorithms 1 Maximum Flow Neil Tang 3/30/2010.
Network Flows Chun-Ta, Yu Graduate Institute Information Management Dept. National Taiwan University.
CSCI-256 Data Structures & Algorithm Analysis Lecture Note: Some slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved. 25.
and 6.855J March 6, 2003 Maximum Flows 2. 2 Network Reliability u Communication Network u What is the maximum number of arc disjoint paths from.
Homework - hints Problem 1. Node weights  Edge weights
Algorithm Design and Analysis (ADA)
Homework 1 Problem 1: (5 points) Both Dijkstras algorihm and Bellmanford Algorithm generates shortest paths to all destinations. Modify the algorithm to.
Prof. Swarat Chaudhuri COMP 382: Reasoning about Algorithms Fall 2015.
CS 312: Algorithm Design & Analysis Lecture #29: Network Flow and Cuts This work is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported.
TU/e Algorithms (2IL15) – Lecture 8 1 MAXIMUM FLOW (part II)
Maximum Flow c v 3/3 4/6 1/1 4/7 t s 3/3 w 1/9 3/5 1/1 3/5 u z 2/2
Richard Anderson Lecture 23 Network Flow
Chapter 5. Optimal Matchings
Lecture 16 Maximum Matching
Instructor: Shengyu Zhang
Maximum Flow c v 3/3 4/6 1/1 4/7 t s 3/3 w 1/9 3/5 1/1 3/5 u z 2/2
3.5 Minimum Cuts in Undirected Graphs
CSE 421 Richard Anderson Autumn 2016, Lecture 3
Vertex Covers, Matchings, and Independent Sets
Richard Anderson Lecture 21 Network Flow
CSE 421 Richard Anderson Autumn 2015, Lecture 3
Max Flow Min Cut, Bipartite Matching Yin Tat Lee
Some graphs you may have met under different circumstances.
Piyush Kumar (Lecture 6: MaxFlow MinCut Applications)
Algorithms (2IL15) – Lecture 7
Max Flow / Min Cut.
Maximum Flow c v 3/3 4/6 1/1 4/7 t s 3/3 w 1/9 3/5 1/1 3/5 u z 2/2
Network Flow.
Maximum Flow Neil Tang 4/8/2008
CSE 421, University of Washington, Autumn 2006
Winter 2019 Lecture 11 Minimum Spanning Trees (Part II)
Network Flow.
Kramer’s (a.k.a Cramer’s) Rule
Maximum Flow Problems in 2005.
Vertex Covers and Matchings
EMIS 8374 Max-Flow in Undirected Networks Updated 18 March 2008
CSE 421 Richard Anderson Autumn 2019, Lecture 3
Autumn 2019 Lecture 11 Minimum Spanning Trees (Part II)
Presentation transcript:

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 table. Family j has a(j) members. There are M tables. Table j can seat b(j) people. Find a valid seating assignment if one exists.

Problem 2 A commander is located at one node p in a network. His subordinates constitute a node set S. The enemy needs to cut off the communication between the commander and his subordinates (commander should not be able to communicate to any of his subordinates). Enemy needs w(e) effort to remove an edge e in the network. Compute the minimum effort required to cut off the communication between the commander and his subordinates.

Problem 3 A network has some infinite capacity edges. Replace these capacities by finite numbers such that the maximum flow between any source and destination is not reduced.

Problem 4 Prove or disprove (give counter examples) for the following: 1.For any maximum flow allocation, for all pairs (u, v) either flow in edge (u, v) or flow in (v, u) must be 0 2.There exists one maximum flow for which for all pairs (u, v) either flow in edge (u, v) or flow in (v, u) is 0 3.If all edges have unique capacities, the network has a unique minimum cut. 4.If we add a positive number b to the capacity of every edge, the minimum cut remains the same.

Problem 5 Consider a network with a source and a destination. An edge is called upward critical if increasing the capacity of an edge increases the maximum flow. Does all networks have an upward critical edge? An edge is called downward critical if decreasing the capacity of the edge decreases the maximum flow. Does all networks have a downward critical edge? Justify your answer in both cases.

Problem 6 Consider a network with a source and a destination. Links have integer edge capacities. Suppose a maximum flow allocation is known. Increase the capacity of an edge by 1 unit. Give an algorithm for updating the maximum flow. (Your algorithm should be substantially faster than max flow computation capacity).

Problem 7 Consider a convex function f(x) from R M to R (x is an M dimensional vector). Prove that f(x)  q is a convex set. Consider (  1,……  N ) such that  j  j = 1,  j  0. Prove that  i x i    j  j x i (Hint: -ln x is a convex function).

Problem 8 The definition for maxmin fairness can be generalized as follows. A vector (not necessarily rate allocation vector) is maxmin fair in a feasible set if none of its components can be increased without hurting an equal or lower component. Consider a feasible set: r  1. Is there a maxmin fair vector in this feasible set? (Here, any vector consists of a single component). What is the answer for the feasible set r  1? How about the feasible set with x  [0, 0.2]  [0.8, 1] and y = 1-x. Here, you are considering vectors with 2 components (x, y).

Problem 9 There are M faculties and N courses. Every faculty ranks 2 courses in order of preference. A faculty can teach one course and a course can be taught by one faculty only. Find a feasible course allocation if one exists (A feasible course allocation allows a faculty to teach one of the two courses he prefers). Find a k-feasible course allocation if one exists. (A faculty is dissatisfied if he is allotted his second choice course. A k-feasible allocation is one which dissatisfies at most k faculties).

Problem 10 Consider a complete bipartite graph with weighted edges (There is an edge between any pair (u, v) if u and v belong to different partitions). The number of vertices in both partitions are the same. There exists a matching which matches all vertices in any such graph. Such a matching is called perfect matching. A perfect matching is lexicographically greater than another if the minimum weight in the matching is strictly less than that in the other, or if the minimum weights are identical but the second minimum is greater, etc….Find a lexicographically greatest matching. (Hint: Use weighted matching. You may assume a subroutine for computing a maximum weighted matching, and don’t need to present an algorithm for the same.). Analyze the complexity of your algorithm.