Answer the following true or false questions with a brief justification.
A) There exists an undirected graph on 6 vertices whose degrees are 4, 5, 8, 9, 3, 6.
B) Every undirected graph with n vertices and n − 1 edges is a tree.
C) Let G be an undirected graph. Suppose u and v are the only vertices of odd degree in G. Then G contains a u-v path.
ans(a)true,Degree of vertex in undirected graph is the number of edges incident to it.
V = {1, 2, 3, 4, 5, 6}
E = {{1,2}, {1,5}, {2,5}, {3,6}}
• Edge (u, v) is incident to u and v
: For undirected graphs, every edge is stored twice. – If graph is weighted, a weight is stored with each edge.
ans (b) false,not every undirected graph is strongly connected. We know that the minimum number of edges required to make a graph of n vertices connected is (n-1) edges. We can observe that removal of one edge from the graph G will make it disconnected. Thus a connected graph of n vertices and (n-1) edges cannot have a circuit. Hence a graph G is a tree.
ans (c)true, We will prove the statement by contradiction. That is, we first assume that G is a graph with exactly two vertices of odd degree, u and v, and that there is no u, v-path in G.
By definition, G is a disconnected graph and the vertices u and v must lie in separate connected components of G. Thus the vertex u lies in H, a connected subgraph of G, and all other vertices in H (which, of course, are also vertices in G) have even degree. Therefore, the sum of the degrees of the vertices in H is an odd number.
But by the Hand-Shaking Theorem, the sum of the degrees of the vertices in H (as in any graph) must be an even number. So we have a contradiction and our assumption, that there is no u, v-path in G, must be false.
Answer the following true or false questions with a brief justification. A) There exists an undirected...
Write down true (T) or false (F) for each statement. Statements are shown below If a graph with n vertices is connected, then it must have at least n − 1 edges. If a graph with n vertices has at least n − 1 edges, then it must be connected. If a simple undirected graph with n vertices has at least n edges, then it must contain a cycle. If a graph with n vertices contain a cycle, then it...
Prove that an undirected graph is bipartite iff it contains no cycle whose length is odd (called simply an "odd cycle"). An undirected graph G = (V,E) is called "bipartite" when the vertices can be partitioned into two subsets V = V_1 u V_2 (with V_1 n V_2 = {}) such that every edge of G has one endpoint in V_1 and the other in V_2 (equivalently, no edge of G has both endpoints in V_1 or both endpoints in...
Long paths in undirected graphs In this question m is the number of edges in an undirected graph. 1. Show that if the degree of every vertex is at least k, then the graph has a simple path of length at least k. Hint: consider the longest simple path in the graph say from x to y. Show that the endpoints x and y do not have edges to vertices outside the path. Thus all the neighbors of x, y...
4. (10 points) (a) An undirected graph has 6 vertices and 13 edges. It is known three vertices have degree 3, one has degree 4, and another one has degree 7. Find the degree of the remaining vertex. (b) For each of the following graphs, determine if it is bipartite, complete, and/or a tree. Give a brief written or graphical justification for your answers (you may address multiple graphs at the same time). iii.
Let G be an undirected graph and let X be a subset of the vertices of G. A connecting tree on X is a tree composed out of the edges of G that contains all the vertices in X. One way to compute a connecting tree consists of two steps: (1) Compute a minimum spanning tree T over G. (2) Delete all the edges out of T not needed to connect vertices in X. Give an algorithm(Pseudo-code) to carry out...
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....
Graph 2 Prove the following statements using one example for each (consider n > 5). (a) A graph G is bipartite if and only if it has no odd cycles. (b) The number of edges in a bipartite graph with n vertices is at most (n2 /2). (c) Given any two vertices u and v of a graph G, every u–v walk contains a u–v path. (d) A simple graph with n vertices and k components can have at most...
6. (a) Decide if there exists a full binary tree with twelve vertices. If so, draw the tree. If not explain why not. (b) Let G be a finite simple undirected graph in which each vertex has degree at least 2. Prove that G must contain a simple circuit (c) Let G be a graph with 2 vertices of degree 1, 3 of degree 2, and 2 of degree 3. Prove that G cannot be a tree
For each section, is it TRUE or FALSE? a) Every DAG is a Directed Forest. b) Every Directed Forest is a DAG. c) In a Directed Tree, there is a path from every vertex to every other vertex. d) Suppose that you search a Directed Graph using DFS from all unvisited vertices, coloring edges red if they go between vertex v and an outgoing neighbor of v that you visit for the first time from v. Then the red edges...
Choose the true statement. There exists a graph with 7 vertices of degree 1, 2, 2, 3, 4, 4 and 5, respectively. the four other possible answers are false There exists a bipartite graph with 14 vertices and 13 edges. There exists a planar and connected graph with 5 vertices, 6 edges and 4 faces. There exists a graph with 5 vertices of degree 2, 3, 4, 5 and 6, respectively.