



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Note: There are intentionally more problems on this practice test than there will be on the actual test. All graphs are simple (that is, no edge loops from a single vertex back to itself), unless specified.
Linear Recurrence Relations
c 1 + c 2 = 3 2 c 1 + 3 c 2 = 7
and solving this system yields c 1 = 2, c 2 = 1, so the solution to this particular recurrence relation is an = 2 n+^1 + 3 n.
c 1 + c 2 = 4 4 c 1 + 4 c 2 = 0
and solving this system yields no solution, so this recurrence relation cannot be solved. A reason there is no solution is that the requirement that an = 4 an− 2 contradicts the other requirement that a 0 = 4 and a 2 = 0.
Graph Theory: Basic Terminology
(a) A complete graph with five vertices. Solution:
(b) A tree with the same number of vertices and edges. Solution: No such example exists.
(c) A graph with two cycles which share an edge in common. Solution:
(a) State the base step. Solution: Prove that if G is a graph with one vertex, then the number of edges in G is less than 1. (b) State the induction step. Solution: Assume that if G is a graph with k vertices, then the number of edges in G is less than k^2 , and prove that if G is a graph with k + 1 vertices, then the number of edges in G is less than (k + 1)^2.
You do not have to prove either part.
Solution: v 1 v 2
v 4 v 3
(b) A vertex v in a connected graph G is called a cut vertex if G − v is no longer connected. Does the graph you have constructed have any cut vertices? If so, which ones? Solution: Vertex v 4 is the only cut vertex.
Isomorphism Proofs:
Given the following pairs of graphs, determine whether they are isomorphic or not and justify your answer with a proof.
d e^ f
a b c
s (^) t u
p q (^) r
Solution: These graphs are not isomorphic.
Case 1: Suppose W does not contain the edge e. Then W is a walk from x to y in G − e. Case 2: Suppose W contains the vertices a and b consecutively in that order. Then we can replace the sequence {a, b} with the sequence {a, v 1 , v 2 ,... , vn, b} in W and this is a walk in G − e from x to y. (Note that that this is a walk but not necessarily a path, because the replacement sequence might cause us to repeat vertices which weren’t repeated before.) Case 3: Suppose W contains the vertices b and a consecutively in that order. Then we can replace the sequence {b, a} with the sequence {b, vn, vn− 1 ,... , v 1 , a} in W and this is a walk in G − e from x to y. In all three cases, we were able to find a walk from x to y in G − e. Since x and y were arbitrarily chosen, G − e is connected.
(a) Reflexive: Let u be a vertex in G. Then u and u have the same degree, because no vertex can have more than a single value for its degree. (b) Symmetric: Let u and v be vertices in G. Assume that u and v have the same degree; call it n. Then deg v = n = deg u, so v and u have the same degree. (c) Transitive: Let u, v and w be vertices in G. Assume that u and v have the same degree (call it n) and also that v and w have the same degree. Since deg v = n, and v and w have the same degree, deg w = n. Since deg u = n = deg w, u and w have the same degree.
Algorithms:
Solution: { 4 , 6 , 4 , 1 , 2 , 4 , 6 }
(a) Use Kruskal’s Algorithm to construct a minimum-weight spanning tree for W. Solution: You must choose the edges with these weights (in order): 1, 2, 3, 4, 5, 7. (b) Use Prim’s Algorithm to construct a minimum-weight spanning tree for W. Solution: The order of the edges in your answer will depend on the vertex where you started, but your final answer will contain these edges in some order: 1, 2, 3, 4, 5, 7.
use the Ford-Fulkerson algorithm to find a maximal flow. Additional copies of the network are shown below so that you can indicate the results of successive passes through the algorithm Solution: Three passes are needed. Backflow is used during the third pass along the wavy edge. The maximum flow is 6. (There are other possible solutions, each with a maximum flow of 6.)
Pass 1
Pass 2 D G
Reminder: An Euler trail in a connected graph G is a walk which contains every edge; an Euler tour contains every edge and returns to its starting point.
a (^) b c
d e^ f
Solution: Let G be the above graph. G − c is planar:
a
b
d e^ f
In order for G to be planar, vertex c cannot be placed in the face adbe, since edge c f could not be drawn without crossing an edge. Vertex c cannot be placed in face aeb f , since edge cd could not be drawn without crossing an edge. And vertex c cannot be placed in the exterior face, since ce cannot be drawn without crossing an edge. Therefore, there is no acceptable placement for vertex c.