Homework 1
Due: Tuesday October 3 at the beginning of class (10am).
Reading: Chapters 1 and 2 (skip Prufer codes pages 10-12)
Problems:
- Prove the following by induction.
If the degree of every vertex in a graph G is at least 2,
then G contains a cycle.
- For which values of n do there exist graphs with n
vertices for which both G and
G
are connected?
- Let a to b be two distinct vertices.
Prove formally that if there is a walk from a to b in G,
then there is a path from a to b in G.
- Show that there is no with exactly one leaf (vertex of degree 1).
- Show that a graph with n vertices and e edges
always has a vertex of degree at least
&lceil 2e/n &rceil .
- Show that G is a tree if and only if G is connected
but removing any edge from G disconnects it.
- Show that G is a tree if and only if G is acyclic
but adding any edge to G introduces a cycle.
- Suppose that G has a subset of vertices S such
that G\S has |S| + 1 connected components. Show that G
is not Hamiltonian.
The CMPE277 Web:
Copyright 2006; Department of Computer Engineering,
University of California, Santa Cruz.
Comments to:
martine@cse.ucsc.edu