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 given in figure 1.
(a) Give the diameter of .
(b) Give a Hamiltonian Cycle on .
(c) Give a coloring on and show that it uses the smallest possible number of colors.
(d) Does have an Eulerian cycle? Justify your answer.
Now consider graph , which is like 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 .
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 , meaning that `` has sent e-mail to .''
5. Problem 4, List all binary relations on {0,1}
List all the different binary relations on the set .
6. Problem 5, Classify relations as orders and equivalences
Over the domain , 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 , 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, , to another vertex, , then the task must be completed before the 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), , 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 be the DAG with vertices that consists of a directed path of vertices ending with edges from the final, st, vertex on the path directly to each of the remaining vertices, as in the following figure. What is the minimum time schedule for ? 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 of a vertex, . Prove that the diameter of the graph is at most .
Practice this interactively
Free account · instant grading · spaced review that schedules itself.
Start this course for free