1 / 62

Mathematical Ideas that Shaped the World

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?

caelan
Download Presentation

Mathematical Ideas that Shaped the World

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Mathematical Ideas that Shaped the World Graphs and Networks

  2. 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?

  3. The Seven Bridges of Königsberg

  4. 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.

  5. 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.

  6. 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?

  7. 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…

  8. 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.

  9. 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”

  10. 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.

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

  12. 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.)

  13. A B C D 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.

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

  15. 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: Question: Is the bridge problem possible now?

  16. 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

  17. Examples of graphs Train maps

  18. Examples of graphs Social networks

  19. Examples of graphs Chemical models

  20. The Four Colour Theorem

  21. 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?

  22. Example of a 4-colouring

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

  24. 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?

  25. Martin Gardner’s map

  26. 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?

  27. Maps to graphs: example

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

  29. 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.

  30. 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.

  31. Building efficient graphs

  32. 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

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

  34. 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…

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

  36. 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

  37. 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!

  38. Slime mould networks Tokyo train network Slime mould

  39. Finding the shortest route

  40. 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

  41. 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.

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

  43. 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.

  44. The Icosian Game

  45. (Or the travel version!)

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

  47. 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!

  48. 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!

  49. 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 yearsto computein 2006.

  50. 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.

More Related