Professional Documents
Culture Documents
The city of Knigsberg in Prussia was set on both sides of the Pregel River, and included two large islands which were connected to each other and the mainland by seven bridges. Leonard Euler posed the following problem: can we find a walk through the city that crosses each bridge once and only once, and begins and ends at the same point? Rules: The islands cannot be reached by any route other than the bridges, and every bridge must have been crossed completely every time (one cannot walk halfway onto the bridge and then turn around to come at it from another side).
Source: Wikipedia
7 October 2008
b7
7 October 2008
Leonard Euler presented a solution to the St. Petersburg Academy on August 26, 1735
Solutio problematis ad geometriam situs pertinentis (The solution of a problem relating to the geometry of position), Commentarii academiae scientiarum Petropolitanae, 1741.
7 October 2008
Abstract representation
C b1 b2 A b5 b4 D b7 b3 1. Only land masses and the bridges connecting them matter! 2. Shapes of land masses and lengths of bridges are not relevant. Relative distances between land masses also not relevant. 3. Topological connectivity is the only relevant aspect for solving the problem. 4. The structure shown alongside makes only the relevant factors of the problem explicit.
B b6
7 October 2008
Eulers insight
When one enters a land mass (that is not the start or the end of the tour) by a bridge, one leaves it by a bridge. If each bridge is to be traversed exactly once, then each land mass that is not the start or the end, needs to have an even number of bridges touching it. Land mass A has five bridges touching it, land masses B, C and D each have three bridges touching them. So a tour that starts and ends on any of these land masses and which crosses each bridge exactly once is not possible.
7 October 2008
C b1 b2 A b5 b4 D b7 b3
Land masses are vertices. Bridges are edges. The problem is represented as an undirected multi-graph. The degree of a vertex is the number of edges on it.
B b6
Eulers insight: An Eulerian tour in a connected graph is possible only if all vertexes in it have even degree.
7
7 October 2008
Some definitions
E={{A,B},{A,D},{B,C},{B,E}, {C,D},{C,E},{E,F}}
E F
Subgraphs
Deleting some vertices or edges from a graph leaves a subgraph. Formally, G=(V,E) is a subgraph of G = (V,E) if
7 October 2008
A 1994 University of Chicago entitled The Social Organization of Sexuality found that on average men have 74% more opposite-gender partners than women.
7 October 2008
10
Men
7 October 2008
Women
(c) Devika Subramanian, 2008 11
Analysis
Every edge in this graph connects an M vertex to a W vertex. So the sum of the degrees of the M vertices must equal the sum of the degrees of the W vertices.
deg(X) =
xM yinW
deg(y)
7 October 2008
12
Analysis contd.
xM deg(x)
|M |
1 . = |W |
yW deg(y)
|W |
1 |M |
7 October 2008
13
Analysis contd.
Census Bureau reports |W|/|M| is about 1.035. Therefore, on average men have 3.5% more opposite-gender partners. The University of Chicago study has problematic data. The average number of opposite-gender partners is completely determined by |W|/|M|.
7 October 2008
14
Graph variations
Multigraph: more than one edge between a pair of vertices. Directed graph: edges have direction.
the edges of a directed graph are ordered pairs of vertices. indegree of a vertex is the number of edges directed into a vertex. outdegree of a vertex is the number of edges directed out of a vertex.
(c) Devika Subramanian, 2008 15
7 October 2008
Social networks: nodes are people, edges represent the is-friends-with relation.
Terrorist networks: nodes are terrorist groups/individuals, edges are participatedin-an-incident-with Conflict networks: nodes are countries, edges are cooperate-with or conflict-with
(c) Devika Subramanian, 2008 16
7 October 2008
7 October 2008
17
Very detailed information on incidents (e.g. weapons used, fatalities, etc) and some information on the groups.
18
Pre-Bali network
Palestine groups Kashmir groups Columbia
19
Al Qaeda
20
More problems
The web: each vertex is a page, directed edges between vertices represent hyperlinks
Modeling the spread of infection in a community: vertices are people, and edges represent contact between them. Routing messages on the Internet: vertices are end hosts and routers, edges denote vertices that are directly linked.
7 October 2008
(c) Devika Subramanian, 2008 21