18.04.2013 Views

The.Algorithm.Design.Manual.Springer-Verlag.1998

The.Algorithm.Design.Manual.Springer-Verlag.1998

The.Algorithm.Design.Manual.Springer-Verlag.1998

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Lecture 14 - data structures for graphs<br />

must go.<br />

Listen To Part 15-1<br />

Graphs<br />

A graph G consists of a set of vertices V together with a set E of vertex pairs or edges.<br />

Graphs are important because any binary relation is a graph, so graphs can be used to represent<br />

essentially any relationship.<br />

Example: A network of roads, with cities as vertices and roads between cities as edges.<br />

Example: An electronic circuit, with junctions as vertices as components as edges.<br />

To understand many problems, we must think of them in terms of graphs!<br />

Listen To Part 15-2<br />

<strong>The</strong> Friendship Graph<br />

Consider a graph where the vertices are people, and there is an edge between two people if and only if<br />

they are friends.<br />

file:///E|/LEC/LECTUR16/NODE14.HTM (4 of 12) [19/1/2003 1:35:05]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!