SlideShare a Scribd company logo
CST 5 Math
A-maze-ing
Math
Graphs
The Königsberg Conundrum
 In the old city of Konigsberg there
used to be only 5 bridges.
 People could take a round trip of all
the bridges by crossing them only
once.
 Go to page 70 in the text and trace
with your finger the path you would
take.
The Seven Bridges
 Then two more bridges were built.
 People tried but could not do a round
trip and cross each bridge only once.
 Try this using the picture on the next
slide.
Leonard Euler
 This smart guy, Leonard Euler, (pr.
Oiler) was able to show why a round
trip was impossible.
 He used dots to represent the land
and lines to represent the bridges.
The Oiler does it!
 So Lenny showed that no matter
where you started, you could not help
but pass over a bridge two times.
 By doing this he introduced graph
theory which shows how the elements
of a set relate to each other.
First, Some Definitions
 graph
 Informally, a graph is a finite set of dots
called vertices (or nodes) connected by
links called edges (or arcs).
Definitions
 adjacent
 Two vertices are adjacent if they are
connected by an edge.
Definitions
 Degree: The degree (or valence) of
a vertex is the number of edge ends
at that vertex.
 For example, in this graph all of the
vertices have degree two.
Activities
 Book 2, p.18, Q. 1-7, some orally
 P. 19, Q. 9, 10, 14, 15
More Definitions
 complete graph
 A complete graph with n vertices is a
graph with n vertices in which each
vertex is connected to each of the others
(with one edge between each pair of
vertices).
 Here are the first five complete graphs:
Definitions
 connected
 A graph is connected if there is a path
connecting every pair of vertices.

Activities
 P. 79, Q. 1-7
 P. 81, Q. 8-11
Labyrinths
 So, the island in Königsberg and the
bridges created a maze or a labyrinth.
 Labyrinths have existed for thousands of
years.
 According to legend, King Minos created a
labyrinth on the island of Crete.
 At the centre was his son, a half-man half-
bull called a Minotaur (a/k/a Bob).
 If you could get out of the labyrinth before
Bob got you, you survived.
Bob and His Maze
Bob Dies…
 Theseus kills Bob.
 He then escapes.
 He goes home.
Okay
 So that was not actually the maze.
 What did your graph look like?
Activities
 On page 85, do Q. 1-4 orally.
 On page 86, do Q. 6-10
 On Page 87, do Q. 13, 16, 17, 21
Labyrinth Project
 You and a partner will pick a maze.
 Draw the labyrinth.
 Draw a graph of the labyrinth
showing the vertices and the edges.
 This is a C1 task – math
communication – constructs and uses
networks of concepts;
 You will write a short paragraph
about the labyrinth, how it works,
and what you have learned.
Chartres Cathedral Prayer Maze
Brain Maze
Theseus Maze
Circular Maze
Euler Paths and Circuits
 Euler path: A path that travels over
each edge once and only once in a
connected graph.
 Euler Circuit:
 An Euler path
 that is closed.
Special Case
 An Euler path or circuit only exists if a
graph has EXACTLY 2 vertices whose
degrees are odd numbers.
 An Euler path exists when the
degrees of all the vertices are even
numbers.
Euler Circuit:
Degree of Vertices
Drawing Euler Paths
 An Euler path must start at a vertex
having an odd-numbered degree and
end at another vertex with an odd-
numbered degree.
 An Euler circuit can begin at any
vertex and ends at the same vertex.
Hamiltonian Paths
 Hamiltonian Path: A path that passes
through every vertex once and only
once.
 Hamiltonian Circuit: A Hamiltonian
path that finishes at the same vertex.
Distance of a Path
 D(P,Q) is the shortest distance
between two points.
 Each edge/line is considered to have
length one.
Activities
 Page 27, Q. 1-7
Tree Diagrams
 A tree diagram is a
connected graph
without a simple
circuit.
 This can be used in
planning jobs,
electrical circuits
and plumbing.
A
B C D
Directed Graph or Digraphs
 A directed graph is a graph in which
each edge has a direction – called an
arc;
 The arc has only one direction that
can be followed; E.g one way street
 A path or circuit is SIMPLE if it
contains no repeat arcs;
Weighted Graph
 A weighted graph is a graph,
directed or not, in which a weight is
attributed to each edge;
 The weight of a path is the sum of
the weights of the edges that make
up the path;
Activities
 Page 37, Q. 1, 3, 4
 Page 41, Q. 13, 15, 16
Value of a Path
 The value of a path is the total of its
weights.
 It can be a maximum or a minimum.
 To find the minimum, start with the
path of lowest weight, and add
additional edges until all the nodes
are connected.
Networks
 A network is a graph in which every
edge is assigned a weight.
 A weight can indicate time or cost.
 The weight of a path corresponds to
the sum of the weights of the edges
that make up the path.
 A network can be directed or
undirected.
Chromatic Number
 The chromatic number is the
minimum number of colours
necessary to colour all of a graph’s
vertices without any 2 adjacent
vertices being of the same colour.
 It is also applied to maps.
Critical Path
 The critical path corresponds to a
simple path of maximum value.
 Critical paths are used to determine
the minimum amount of time required
to carry out a task comprising several
steps.
 To do this, you must know which steps
are pre-requisites (needed ahead of
time) for other steps, and which steps
can be carried out at the same time.
Activity
 Page 52, Q. 1,2,5
 Page 54, Q. 9, 10, 12, 13, 19

More Related Content

DOCX
CST 504 Line Graph Analysis of Mazes
PPTX
Graph Basic In Data structure
PPT
2.1 graph basic
PPTX
Graph in data structure
PDF
Graph Data Structure
PPT
Chapter9 graph data structure
PPTX
Graphs in Data Structure
PPT
Graph theory
CST 504 Line Graph Analysis of Mazes
Graph Basic In Data structure
2.1 graph basic
Graph in data structure
Graph Data Structure
Chapter9 graph data structure
Graphs in Data Structure
Graph theory

What's hot (20)

PPTX
Adjacency list
PDF
Graph theory
PPT
Applications of graphs
PPTX
Isomorphic graph
PPTX
Graph data structure and algorithms
PPT
PPTX
Application Of Graph Data Structure
PPTX
Graph in data structure
PPT
Graphs in Data Structure
PPT
Graph isomorphism
PDF
Graph in Data Structure
PPTX
Graph Data Structure
PPTX
Graph Theory
PPTX
Chap 8 graph
PPTX
Graph theory 1
PPT
Graph: Euler path and Euler circuit
PDF
Daa chpater 12
PPT
Graph
PPTX
Graph theory introduction - Samy
Adjacency list
Graph theory
Applications of graphs
Isomorphic graph
Graph data structure and algorithms
Application Of Graph Data Structure
Graph in data structure
Graphs in Data Structure
Graph isomorphism
Graph in Data Structure
Graph Data Structure
Graph Theory
Chap 8 graph
Graph theory 1
Graph: Euler path and Euler circuit
Daa chpater 12
Graph
Graph theory introduction - Samy
Ad

Viewers also liked (11)

PPT
CST 504 Standard and Function Form of a Line
DOCX
CST 504 Syllabus 2016 2017
PPT
CST 504 Area Probability
PPT
CST 504 Graphing Inequalities
PPTX
CST 504 Voting Procedure Introduction
PPT
Trigonometry
PPT
CST 504 Linear Equations
PPT
CST 504 Transformations ppt
PPT
CST 504 Venn Diagrams
DOCX
PHS Binder Rubric
PPT
CST 504 Distance in the Cartesian Plane
CST 504 Standard and Function Form of a Line
CST 504 Syllabus 2016 2017
CST 504 Area Probability
CST 504 Graphing Inequalities
CST 504 Voting Procedure Introduction
Trigonometry
CST 504 Linear Equations
CST 504 Transformations ppt
CST 504 Venn Diagrams
PHS Binder Rubric
CST 504 Distance in the Cartesian Plane
Ad

Similar to CST 504 Graphs (20)

PPS
nossi ch 6
PPTX
Final-term Coverage.pptx. ..............
DOCX
Graph Theory 117 © David Lippman Creative Commons BY-
PDF
Eurler_Hamilton_Path_Circuit.pdf
PPT
Presentation on graphs
PPT
Distruct week 15 graphs theory (updated)
PDF
distructweek15graphstheoryupdated-160227143444.pdf
PPTX
koningsbergproblem-140215072342-phpapp02 (1).pptx
PPTX
GRAPH THEORY OF NUMBER THEOREM IN DISCRETE MATH
PPTX
DATA STRUCTURE PRESENTATION.pptx
PPTX
graphssssssssssssssssssssssssssssss.pptx
PPTX
Koningsberg bridge problem
PPTX
GRAPH THEORY - Basic definition with examples
PPTX
Chapter 4_introduction on Graph theory.pptx
PPTX
Graph theory
PDF
An introduction to the graph theory in discrete mathematics
DOCX
Graphs and eularian circuit & path with c++ program
PPT
Koinsburg bridge
PPT
358 33 powerpoint-slides_13-graphs_chapter-13
nossi ch 6
Final-term Coverage.pptx. ..............
Graph Theory 117 © David Lippman Creative Commons BY-
Eurler_Hamilton_Path_Circuit.pdf
Presentation on graphs
Distruct week 15 graphs theory (updated)
distructweek15graphstheoryupdated-160227143444.pdf
koningsbergproblem-140215072342-phpapp02 (1).pptx
GRAPH THEORY OF NUMBER THEOREM IN DISCRETE MATH
DATA STRUCTURE PRESENTATION.pptx
graphssssssssssssssssssssssssssssss.pptx
Koningsberg bridge problem
GRAPH THEORY - Basic definition with examples
Chapter 4_introduction on Graph theory.pptx
Graph theory
An introduction to the graph theory in discrete mathematics
Graphs and eularian circuit & path with c++ program
Koinsburg bridge
358 33 powerpoint-slides_13-graphs_chapter-13

More from Neil MacIntosh (20)

PPT
Solenoids.ppt
PPT
Electromagnets.ppt
PPTX
Concrete Beam.pptx
PPT
Technical Drawing & Assembly.ppt
PPTX
Chapter 13 - Mechanical Engineering.pptx
PPT
Physical & Chemical Changes
PPT
Compounds & Elements
PPT
Atomic Theory Overview
PPT
PPT
Periodic Table
PPT
Isotopes
PPT
Atomic Structure Radioactivity
PPT
Bohr Rutherford Atomic Model
PPT
Thompson & Rutherford
PPT
Atomic Structure
PPT
Vectors Victor
PPT
Unit circle
PDF
Trig cheat sheet
PPT
Trig identities
PPT
Trig functions
Solenoids.ppt
Electromagnets.ppt
Concrete Beam.pptx
Technical Drawing & Assembly.ppt
Chapter 13 - Mechanical Engineering.pptx
Physical & Chemical Changes
Compounds & Elements
Atomic Theory Overview
Periodic Table
Isotopes
Atomic Structure Radioactivity
Bohr Rutherford Atomic Model
Thompson & Rutherford
Atomic Structure
Vectors Victor
Unit circle
Trig cheat sheet
Trig identities
Trig functions

Recently uploaded (20)

PPTX
Pharma ospi slides which help in ospi learning
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
Orientation - ARALprogram of Deped to the Parents.pptx
PPTX
Cell Structure & Organelles in detailed.
PDF
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Complications of Minimal Access Surgery at WLH
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Weekly quiz Compilation Jan -July 25.pdf
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
Computing-Curriculum for Schools in Ghana
PDF
Classroom Observation Tools for Teachers
PDF
Yogi Goddess Pres Conference Studio Updates
Pharma ospi slides which help in ospi learning
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
202450812 BayCHI UCSC-SV 20250812 v17.pptx
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
Abdominal Access Techniques with Prof. Dr. R K Mishra
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
Microbial diseases, their pathogenesis and prophylaxis
Orientation - ARALprogram of Deped to the Parents.pptx
Cell Structure & Organelles in detailed.
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Final Presentation General Medicine 03-08-2024.pptx
Complications of Minimal Access Surgery at WLH
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Weekly quiz Compilation Jan -July 25.pdf
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
Computing-Curriculum for Schools in Ghana
Classroom Observation Tools for Teachers
Yogi Goddess Pres Conference Studio Updates

CST 504 Graphs

  • 2. The Königsberg Conundrum  In the old city of Konigsberg there used to be only 5 bridges.  People could take a round trip of all the bridges by crossing them only once.  Go to page 70 in the text and trace with your finger the path you would take.
  • 3. The Seven Bridges  Then two more bridges were built.  People tried but could not do a round trip and cross each bridge only once.  Try this using the picture on the next slide.
  • 4. Leonard Euler  This smart guy, Leonard Euler, (pr. Oiler) was able to show why a round trip was impossible.  He used dots to represent the land and lines to represent the bridges.
  • 5. The Oiler does it!  So Lenny showed that no matter where you started, you could not help but pass over a bridge two times.  By doing this he introduced graph theory which shows how the elements of a set relate to each other.
  • 6. First, Some Definitions  graph  Informally, a graph is a finite set of dots called vertices (or nodes) connected by links called edges (or arcs).
  • 7. Definitions  adjacent  Two vertices are adjacent if they are connected by an edge.
  • 8. Definitions  Degree: The degree (or valence) of a vertex is the number of edge ends at that vertex.  For example, in this graph all of the vertices have degree two.
  • 9. Activities  Book 2, p.18, Q. 1-7, some orally  P. 19, Q. 9, 10, 14, 15
  • 10. More Definitions  complete graph  A complete graph with n vertices is a graph with n vertices in which each vertex is connected to each of the others (with one edge between each pair of vertices).  Here are the first five complete graphs:
  • 11. Definitions  connected  A graph is connected if there is a path connecting every pair of vertices. 
  • 12. Activities  P. 79, Q. 1-7  P. 81, Q. 8-11
  • 13. Labyrinths  So, the island in Königsberg and the bridges created a maze or a labyrinth.  Labyrinths have existed for thousands of years.  According to legend, King Minos created a labyrinth on the island of Crete.  At the centre was his son, a half-man half- bull called a Minotaur (a/k/a Bob).  If you could get out of the labyrinth before Bob got you, you survived.
  • 14. Bob and His Maze
  • 15. Bob Dies…  Theseus kills Bob.  He then escapes.  He goes home.
  • 16. Okay  So that was not actually the maze.  What did your graph look like?
  • 17. Activities  On page 85, do Q. 1-4 orally.  On page 86, do Q. 6-10  On Page 87, do Q. 13, 16, 17, 21
  • 18. Labyrinth Project  You and a partner will pick a maze.  Draw the labyrinth.  Draw a graph of the labyrinth showing the vertices and the edges.  This is a C1 task – math communication – constructs and uses networks of concepts;  You will write a short paragraph about the labyrinth, how it works, and what you have learned.
  • 23. Euler Paths and Circuits  Euler path: A path that travels over each edge once and only once in a connected graph.  Euler Circuit:  An Euler path  that is closed.
  • 24. Special Case  An Euler path or circuit only exists if a graph has EXACTLY 2 vertices whose degrees are odd numbers.  An Euler path exists when the degrees of all the vertices are even numbers.
  • 26. Drawing Euler Paths  An Euler path must start at a vertex having an odd-numbered degree and end at another vertex with an odd- numbered degree.  An Euler circuit can begin at any vertex and ends at the same vertex.
  • 27. Hamiltonian Paths  Hamiltonian Path: A path that passes through every vertex once and only once.  Hamiltonian Circuit: A Hamiltonian path that finishes at the same vertex.
  • 28. Distance of a Path  D(P,Q) is the shortest distance between two points.  Each edge/line is considered to have length one.
  • 30. Tree Diagrams  A tree diagram is a connected graph without a simple circuit.  This can be used in planning jobs, electrical circuits and plumbing. A B C D
  • 31. Directed Graph or Digraphs  A directed graph is a graph in which each edge has a direction – called an arc;  The arc has only one direction that can be followed; E.g one way street  A path or circuit is SIMPLE if it contains no repeat arcs;
  • 32. Weighted Graph  A weighted graph is a graph, directed or not, in which a weight is attributed to each edge;  The weight of a path is the sum of the weights of the edges that make up the path;
  • 33. Activities  Page 37, Q. 1, 3, 4  Page 41, Q. 13, 15, 16
  • 34. Value of a Path  The value of a path is the total of its weights.  It can be a maximum or a minimum.  To find the minimum, start with the path of lowest weight, and add additional edges until all the nodes are connected.
  • 35. Networks  A network is a graph in which every edge is assigned a weight.  A weight can indicate time or cost.  The weight of a path corresponds to the sum of the weights of the edges that make up the path.  A network can be directed or undirected.
  • 36. Chromatic Number  The chromatic number is the minimum number of colours necessary to colour all of a graph’s vertices without any 2 adjacent vertices being of the same colour.  It is also applied to maps.
  • 37. Critical Path  The critical path corresponds to a simple path of maximum value.  Critical paths are used to determine the minimum amount of time required to carry out a task comprising several steps.  To do this, you must know which steps are pre-requisites (needed ahead of time) for other steps, and which steps can be carried out at the same time.
  • 38. Activity  Page 52, Q. 1,2,5  Page 54, Q. 9, 10, 12, 13, 19