

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The instructions and problems for homework 8 of math 184a, fall 2009, focusing on graph theory. Information on walks, trails, paths, longest paths, simple graphs, degree sequences, and bipartite graphs. Students are required to solve problems related to finding the number of simple graphs, determining existence of graphs based on degree sequences, and identifying eulerian trails, hamiltonian paths, and spanning trees.
Typology: Assignments
1 / 2
This page cannot be seen from the preview
Don't miss anything!


Math 184A, Fall 2009, Prof. Tesler Homework #8, Due Thursday November 19, 2009
Chapter 9# 1, 12, 23, 29 Chapter 10# 10∗, 22∗, 29 and the problems below: H-26 through H-30. Be sure to read the second page as well. ∗Notes:
Problem H-26.
(a) How many simple graphs are there on vertex set [n]? (b) How many simple graphs on vertex set [n] have exactly k edges?
Problem H-27. In each part below, information about a graph is given. Decide if a graph, without loops, exists that satisfies the specified conditions or not. Justify your answers.
(a) A simple graph with degree sequence (1, 1 , 2 , 3 , 3 , 5) (that is, six vertices, where two vertices have degree 1, one has degree 2, two have degree 3, and one has degree 5). (b) A multigraph with degree sequence (1, 2 , 2 , 3 , 3 , 5). (c) A simple graph with degree sequence (1, 2 , 2 , 3 , 3 , 5). (d) A simple graph with degree sequence (3, 3 , 3 , 3). (e) A tree with six vertices and six edges. (f) A tree with three or more vertices, where two vertices have degree 1 and the rest have degrees ≥ 3. (g) A disconnected simple graph with 10 vertices, 8 edges, and a cycle.
Problem H-28. In (a–b), let C be the set of courses at UCSD and S be the set of students. Let V = C ∪S and let {s, c} ∈ E if and only if student s is enrolled in course c.
(a) Prove that G = (V, E) is a simple graph. (b) Prove that every cycle of G has an even number of edges. (c) S = {Alice, Bob, Cindy, Dan, Emily} is a set of students. C = {Math 20A, Math 20B, Math 20C, Math 20D, Math 20E, Math 20F} is a set of classes. A graph is formed in which {s, c} is an edge iff student s is enrolled in class c. In a given quarter, a student can only be enrolled in at most one of Math 20A,B,C,D because each is a prerequisite for the next one. However, a student who has already passed Math 20C can take Math 20D,E,F in any order, and can even take two or three of them simultaneously. (Although not recommended, it’s not forbidden.)
(i) Suppose Alice is in Math 20A, Bob is in Math 20B, Cindy is in Math 20C, and Dan is in Math 20D and Math 20F. Emily is not taking math this quarter. Draw the graph representing this.
(ii) Suppose Alice and Bob are currently in Math 20A, and we know that Cindy and Dan are currently in Math 20D but do not know whether or not they are in the other classes. We also know that Emily has passed Math 20C but do not know her current classes. What are the minimum and maximum number of edges possible in the graph based on the given rules and partial enrollment information? Draw the graph with definite enrollments shown by solid edges and possible enrollments (which we don’t know either way) shown by dotted edges.
Problem H-29. A graph G = (V, E) is bipartite if V can be partitioned V = A ∪ B (with A ∩ B = ∅) and every edge has one endpoint in A and the other in B. The graphs in H-28 are examples of this.
(a) Determine the formula for the number of simple bipartite graphs on two given sets of vertices, A and B, with sizes |A| = n and |B| = m. (b) For the same setup as (a), determine the formula for the number of simple bipartite graphs with exactly k edges.
Problem H-30. Consider the graph shown:
(a) An Eulerian trail is a trail that uses every edge of the graph exactly once. It’s an Eulerian cycle if it starts and ends at the same vertex. Give an example of an Eulerian trail in this graph (starting/ending at different vertices), and also an example of an Eulerian cycle. (b) A Hamiltonian path is a path that uses every vertex of the graph exactly once. A Hamiltonian cycle is similar except that it starts and ends at the same vertex (but aside from that, the vertices aren’t reused). Give an example of a Hamiltonian path in this graph (starting/ending at different vertices), and also an example of a Hamiltonian cycle. (c) A spanning tree of G is a subgraph of G that uses all the vertices of G, a subset of the edges, and is a tree. Give an example of a spanning tree in this graph. (d) First, give an example of a path of length 4 in the graph from vertex 1 to vertex 2. Second, give an example of a walk of length 4 from vertex 1 to vertex 2, such that it’s a walk but is not a path. Recall that the length of a path or walk is the number of edges in the sequence of edges.