Mathematical Ideas that Shaped the World

Slides:



Advertisements
Similar presentations
The Chinese Postman Problem Route Planning Map Colouring
Advertisements

Discrete Mathematics 6. GRAPHS Lecture 10 Dr.-Ing. Erwin Sitompul
22C:19 Discrete Math Graphs Fall 2010 Sukumar Ghosh.
Introduction to Graph Theory Instructor: Dr. Chaudhary Department of Computer Science Millersville University Reading Assignment Chapter 1.
22C:19 Discrete Math Graphs Fall 2014 Sukumar Ghosh.
The 7 Bridges of Konigsberg A puzzle in need of solving.
Chapter 7 Graph Theory 7.1 Modeling with graphs and finding Euler circuits. Learning Objectives: Know how to use graphs as models and how to determine.
Lecture 21 Paths and Circuits CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
Section 14.1 Intro to Graph Theory. Beginnings of Graph Theory Euler’s Konigsberg Bridge Problem (18 th c.)  Can one walk through town and cross all.
13.4 Map Coloring and the Four Color Theorem. We started this chapter by coloring the regions formed by a set of circles in the plane. But when do we.
AMDM UNIT 7: Networks and Graphs
BY: MIKE BASHAM, Math in Scheduling. The Bridges of Konigsberg.
9.2 The Traveling Salesman Problem. Let us return to the question of finding a cheapest possible cycle through all the given towns: We have n towns (points)
Koenigsberg bridge problem It is the Pregel River divided Koenigsberg into four distinct sections. Seven bridges connected the four portions of Koenigsberg.
Graph Theory. What is Graph Theory? This is the study of structures called ‘graphs’. These graphs are simply a collection of points called ‘vertices’
Easy, Hard, and Impossible. Easy Tic Tac Toe Hard.
One Hull of A Rain Forest Green Computing Computer Science Neil Gordon January
IEOR266 © Classification of MCNF problems.
Introduction to Networks HON207. Graph Theory In mathematics and computer science, graph theory is the study of graphs, mathematical structures used to.
How is this going to make us 100K Applications of Graph Theory.
Graphs. Graph A “graph” is a collection of “nodes” that are connected to each other Graph Theory: This novel way of solving problems was invented by a.
Euler and Hamilton Paths
22C:19 Discrete Math Graphs Spring 2014 Sukumar Ghosh.
Graphs and Euler cycles Let Maths take you Further…
Graph Theory and Graph Coloring Lindsay Mullen
Euler Paths and Circuits. The original problem A resident of Konigsberg wrote to Leonard Euler saying that a popular pastime for couples was to try.
The Bridge Obsession Problem By Vamshi Krishna Vedam.
Copyright © Cengage Learning. All rights reserved.
Take a Tour with Euler Elementary Graph Theory – Euler Circuits and Hamiltonian Circuits Amro Mosaad – Middlesex County Academy.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
NP-Complete Problems CSC 331: Algorithm Analysis NP-Complete Problems.
Programming for Geographical Information Analysis: Advanced Skills Online mini-lecture: Introduction to Networks Dr Andy Evans.
EECS 203: It’s the end of the class and I feel fine. Graphs.
1 Starter of the day 23 x 27 = x 47 = x 87 = x 55 = x 58 = ???? 54 x 56 = ???? Can you spot the trick for this group of.
© Nuffield Foundation 2011 Nuffield Free-Standing Mathematics Activity Chinese postman problems What route can I take to avoid going along the same street.
Euler and Hamilton Paths
Structures 7 Decision Maths: Graph Theory, Networks and Algorithms.
Easy, Hard, and Impossible Elaine Rich. Easy Tic Tac Toe.
CSE 326: Data Structures NP Completeness Ben Lerner Summer 2007.
CS 200 Algorithms and Data Structures
Erdal Kose CC30.10 These slides are based of Prof. N. Yanofsky Lecture notes.
Konigsburg Bridge Problem The Konigsberg Bridge problem is a famous mathematical problem studied by many students in geometry.
Discrete Mathematical Structures: Theory and Applications
EXCURSIONS IN MODERN MATHEMATICS SIXTH EDITION Peter Tannenbaum 1.
CIRCUITS, PATHS, AND SCHEDULES Euler and Königsberg.
Associated Matrices of Vertex Edge Graphs Euler Paths and Circuits Block Days April 30, May 1 and May
Euler Paths and Circuits. The original problem A resident of Konigsberg wrote to Leonard Euler saying that a popular pastime for couples was to try.
The Seven Bridges of Konigsberg (circa 1735) In Konigsberg, Germany, a river ran through the city such that in its centre was an island, and after passing.
Lecture 52 Section 11.2 Wed, Apr 26, 2006
Lecture 11: 9.4 Connectivity Paths in Undirected & Directed Graphs Graph Isomorphisms Counting Paths between Vertices 9.5 Euler and Hamilton Paths Euler.
Easy, Hard, and Impossible Elaine Rich. Easy Tic Tac Toe.
M Clements Formal Network Theory. Introduction Practical problem – The Seven Bridges of Königsberg Network graphs Nodes & edges Degrees Rules/ axioms.
Konisberg Bridges (One-way street) SOL: DM.2 Classwork Quiz/worksheet Homework (day 62) worksheet.
Graph Theory Two Applications D.N. Seppala-Holtzman St. Joseph ’ s College.
Euler and Hamiltonian Graphs
1 Euler and Hamilton paths Jorge A. Cobb The University of Texas at Dallas.
Grade 11 AP Mathematics Graph Theory Definition: A graph, G, is a set of vertices v(G) = {v 1, v 2, v 3, …, v n } and edges e(G) = {v i v j where 1 ≤ i,
Week 7 - Monday CS 113.
EECS 203 Lecture 19 Graphs.
By Harish Bhattarai, Cameron Halvey, Layton Miller
Euler and Hamiltonian Graphs
Data Structures Graphs - Terminology
Graph theory. Graph theory Leonard Euler (“Oiler”)
Routing Through Networks - 1
EECS 203 Lecture 20 More Graphs.
Discrete Maths 9. Graphs Objective
Graphs Chapter 13.
Nuffield Free-Standing Mathematics Activity
Euler and Hamiltonian Graphs
Graph Theory Relations, graphs
Presentation transcript:

Mathematical Ideas that Shaped the World Graphs and Networks

Plan for this class What was the famous Königsberg bridge problem? What is a graph? Why was the 4-colour theorem controversial? How are soap bubbles and slime mould good at town planning? Why is it so hard for salesmen to be efficient? How does Google work?

The Seven Bridges of Königsberg

The Seven Bridges of Königsberg Once upon a time there was a city called Königsberg in Prussia. It was founded in 1255 by the Teutonic Knights, and was the capital of East Prussia until 1945. It was a centre of learning for centuries, being home to Goldbach, Hilbert, Kant and Wagner.

The Seven Bridges of Königsberg Running through the city was the River Pregel. It separated the city into two mainland areas and two large islands. There were 7 bridges connecting the various areas of land.

The Seven Bridges of Königsberg The residents of Königsberg wondered whether they could wander around the city, crossing each of the seven bridges once and only once. Can you find a way?

Leonhard Euler (1707 – 1783) Born in Basel, Switzerland, and was expected to become a pastor like his father. Studied Hebrew and theology at university, but got private maths lessons from Johann Bernoulli. In 1727 got a job in the medical section at the Uni of St Petersburg… Age 16 he received his Master of Philosophy degree with a dissertation comparing the philosophies of Descartes and Newton.

Leonhard Euler (1707 – 1783) …but in the chaos surrounding the death of Empress Catherine I, he managed to sneak into the maths department. Got married in 1733 and had 13 children, of whom 5 survived to adulthood. In 1741 moved to Berlin, where he spent 25 years. He was also a medic in the Russian navy.

Leonhard Euler (1707 – 1783) Published over 500 books and papers in his lifetime, with another 400 posthumously. Invented the notation i, π, e, sin, cos, f(x) and more! Lost sight in both eyes but became more productive, saying “now I have fewer distractions” That’s a publication about every 5 weeks of his adult life!

Back to Königsberg… In 1736 Euler turned his mind to the problem of the bridges of Königsberg. He realised that it didn’t matter how you walked around the land, or where exactly the bridges were. It only mattered how many bridges there were between each bit of land, and in what order you crossed them.

Reformulating the problem With this observation, we can re-draw the bridges of Königsberg as follows: A B C D

Conditions for a solution Euler’s Eureka! moment was realising that whenever you cross into a bit of land, you also have to cross back out of it. Therefore, for a bridge tour to be possible, there must be an even number of bridges coming out of every bit of land. (Except for the starting and finishing points.)

An impossible problem! If we look again at the map of Königsberg, we see that there are an odd number of bridges coming out of every bit of land, so such a walk around the city is impossible. A B C D

Königsberg extra Look at your handout to learn about these characters. Can you make them all happy?

Postscript on Königsberg Königsberg was heavily bombed during World War II. The city was taken over by Russia and re-named Kaliningrad. Two of the 7 bridges were destroyed: Yes, but impractical for tourists since the tour starts and ends on the islands! Question: Is the bridge problem possible now?

The beginning of graph theory By solving the problem the way he did, Euler invented the subject of graph theory. A graph is a collection of nodes and edges. It doesn’t matter how long the edges are or where the nodes are; it only matters which edges are connected to which nodes. edge node

Examples of graphs Train maps

Examples of graphs (e.g. Facebook) Social networks

Examples of graphs Chemical models A graph can be 3D too! Classifying chemical molecules was a big impetus for graph theory in the 19th century. Chemical models

The Four Colour Theorem

The Four-Colour Problem Proposed by Francis Guthrie in 1852 and remained unsolved for more than a century. Can any map be coloured with 4 colours so that no two adjacent regions have the same colour?

Example of a 4-colouring Handout: can YOU do a 4-colouring?

Why not 3 colours? A simple example shows that it impossible to always colour a map with only 3 colours.

Why not 5 colours? It was proved by 1890 that every map can be coloured with at most 5 colours. The difficult part of the problem was to show that there was no map sufficiently complicated as to need 5 colours. Martin Gardner set the following graph as a problem to his readers. Can you colour it using only 4 colours?

Martin Gardner’s map

In terms of graphs The 4-colour problem can be phrased in terms of graphs. Each region of the map becomes a node, with two nodes being connected by an edge if and only if the regions are adjacent on the map. The problem becomes: can you colour the nodes with 4 colours so that an edge never connects two nodes of the same colour?

Maps to graphs: example

A proof? In 1976, two men called Kenneth Appel and Wolfgang Haken announced that they had a proof of the conjecture.

A controversial result They had made a computer program to check the 4-colouring of all possible examples (1,936 of them!). It was the first mathematical theorem to be proved with computer help, and aroused much controversy. There are applications of graph colouring to scheduling, but generally the 4-colour theorem itself isn’t particularly useful.

An inelegant result One critic said “A good mathematical proof is like a poem. This is a telephone directory!” However, the proof is now widely accepted and computers are used in many areas of pure mathematics.

Building efficient graphs

Building the shortest graphs Very often we have a set of points and want to find the shortest collection of edges that connect them up. For example, Roads/railways connecting towns Telephone/internet cables Gas pipes Connections in electronic circuits Neurons connecting bits of your brain

The shortest graph? Suppose we have 4 towns that we wish to connect up. Which of these do you think is shortest?

An unexpected solution If we’re restricted to roads between towns, then the first graph is the shortest. But there is a better solution, which we can find using a bit of perspex and some soap bubbles…

Soap bubbles know best So the best solution is to create two ghost towns! Steiner graph

How do they do it? We currently have no (fast) algorithm for finding the shortest Steiner graph between a given number of points. Nature, on the other hand, is quite good at it. http://www.youtube.com/watch?v=0lpsLCgCp2Q

Slime mould is better than politicians Scientists studied slime mould growing in a region shaped like Tokyo, placing food sources where the major regional cities would be. The resulting slime mould network was remarkably similar to the Tokyo train network. In some respects it was actually better! Slime mould had similar fault tolerance and transport efficiency, but the slime network was a bit cheaper!

Slime mould networks Tokyo train network Slime mould

Finding the shortest route

The Chinese postman problem Now suppose that the towns and roads are fixed, and we know the distances between them. The Chinese postman problem asks: what is the shortest route that travels over every road at least once and returns to the start? 5 3 5 9 8 8 6 4 9

The Chinese postman problem Here’s how to solve the problem: If the graph is Eulerian (i.e. an even number of edges out of every node) then each edge can be walked exactly once, so we are done. If not, find the shortest distances between the nodes with odd numbers of edges, and add extra edges to turn it into an Eulerian graph.

Chinese postman: example B C 5 3 5 9 A 8 D 8 4 9 6 F E

The travelling salesman problem If, instead, you are a travelling salesman, you wish to find the route that allows you to visit each town exactly once (and then return to the start). This problem was posed as long ago as 1800 by the Irish mathematician Hamilton, and rose drastically in popularity in the 1950s and 60s.

The Icosian Game

(Or the travel version!)

This is the poster for a contest run by Proctor & Gamble in 1962. There were 33 cities in this problem.

A tantalising problem Unlike the Chinese postman problem, nobody has ever found a fast algorithm for solving the Travelling Salesman Problem (TSP). Deciding whether there is a route shorter than a given length is an “NP-complete” problem. Finding a good algorithm is currently worth $1 million!

Methods of solving the TSP Brute force – try all possible routes and pick the fastest one. Caveat: using today’s fastest supercomputer, solving the 33-city problem using this method would take about 100 trillion years!

Methods of solving the TSP Branch and bound algorithms – divide the problem into smaller graphs and try to eliminate edges that can’t be part of the solution. The record set with this kind of exact method is 85,900 cities, which took over 126 CPU years to compute in 2006.

Methods of solving the TSP Heuristics: find ‘good’ solutions which are highly likely to be close to the perfect solution. For example, The nearest neighbour algorithm lets the salesman pick the nearest unvisited city every time. Find any route, then rearrange edges to find a shorter one.

Methods of solving the TSP Heuristic algorithms can find solutions to TSP with millions of cities in a fairly short amount of time. Caveat: these solutions may not always be the best possible.

Have a go! Humans are surprisingly good at finding solutions to TSP quite quickly. Play the following game online to see how good you are! http://www.tsp.gatech.edu/games/tspOnePlayer.html

Applications The Travelling Salesman Problem has lots of applications in our lives: Logistics of delivering goods Drilling holes in circuit boards Genome sequencing Programming space telescopes like Hubble Collecting post from postboxes every day Making travel itineraries X-ray crystallography

How does Google work?

The internet to Google Google sees the internet is a giant graph. Each webpage is a node, and two pages are joined by an edge if there is a link from one page to the other. Note: the edges in the internet graph have a direction. The algorithm that Google uses to rank its searches is called PageRank.

How does PageRank work? Idea: the more links a page has pointing to it, the more important it is. Second idea: if an important page links to your page, this is worth more than if an unimportant page links to you. For example, Wikipedia referencing you is worth more than Haggis The Sheep referencing you.

Example Page C has a very high ranking even though it has very few links pointing to it.

Using PageRank to make money! People who understand PageRank can make it very lucrative for them. For example, businesses or individuals with a high page rank can sell links to those wishing to boost their page rank. Businesses have also used similar algorithms to rank universities in the job market.

Social networking Graphs are also important to social networking sites like Facebook. By analysing the preferences of your ‘friends’ and pages that you ‘like’, Facebook can target its advertising very effectively.

Making recommendations Similarly, shops like Amazon use graphs to make suggestions for future shopping. In 2009 the US company Netflix awarded $1 million to the people who best improved their recommendation algorithm. (One of the problems was that they could never predict whether someone would like the film Napoleon Dynamite!) See New York Times article referenced in the last slide.

Lessons to take home That Graph Theory is an incredibly important part of modern-day life. That a solution to a single graph theory problem can have many different real-world applications. That slime mould is often cleverer than humans. That problems in graph theory can be worth a lot of money!

References Here are some good places to read more about the subjects in today’s lecture. Four Colour Theorem: http://nrich.maths.org/6291 “Four Colours Suffice” by Robin Wilson, Penguin Books, 2003 A comprehensive website about the Travelling Salesman problem: http://www.tsp.gatech.edu/ A New York Times article about the NetFlix prize: http://www.nytimes.com/2008/11/23/magazine/23Netflix-t.html