Graph Theory I In today’s lesson we will look at:

Slides:



Advertisements
Similar presentations
Decision Maths Dijkstra’s Algorithm.
Advertisements

Introductory Lecture. What is Discrete Mathematics? Discrete mathematics is the part of mathematics devoted to the study of discrete (as opposed to continuous)
1 Minimal Spanning Tree This is a technique used when we need to connect many places to a system(network).
The Shortest Path Problem
Circuits Series and Parallel. Ohm’s Law In a very isolated situation, we know that: V = IR But how does this apply to the real world?
Programming for Geographical Information Analysis: Advanced Skills Online mini-lecture: Introduction to Networks Dr Andy Evans.
© Nuffield Foundation 2011 Nuffield Free-Standing Mathematics Activity Chinese postman problems What route can I take to avoid going along the same street.
Which of these can be drawn without taking your pencil off the paper and without going over the same line twice? If we can find a path that goes over all.
Chinese postman problem
Structures 7 Decision Maths: Graph Theory, Networks and Algorithms.
Minimum Spanning Trees Prof. Sin-Min Lee Dept. of Computer Science, San Jose State University.
Graphs, Puzzles, & Map Coloring
Topics Paths and Circuits (11.2) A B C D E F G.
Graphs Edge(arc) Vertices can be even or odd or undirected (two-way) Edges can be directed (one-way) This graph is connected. Degree(order) = 3 Odd vertex.
Graphs A ‘Graph’ is a diagram that shows how things are connected together. It makes no attempt to draw actual paths or routes and scale is generally inconsequential.
Chapter 1: Urban Services Lesson Plan
Chapter 5: The Mathematics of Getting Around
science/internet-intro
Street Networks Ch. 1 Finite Math. Our Learning Goal (why am I doing this?) To be able to figure out the best path to choose when traveling a street network.
Network Problems A D O B T E C
Excursions in Modern Mathematics Sixth Edition
Excursions in Modern Mathematics Sixth Edition
Fabric Art with Lights Workshop!
Excursions in Modern Mathematics Sixth Edition
Circuits Series and Parallel.
Graph theory. Graph theory Leonard Euler (“Oiler”)
ROUTERS AND REDUNDANCY
Routing Through Networks - 1
Shortest Path from G to C Using Dijkstra’s Algorithm
Algorithms Detour - Shortest Path
Minimal Spanning Trees and Graphs
Exploring Computer Science
Introduction to Computers
Distance-Vector Routing Protocols
Discrete Mathematics and Its Applications
Discrete Maths 9. Graphs Objective
Properties of Addition
TransCAD Route Systems 2018/11/22.
* Hamiltonian Circuits introduction
R E A D What is cyber bullying? Hall
Ian Ramsey C of E School GCSE ICT On the move How can we connect?
Foundations of Discrete Mathematics
Current & Voltage AIM: To understand current and voltage at a physical level and appreciate some of the analogies used to help us think about voltage and.
Nuffield Free-Standing Mathematics Activity
Decision Maths Dijkstra’s Algorithm.
Networks and Shortest Paths
Objectives: Identify functions. Find the domain and range.
Chapter 1: Urban Services Lesson Plan
Warm Up – Friday.
Plenary
Shortest Path Problems
Konigsberg- in days past.
Network Models 7-1.
Route Inspection Which of these can be drawn without taking your pencil off the paper and without going over the same line twice? If we introduce a vertex.
Electricity.
Electrical Circuits Objective:
Chapter 1: Urban Services Management Science
Minimum spanning trees
Graphs.
Graphs.
Graphs.
Copyright ©2012 by Pearson Education, Inc. All rights reserved
Relationships in Circuits
Chapter 10 Graphs and Trees
Graphs.
Chapter 1: Urban Services Lesson Plan
WJEC GCSE Computer Science
Discrete Mathematics and Its Applications
TransCAD User’s Guide 2019/8/19.
Concepts of Computation
Presentation transcript:

Graph Theory I In today’s lesson we will look at: what we mean by the word network what we mean by the word path how to calculate the shortest path why we are doing this!

What is a Network? Networks show us how things are joined together. Networks are made up of: points, which represent things, e.g. places, atoms, electrical components, etc. lines, which represent the links between the things, e.g. roads, bonds, wires Examples of networks: Routes maps – e.g. the London Underground Map Electrical circuits Chemical structures – e.g. molecules

Network Examples

What is a Path? A path is a route through a network that: doesn’t go through any of the points more than once doesn’t go along any of the lines more than once Most routes you will want to take in real life will be a path – e.g. if you are travelling somewhere on holiday, you won’t want to go through the same town twice or drive down the same motorway twice

Path Example How many paths are there from A to B? Would all of these paths be a sensible route if you were walking from A to B?

Shortest Path Most of the time, we will want to find the shortest path, e.g. to take the shortest route to our destination to connect the components with the shortest amount of wire How can we work out the shortest path? Label each line between two points with the distance between those two points Find all of the possible routes between the starting point and the end point Find the total length of each path and see which is the shortest!

Shortest Path Example Which is the shortest path from A to B? 14 Which is the shortest path from A to B? 3 20 A 8 9 4 15 B Path 1 = 3 + 20 = 23 Path 2 = 3 + 14 + 9 = 26 Path 3 = 3 + 8 + 15 = 26 Path 4 = 4 + 15 = 19 Path 5 = 4 + 8 + 20 = 32 Path 6 = 4 + 8 + 14 + 9 = 35 Path 4 is the shortest path

Why Is This Useful? Sat Navs, Google Maps, etc. use this technique to find the shortest route between two places Computer networks, the telephone system and the internet also need to plan routes to get your messages, files and telephone calls to the right place. If you label the lines with the time taken to get between the points, rather than the distance between them, you can use the same method to find the fastest route. If you label the lines with the cost of using that link, then you can find the cheapest route – e.g. finding a route that doesn’t use any toll roads or bridges.

Why Not Store the Route? Why do computers or Sat Navs work out the route every time, when it’s likely that they pick the same route every time? For example, if you regularly drive from your house to London, you might always go along the M6 and the M1 – you don’t plan your route every time. What about, though, if the link between the M1 and the M6 is closed, or there is a Grand Prix at Silverstone, or there’s been an accident on the M1? The benefit of choosing the route when you need to go is that you can take into account of current conditions. You can tell that Sat Navs don’t remember the route they used, because they’ll often take you back a different way.

Anything Else? You might need to add extra rules – if two paths are equally good, how do you choose which one to use? My Sat Nav appears to select the best route by looking in a clockwise direction. e.g. it would take me from A to B down the A123 and take me back to A up the A456 A B A123 A456