Solution :
(a) by definition, B1(G) = maximum cardinality of a subgraph of G where distance between every vertex is atleast 1
= |G|
(b) in Bi(Pn) the subgraph consists of each vertex i distance apart starting from the first.
Thus Bi(Pn) = [n/I] where [.] denotes the box function.
Problem 8. (2+4+4 points each) A bipartite graph G = (V. E) is a graph whose vertices can be partitioned into two (disjoint) sets V1 and V2, such that every edge joins a vertex in V1 with a vertex in V2. This means no edges are within V1 or V2 (or symbolically: Vu, v E V1. {u, u} &E and Vu, v E V2.{u,v} &E). 8(a) Show that the complete graph K, is a bipartite graph. 8(b) Prove that no...
Input a simple undirected weighted graph G with non-negative edge weights (represented by w), and a source node v of G. Output: TDB. D: a vector indexed by the vertices of G. Q: priority queue containing the vertices of G using D[] as key D[v]=0; for (all vertex ut-v) [D[u]-infinity:) while not Q. empty() 11 Q is not empty fu - Q.removein(); // retrieve a vertex of Q with min D value for (all vertex : adjacent to u such...
Let G = (V;E) be an undirected and unweighted graph. Let S be a subset of the vertices. The graph induced on S, denoted G[S] is a graph that has vertex set S and an edge between two vertices u, v that is an element of S provided that {u,v} is an edge of G. A subset K of V is called a killer set of G if the deletion of K kills all the edges of G, that is...
2. Let G be an undirected graph. For every u,vE V(G), let dc(u,v) be the length of the shoertest path from u to v. The diameter of G is he maximum distance bet In other words: max (de(u, v) u,vEV(G) the running time of your algorithm 2. Let G be an undirected graph. For every u,vE V(G), let dc(u,v) be the length of the shoertest path from u to v. The diameter of G is he maximum distance bet In...
Let G be a non-Hamiltonian, connected graph. For every pair of nonadjacent vertices u and v, 8(u) +8()2 k, for some k> O. Show that G contains a path of length k. Let G be a non-Hamiltonian, connected graph. For every pair of nonadjacent vertices u and v, 8(u) +8()2 k, for some k> O. Show that G contains a path of length k.
Let G = (V, E, w) be a connected weighted undirected graph. Given a vertex s ∈ V and a shortest path tree Ts with respect to the source s, design a linear time algorithm for checking whether the shortest path tree Ts is correct or not.(C pseudo)
Let Q:= {1,2,...,q}. Let G be a graph with the elements of Q^n as vertices and an edge between (a1,a2,...,an) and (b1,b2,...bn) if and only if ai is not equal to bi for exactly one value of i. Show that G is Hamiltonian.
need help with a and b in this graph theory question Let n >k> 1 with n even and k odd. Make a k-regular graph G by putting n vertices in a circle and connecting each vertex to the exact a) Show that for all u,v there are k internally disjoint u, v-paths (you (b) Use the previous part, even if you did not prove it, to show that the e vertex and the k 1 closest vertices on either...
Problem #1 Let a "path" on a weighted graph G = (V,E,W) be defined as a sequence of distinct vertices V-(vi,v2, ,%)-V connected by a sequence of edges {(vi, t), (Ug, ta), , (4-1,Un)) : We say that (V, E) is a path from tovn. Sketch a graph with 10 vertices and a path consisting of 5 vertices and four edges. Formulate a binary integer program that could be used to find the path of least total weight from one...
Problem 1: Dynamic Programming in DAG Let G(V,E), |V| = n, be a directed acyclic graph presented in adjacency list representation, where the vertices are labelled with numbers in the set {1, . . . , n}, and where (i, j) is and edge inplies i < j. Suppose also that each vertex has a positive value vi, 1 ≤ i ≤ n. Define the value of a path as the sum of the values of the vertices belonging to...