1.)The vulnerability of a graph is a determination that includes certain properties of the graph not to be damaged after the removal of a number of vertices or edges. One measure of vulnerability to vertex removal is neighbour-integrity.
We need to prove
-> Let G(V, E) be a connected undirected graph with |V | = n. Assume that n is even. Suppose G has two nodes s and t such that every simple path between s and t has strictly greater than n/2 edges. Then G has a node w, which is different from s and t, such that deleting w from G destroys all the paths between s and t.
proof-> Consider any breadth-first spanning tree T of G with s as the root. In T, each node v of G has a level, which is the length of (i.e., number of edges in) the shortest path from s to v. Since every path between s and t has length at least ` = (n/2) + 1, node t occurs at a level ≥ `. Consider levels 1 through n/2. The total number of nodes in levels 1 through n/2 is at most n − 2 (since nodes s and t don’t appear in any of these levels). If each of these n/2 levels has 2 or more nodes, then total number of nodes in G will exceed n. Therefore, there must be a level in the range 1 through n/2 containing just one node, say w. Clearly, if we delete w, the resulting graph has no path between s and t.
2.)
In short,
Algorithm:-
a.) Construct a breadth-first search of G, starting with node s. For each level i, construct the list L[i] of the nodes at level i.
b.) Find a level j, where 1 ≤ j ≤ n/2, such that L[j] has only one node, say w. (The above proof shows that such a level must exist.)
c.). Output node w.
The correctness of the above algorithm follows from the proof of Lemma 1. For the running time, note that Step 1 can be done in O(m + n) time since it involves just a breadth-first search of G. Steps 2 and 3 take O(n) and O(1) time respectively. So, the algorithm runs in O(m + n) time.
Have the explaination please. 4 Graph Application: Network Connectivity (Adapted from Problem 9, Chapter 3 of...
Problem 5. (12 marks) Connectivity in undirected graphs vs. directed graphs. a. (8 marks) Prove that in any connected undirected graph G- (V, E) with VI > 2, there are at least two vertices u, u є V whose removal (along with all the edges that touch them) leaves G still connected. Propose an efficient algorithm to find two such vertices. (Hint: The algorithm should be based on the proof or the proof should be based on the algorithm.) b....
please answer one of the two
1. (25) [Single-source shortest-path: algorithm tracing] Show the tracing of Dijkstra's shortest path search algorithm on the weighted directed graph shown below. Do the tracing it twice, first starting with the nodes and, second, starting with the node z. For each tracing, each time the shortest path to a new node is determined, show the graph with the shortest path to the node clearly marked and show inside the node the shortest distance to...
Problem 5. (Lexicographical Optimisation with Paths) Provide pseudocode and an expla- nation for an algorithm that computes a path between two nodes in an undirected graph such that: . The maximum weight in the path is minimised, ie., there does not exist another path with a smaller maximum weight .Amongst all such paths, it finds the path with minimum cost. . The time complexity is no worse than 0(( and V is the set of nodes. ·IvD-log(IVD), where E is...
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...
Problem 6. In lecture, we saw that an undirected graph with n nodes can have at most n(n - 1)/2 edges. Such a graph necessarily has one connected component. The greatest number of edges possible in a disconnected graph, however, is smaller. Suppose that G (V, E) is a disconnected graph with n nodes, how large can |El possibly be? You do not need to prove your answer, but you should provide some explanation of how you obtained it.
Other answer is incorrect
Problem 1. (15 points) Consider an undirected connected graph G = (V, E) with edge costs ce > 0 for e € E which are all distinct. (a) [8 points). Let E' CE be defined as the following set of edges: for each node v, E' contains the cheapest of all edges incident on v, i.e., the cheapest edge that has v as one of its endpoints. Is the graph (V, E') connected? Is it acyclic?...
Problem 1: Given a graph G (V,E) a subset U S V of nodes is called a node cover if each edge in E is adjacent to at least one node in U. Given a graph, we do not know how to find the minimum node cover in an efficient manner. But if we restriet G to be a tree, then it is possible. Give a greedy algorithm that finds the minimum node cover for a tree. Analyze its correctness...
Please show work clearly. Thanks
3. (10 points) Let G be an undirected graph with nodes vi,..Vn. The adja.- cency matriz representation for G is the nx n matrix M given by: Mij-1 if there is an edge from v, to ty. and M,',-0 otherwise. A triangle is a set fvi, vjof 3 distinct vertices so that there is an edge from v, to vj, another from v to k and a third from vk to v. Give and analyze...
3. Given a directed graph G < V E >, we define its transpose Gr < V.E1 > to be the graph such that ET-{ < v, u >:< u, v >EE). In other words, GT has the same number of edges as in G, but the directions of the edges are reversed. Draw the transpose of the following graph: ta Perform DFS on the original graph G, and write down the start and finish times for each vertex in...
1. (25) [Maximum bottleneck rate spanning treel] Textbook Exercise 19 in Chapter 4. Given a connected graph, the problem is to find a spanning tree in which every pair of nodes has a maximum bottleneck rate path between the pair. (Note that the bottleneck rate of a path is defined as the minimum bandwidth of any edge on the path.) First give the algorithm (a sketch of the idea would be sufficient), and then prove the optimality of the algorithm....