Homework 2
Due: Thursday October 12 at the beginning of class (10am).
Reading: Chapters 3 and 4
Problems:
- Prove that
a tree with at least 3 vertices always has a vertex v of
degree at least two such that all but possibly one of v's neighbors are leaves.
- Show that a disconnected graph with n vertices can have at most
(n-1)(n-2)/2 edges.
- Determine whether the two graphs below are Hamiltonian. That is, either
find a Hamiltonian Cycle or prove one cannot exist.
             
- Prove that if D is a directed graph whose vertices all have din(v) at least k > 0,
then there is a directed cycle of length at least k+1.
- Prove that if D is a directed graph such that each vertex v
has din(v) >= n/2 and dout(v) >= n/2,
then D is Hamiltonian.
(Hint: The previous problem is useful.
Consider the longest directed cycle, C, and the longest directed
path formed among those vertices not in C. Show that you can make C larger.)
Solutions
The CMPE277 Web:
Copyright 2006; Department of Computer Engineering,
University of California, Santa Cruz.
Comments to:
martine@cse.ucsc.edu