Data Structures & Alogs HW_Part_18

Data Structures & Alogs HW_Part_18 - 11 Graphs 11.1...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
11 Graphs 11.1 Base Case : A graph with 1 vertex has 1(1 1) / 2=0 edges. Thus, the theorem holds in the base case. Induction Hypothesis : A graph with n vertices has at most n ( n 1) / 2 edges. Induction Step : Add a new vertex to a graph of n vertices. The most edges that can be added is n , by connecting the new vertex to each of the old ver- tices, with the maximum number of edges occurring in the complete graph. Thus, E ( n +1) E ( n )+ n n ( n 1) / 2+ n =( n 2 + n ) / 2= n ( n / 2 . By the principle of Mathematical Induction, the theorem is correct. 11.2 (a) For a graph of n vertices to be connected, clearly at least | V |− 1 edges are required since each edge serves to add one more vertex to the con- nected component. No cycles means that no additional edges are given, yielding exactly | V 1 edges. (b) Proof by contradiction. If the graph is not connected, then by de f nition there are at least two components. At least one of these components has i vertices with i or more edges (by the pigeonhole principle). Given i 1 edges to connect the component, the i th edge must then directly connect two of the vertices already connected through the other edges. The result is a cycle. Thus, to avoid a cycle, the graph must be connected.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This document was uploaded on 10/31/2011 for the course BCN 3431 at University of Florida.

Page1 / 4

Data Structures & Alogs HW_Part_18 - 11 Graphs 11.1...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online