Discrete Mathematics · free preview

Chapter 3 Problem Set. Graph Theory

Problem set for this chapter. Graph Theory.

1. How this assessment works

This lesson is a curated assessment adapted from MIT OpenCourseWare 6.042J Mathematics for Computer Science (Spring 2015) (https://ocw.mit.edu/courses/6-042j-mathematics-for-computer-science-spring-2015/), used under CC BY-NC-SA 4.0. Work through the 10 problems in order, for each problem, type your reasoning in the answer box or write it on the handwriting pad, then submit it for AI grading.

How the grading works Every problem is graded by an AI mathematics teacher that reads the official solution shipped with the course. It checks your work criterion by criterion, awards partial credit for correct steps, and returns written feedback. Equivalent mathematics and valid alternative methods are accepted, a different route to the same result can still earn full marks.

If your answer is incomplete, the feedback names exactly which steps are missing, so you can correct them and try again.

2. Problem 1, Finite digraph outdegree implies cycle

Prove that in a finite directed graph, if every node has at least one outgoing edge, then the graph has a cycle. (Hint. Consider the longest path.)

3. Problem 2, Graph properties and greedy MST

Consider the simple graph GG given in figure 1.

(a) Give the diameter of GG.

(b) Give a Hamiltonian Cycle on GG.

(c) Give a coloring on GG and show that it uses the smallest possible number of colors.

(d) Does GG have an Eulerian cycle? Justify your answer.

Now consider graph HH, which is like GG but with weighted edges, in figure 2.

(e) Give a list of edges reflecting the order in which one of the greedy algorithms presented in class (i.e., in lecture, recitation, or the course text) would choose edges when finding an MST on HH.

4. Problem 3, Student emailed exactly two others

Translate the following sentence into a predicate formula There is a student who has e-mailed exactly two other people in the class, besides possibly herself. The domain of discourse should be the set of students in the class; in addition, the only predicates that you may use are equality and E(x,y)E(x, y), meaning that ``xx has sent e-mail to yy.''

5. Problem 4, List all binary relations on {0,1}

List all the different binary relations on the set {0,1}\{0,1\}.

6. Problem 5, Classify relations as orders and equivalences

Over the domain {0,1}\{0,1\}, which of these relations are weak partial orders? strict partial orders? equivalence relations?

7. Problem 6, Topological sort of power set

Describe a topological sort of P({1,2,…,n})\mathcal{P}(\{1,2,\dots,n\}), with a brief justification that your sort is correct.

8. Problem 7, Formal schedule definitions for DAGs

We consider DAGs where each vertex represents a task to be completed. If there is a path from one vertex, vv, to another vertex, ww, then the vv task must be completed before the ww task. Assuming all tasks take unit time to complete, we showed in the Notes that the minimum time schedule to complete all the tasks is the size (number of vertices), tt, of the longest path (chain) in the DAG. Formally, a schedule for a DAG is a partition of the vertices. Each block of the partition is supposed to correspond to a set of tasks that are to be performed simultaneously. The number of processors required by a schedule is the maximum number of tasks that are scheduled to be performed simultaneously. Describe purely in terms of graph, partition, and partial order properties (no informal descriptions in terms of "jobs," "parallel processing," etc.), exactly the properties a vertex partition of a DAG must satisfy in order to represent a possible schedule for the vertex tasks; the total time required to complete a schedule; the number of processors required by a schedule.

9. Problem 8, DAG with multiple minimal schedules

Give a small example of a DAG with more than one minimum time schedule.

10. Problem 9, Minimum schedule for DAG Dn,t

Let Dn,tD_{n,t} be the DAG with nn vertices that consists of a directed path of t−1t-1 vertices ending with edges from the final, (t−1)(t-1)st, vertex on the path directly to each of the remaining n−(t−1)n-(t-1) vertices, as in the following figure. What is the minimum time schedule for Dn,tD_{n,t}? Explain why it is unique. How many processors does it require?

11. Problem 10, Graph diameter and chromatic number

The distance between two vertices in a graph is the length of the shortest path between them. For example, the distance between two vertices in a graph of airline connections is the minimum number of flights required to travel between two cities. The diameter of a graph is the distance between the two vertices that are farthest apart.

(a) What is the diameter of the following graph? Briefly explain your answer.

[Graph with vertices A, B, C, D, E, F, G, H arranged as. B D E on top, A and H at the sides, and C, F, G across the middle.]

(b) What is the chromatic number of this graph? Prove it.

(c) Suppose every vertex in a graph is within distance nn of a vertex, vv. Prove that the diameter of the graph is at most 2n2n.

Practice this interactively

Free account · instant grading · spaced review that schedules itself.

Start this course for free