Exam 10: Graphs and Trees

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

Draw a directed graph with the following adjacency matrix: Draw a directed graph with the following adjacency matrix:

Free
(Essay)
4.7/5
(39)
Correct Answer:
Verified

 Consider the following weighted graph: \text { Consider the following weighted graph: } \text { Consider the following weighted graph: }      (a) Use Kruskal's algorithm to find a minimum spanning tree for the graph, and indicate the order in which edges are added to form the tree. (b) Use Prim's algorithm starting with vertex a to find a minimum spanning tree for the graph, and indicate the order in which edges are added to form the tree. (c) Use Dijkstra's algorithm to find the shortest path from a to (a) Use Kruskal's algorithm to find a minimum spanning tree for the graph, and indicate the order in which edges are added to form the tree. (b) Use Prim's algorithm starting with vertex a to find a minimum spanning tree for the graph, and indicate the order in which edges are added to form the tree. (c) Use Dijkstra's algorithm to find the shortest path from a to

Free
(Essay)
4.8/5
(32)
Correct Answer:
Verified

a. Order of adding the edges: {c,d},{d,f},{b,c},{b,e},{f,g},{a,e},{a,g}\{ c , d \} , \{ d , f \} , \{ b , c \} , \{ b , e \} , \{ f , g \} , \{ a , e \} , \{ a , g \} or {c,d},{d,f},{b,c},{f,g},{b,e},{a,e},{a,g}\{ c , d \} , \{ d , f \} , \{ b , c \} , \{ f , g \} , \{ b , e \} , \{ a , e \} , \{ a , g \}
b. Order of adding the edges: {a,e},{b,e},{b,c},{c,d},{d,f},{f,g}\{ a , e \} , \{ b , e \} , \{ b , c \} , \{ c , d \} , \{ d , f \} , \{ f , g \}
c. Dijkstra's algorithm shows that the shortest path from aa to dd has length 15 . Because D(d)=c,D(c)=eD ( d ) = c , D ( c ) = e , and D(e)=aD ( e ) = a , we can work backward to find that the path is a,e,c,da , e , c , d .  a. Order of adding the edges:  \{ c , d \} , \{ d , f \} , \{ b , c \} , \{ b , e \} , \{ f , g \} , \{ a , e \} , \{ a , g \}  or  \{ c , d \} , \{ d , f \} , \{ b , c \} , \{ f , g \} , \{ b , e \} , \{ a , e \} , \{ a , g \}  b. Order of adding the edges:  \{ a , e \} , \{ b , e \} , \{ b , c \} , \{ c , d \} , \{ d , f \} , \{ f , g \}  c. Dijkstra's algorithm shows that the shortest path from  a  to  d  has length 15 . Because  D ( d ) = c , D ( c ) = e , and  D ( e ) = a , we can work backward to find that the path is  a , e , c , d .

Determine whether each of the following graphs has an Euler circuit. If it does have an Euler circuit, find such a circuit. If it does not have an Euler circuit, explain why you can be 100% sure that it does not. Determine whether each of the following graphs has an Euler circuit. If it does have an Euler circuit, find such a circuit. If it does not have an Euler circuit, explain why you can be 100% sure that it does not.

Free
(Essay)
4.8/5
(44)
Correct Answer:
Verified

G1G _ { 1 } (the left-hand graph) does not have an Euler circuit because it has a vertex of odd degree. In fact both vertices gg and ee have odd degree.
G2G _ { 2 } (the right-hand graph) does not have an Euler circuit because it has a vertex of odd degree. In fact both vertices bb and ll have odd degree.

Find the following matrix product: [200132][130242]\left[ \begin{array} { l l } 2 & 0 \\0 & 1 \\3 & 2\end{array} \right] \left[ \begin{array} { l l l } 1 & 3 & 0 \\2 & 4 & 2\end{array} \right]

(Essay)
4.7/5
(35)

Determine whether each of the following graphs has a Hamiltonian circuit. If it does have an Hamiltonian circuit, find such a circuit. If it does not have an Hamiltonian circuit, explain why you can be 100% sure that it does not. Determine whether each of the following graphs has a Hamiltonian circuit. If it does have an Hamiltonian circuit, find such a circuit. If it does not have an Hamiltonian circuit, explain why you can be 100% sure that it does not.

(Essay)
4.7/5
(36)

a. Prove that having n vertices, where n is a positive integer, is an invariant for graph isomorphism. b. Prove that having a vertex of degree 3 is an invariant for graph isomorphism.

(Essay)
4.9/5
(28)

A certain connected graph has 68 vertices and 72 edges. Does it have a circuit? Explain.

(Essay)
4.8/5
(34)

Consider the adjacency matrix for a graph that is shown below. Answer the following questions by examining the matrix and its powers only, not by drawing the graph. Show your work in a way that makes your reasoning clear.  Consider the adjacency matrix for a graph that is shown below. Answer the following questions by examining the matrix and its powers only, not by drawing the graph. Show your work in a way that makes your reasoning clear.     (a) How many walks of length 2 are there from  v _ { 1 }  to  v _ { 2 }  ? (b) How many walks of length 2 are there from  v _ { 1 }  to  v _ { 3 }  ? (c) How many walks of length 2 are there from  v _ { 2 }  to  v _ { 2 }  ? (a) How many walks of length 2 are there from v1v _ { 1 } to v2v _ { 2 } ? (b) How many walks of length 2 are there from v1v _ { 1 } to v3v _ { 3 } ? (c) How many walks of length 2 are there from v2v _ { 2 } to v2v _ { 2 } ?

(Essay)
4.7/5
(31)

Either draw a graph with the given specification or explain why no such graph exists. (a) full binary tree with 16 vertices of which 6 are internal vertices (b) binary tree, height 3, 9 vertices (c) binary tree, height 4, 18 terminal vertices

(Essay)
4.8/5
(38)

A certain graph has 19 vertices, 16 edges, and no circuits. Is it connected? Explain.

(Essay)
4.8/5
(28)

For each of (a)-(c) below, either draw a graph with the specified properties or else explain why no such graph exists. (a) Graph with six vertices of degrees 1, 1, 2, 2, 2, and 3. (b) Graph with four vertices of degrees 1, 2, 2, and 5. (c) Simple graph with four vertices of degrees 1, 1, 1, and 5.

(Essay)
4.8/5
(35)

Determine whether any two of G1,G2G _ { 1 } , G _ { 2 } , and G3G _ { 3 } are isomorphic. If they are, give vertex and edge functions that define the isomorphism. If they are not, give an isomorphic invariant that they do not share.  Determine whether any two of  G _ { 1 } , G _ { 2 } , and  G _ { 3 }  are isomorphic. If they are, give vertex and edge functions that define the isomorphism. If they are not, give an isomorphic invariant that they do not share.

(Essay)
4.7/5
(38)

If a graph has vertices of degrees 1, 1, 2, 3, and 3, how many edges does it have? Why?

(Essay)
4.7/5
(33)

Determine whether any two of the simple graphs G1,G2G _ { 1 } , G _ { 2 } , and G3G _ { 3 } are isomorphic. If they are, give a vertex function that defines the isomorphism. If they are not, give an isomorphic invariant that they do not share.  Determine whether any two of the simple graphs  G _ { 1 } , G _ { 2 } , and  G _ { 3 }  are isomorphic. If they are, give a vertex function that defines the isomorphism. If they are not, give an isomorphic invariant that they do not share.

(Essay)
5.0/5
(23)
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)