Math 184A Homework 8: Graph Theory Problems - Prof. Glenn Tesler, Assignments of Mathematics

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

Pre 2010

Uploaded on 03/28/2010

koofers-user-1lc
koofers-user-1lc 🇺🇸

10 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
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:
For all homework and test problems, unless otherwise noted, use these rules:
Awalk allows reusing edges and vertices. (It doesn’t require it, it just allows it.)
Inatrail, edges may not be reused but there are no restrictions on reusing vertices.
In a path, vertices and edges may not be reused beyond the minimum amount required for
vertices: the second vertex of one edge is the first vertex of the next edge, and if it’s a closed
path, the first and last vertices are the same.
Although the book’s definition of “walk” on p. 185 says “distinct edges,” it’s not the standard
definition and the book actually allows reusing edges later on. The errata page on the book’s
website fixes this.
Chapter 10# 10: The book’s solution is not correct, so ignore it.
Chapter 10# 22: The length of a path or walk e1,e
2
,...,e
kis the number of edges in the sequence,
k. If you specify it using vertices, there will be k+ 1 vertices but the length is still k. E.g., a path
of length 2 from vertex ato bmay be given as a sequence of two edges {a, c},{c, b}or as a sequence
of three vertices a, c, b.
Longest path means the length is the largest possible length among all paths in the graph. If
there are two or more longest paths, they are in a tie for the longest length.
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 kedges?
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 Cbe the set of courses at UCSD and Sbe the set of students. Let V=CS
and let {s, c}∈Eif and only if student sis enrolled in course c.
(a) Prove that G=(V, E) is a simple graph.
(b) Prove that every cycle of Ghas 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 sis 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.)
pf2

Partial preview of the text

Download Math 184A Homework 8: Graph Theory Problems - Prof. Glenn Tesler and more Assignments Mathematics in PDF only on Docsity!

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:

  • For all homework and test problems, unless otherwise noted, use these rules:
    • A walk allows reusing edges and vertices. (It doesn’t require it, it just allows it.)
    • In a trail , edges may not be reused but there are no restrictions on reusing vertices.
    • In a path, vertices and edges may not be reused beyond the minimum amount required for vertices: the second vertex of one edge is the first vertex of the next edge, and if it’s a closed path, the first and last vertices are the same. Although the book’s definition of “walk” on p. 185 says “distinct edges,” it’s not the standard definition and the book actually allows reusing edges later on. The errata page on the book’s website fixes this.
  • Chapter 10# 10: The book’s solution is not correct, so ignore it.
  • Chapter 10# 22: The length of a path or walk e 1 , e 2 ,... , ek is the number of edges in the sequence, k. If you specify it using vertices, there will be k + 1 vertices but the length is still k. E.g., a path of length 2 from vertex a to b may be given as a sequence of two edges {a, c} , {c, b} or as a sequence of three vertices a, c, b. Longest path means the length is the largest possible length among all paths in the graph. If there are two or more longest paths, they are in a tie for the longest length.

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.