Graph Theory

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/12

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 1:11 PM on 7/9/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

13 Terms

1
New cards

Where did this all begin?


  • Walking puzzle in 18th century in a town in Russia called The Seven Bridges of Konigsberg (kaliningrad)

  • The city of Konigsberg was split by a river into four land masses joined by seven bridges.

2
New cards

Solution made for Konigsberg

  • Leonhard Euler in 1736 realized shapes, sizes and distances were irrelevant, except for how the parts connect, inventing the graph theory. 

  • Closed walk exists if every vertex is even but each vertex (line connecting to each bridge) though in konigsberg were odd so it “simply cannot exist”

    • 1736 - Euler solves the bridges: graph theory begins

    • 1800 - Trees, circuit and maps + Four colour problem + Kirchhoff Cayley 

    • 1959 - Dijkstra publishes shortest path problem algorithm

    • Today - Powers maps, the internet and social network + AI exist 

3
New cards

What is Graph Theory?

  • Study of graphs which are mathematical structures used to model pairwise relations of objects

4
New cards

What is an Undirected Graph?

  • Consists of a set V(G) of vertices and a set E(G) of edges, joining two vertices

5
New cards
  • Order and Size of a graph (G)

  • Order of number of vertices (simply counting it)

  • Order of G is the number of vertices - |V(G)|

  • Size of G is the number of edges in G  - |E(G)|

6
New cards
  • Multiple edges and loops

  • = If there is more than one edge joining vertices u and v, then G contained a multiple edge

    • Edge from a vertex u to itself is called a loop

7
New cards
  • Multigraph and simple graph

  • = if a graph (G) contains multiple edges or loops then it is a multigraph, otherwise it is a simple graph

    • As long as vertices and edges are the same but interpreted/drawn differently it is not unique (it will still have the same output)

8
New cards

Degree and Neighborhood of a vertex

  • = these are the degrees of a vertex where number of edges are incident to the vertex u (or simply how many connections are there) denoted by degg(u) 

  • Neighborhood of us denoted by Ng(u)  is the set of all vertices adjacent to u

9
New cards

Walking on a graph:

  • walk of length k from vertex v0 to vertex vk is a sequence of vertices such that two consecutive vertices are joined by an edge

    • EXCEPTION: You must pass through edges connected to the adjacent vertices

  • The walk is called a path IF the vertices are distinct [no repetitions] = (path is also a walk)

  • The walk is called a cycle if the vertices are distinct and v0 = vk (where you started is where you end BUT there should be no repetitions within the journey)

10
New cards

Connected vs Disconnected graph

  • Graph is connected if there is always a path from a vertex to another

  • Otherwise G is disconnected

11
New cards

Weighted Graph & Directed Graph

  • Weighted Graph: All edges of G are assigned with numeral values (weights) 

  • Directed Graph: where D consists of a set V(D) of vertices and a set A(D) of arcs formed using (ordered) pairs of vertices in V(D)

    • Arcs cannot be labeled the same (→)

    • An arc from u to v is written as [u,v], where u is the initial vertex while v is the terminal vertex

      • Order = number of vertices

      • Sizes = number of arcs

<ul><li><p><span><strong>Weighted Graph</strong></span><span style="background-color: transparent;"><strong>:</strong> All edges of G are assigned with numeral values (weights)&nbsp;</span></p></li></ul><p></p><ul><li><p><span><strong>Directed Graph:</strong></span><span style="background-color: transparent;"><strong> </strong>where D consists of a set V(D) of vertices and a set A(D) of arcs formed using (ordered) pairs of vertices in V(D)</span></p><ul><li><p><span style="background-color: transparent;">Arcs cannot be labeled the same (→)</span></p></li></ul><p></p><ul><li><p><span style="background-color: transparent;">An arc from u to v is written as [u,v], where u is the <em>initial vertex </em>while v is the <em>terminal vertex</em></span></p><ul><li><p><span style="background-color: transparent;">Order = number of vertices</span></p></li><li><p><span style="background-color: transparent;">Sizes = number of arcs</span></p></li></ul></li></ul></li></ul><p></p>
12
New cards

DJIKSTRA’s ALGORITHM


  • Tool for determining a shortest path from a starting vertex s to any destination vertex

    • Applies to connected simple graphs (directed or undirected)

  • State of vertex: distance value and status label

    • Distance value of a vertex represents an estimate of its distances, updated using the algorithm

  • Status labels: Permanent or Temporary

    • Once a vertex reaches a permanent status we have determined its shortest distance from the starting point

13
New cards

STEPS IN DJIKSTRA’s ALGORITHM

  1. Initialization

  2. Distance Value Update

  3. Current Vertex Designation Update

  4. Repeat until Permanent