1) Professor Sabatier conjectures the following converse of Theorem 23.1. Let G=(V,E) be a connected, undirected graph with a real-valued weight function w defined on E. Let A be a subset of E that is included in some minimum spanning tree for G, let (S,V−S) be any cut of G that respects A, and let (u,v) be a safe edge for A crossing (S,V−S). Then, (u,v) is a light edge for the cut. Show that the professor's conjecture is incorrect...
Consider a directed acyclic graph G = (V, E) without edge lengths and a start vertex s E V. (Recall, the length of a path in an graph without edge lengths is given by the number of edges on that path). Someone claims that the following greedy algorithm will always find longest path in the graph G starting from s. path = [8] Ucurrent = s topologically sort the vertices V of G. forall v EV in topological order do...
1. Say that we are given a maximum flow in the network. Then the capacity of one of the edges e is increased by 1. Give an algorithm that checks if the maximum flow has increased 2. When we increase the capacity of some edge by 5 can it be that the flow does not increase at all? 3. When we increase the capacity of an edge by 5, can the flow grow by 7? Please write time complexity for...
Problem 9 Consider the directed network on vertices V s, 1,2,3, 4,5,t) given by the following list. An element of this list has the forn (í,j,c) where (i,j) is an are of the network, and c is the capacity of are (i.j) (3, 4,2), (3,,15), (3, 5,11), (3, t, 12, (4,5,9), (4, t, 15), (5,t,7) ·What is the maximuln 8 → t flow in this network? (You may use AMPL to compute this.) What is a minimum cut? EXTRA CREDIT;...
Problem 10. (10 marks) Let G- (V, E) be a directed graph with source s E V, sink t e V, and non- negative edge capacities ce. Give a polynomial time algorithm to decide whether G has a unique minimum s-t cut (i.e. an s -tof capacity strictly less than that of all other s-t cuts).
Problem 6 (20 points). Let G- (V,E) be a directed Let E' be another set of edges on V with edge length '(e) >0 for any e EE. Let s,t EV. Design an algorithm runs in O(lV+ E) time to find an edge e'e E' whose addition to G will result in the maximum decrease of the distance from s to t. Explain why your algorithms runs in O(V2+E') time. graph with edge length l(e) >0 for any e E...
10 points) Use the Max Flow algorithm to find the maximum flow through the network shown below and also give a minimum cut to verify that is the correct value. A (4,0) B (5,0) (3,0) (5,0) (4,0) E S (13,0) (6.0) D (4,0) (6,0) (3,0) (14,0) (6.0) (12,0) (2,0) с (3,0) (5,0) F
Say that we have an undirected graph G(V, E) and a pair of vertices s, t and a vertex v that we call a a desired middle vertex . We wish to find out if there exists a simple path (every vertex appears at most once) from s to t that goes via v. Create a flow network by making v a source. Add a new vertex Z as a sink. Join s, t with two directed edges of capacity...
Definition: Given a Graph \(\mathrm{G}=(\mathrm{V}, \mathrm{E})\), define the complement graph of \(\mathrm{G}, \overline{\boldsymbol{G}}\), to be \(\bar{G}=(\mathrm{V}, E)\) where \(E\) is the complement set of edges. That is \((\mathrm{v}, \mathrm{w})\) is in \(E\) if and only if \((\mathrm{v}, \mathrm{w}) \notin \mathrm{E}\) Theorem: Given \(\mathrm{G}\), the complement graph of \(\mathrm{G}, \bar{G}\) can be constructed in polynomial time. Proof: To construct \(G\), construct a copy of \(\mathrm{V}\) (linear time) and then construct \(E\) by a) constructing all possible edges of between vertices in...
Q R S T U A B C D E F G H 4 Problem C (26 points): 5 Statue Company is able to produce two products, a Fancy Statue and a Plain 6 Statue with the same machine in its factory. NOTE that only ONE Statue can be 7 manufactured at a time using this machine. The Company currently makes both 8 statues, but management is concerned that this strategy is not providing 9 maximum benefit. They are thinking...