Skip to content

CE205 Data Structures

Week-5

Graph Data Structure and Traversals

Download DOC, SLIDE, PPTX


Outline

  • Introduction to Graphs
  • Graph Representations
  • Graph Traversal
  • Water Jug Problem

Introduction to Graphs

  • Vertex
  • Edge

Introduction to Graphs

  • Undirected Graph
  • Directed Graph
  • Mixed Graph

Introduction to Graphs

  • End Vertices or Endpoints
  • Origin
  • Destination

Introduction to Graphs

  • Adjacent
  • Incident

Introduction to Graphs

  • Outgoing Edge
  • Incoming Edge

Introduction to Graphs

  • Degree
  • Indegree
  • Outdegree

Introduction to Graphs

  • Parallel edges or Multiple edges
  • Self-loop
  • Simple Graph
  • Path

Introduction to Graphs


Graph Representations

  1. Adjacency Matrix
  2. Incidence Matrix
  3. Adjacency List

  4. Btech Smart Class

  5. http://www.btechsmartclass.com/data_structures/graph-representations.html

Graph Traversal - DFS

  1. Depth-First Search (DFS)
  2. Iterative Deepening Search(IDS) or Iterative Deepening Depth First Search(IDDFS)

  3. Btech Smart Class

  4. http://www.btechsmartclass.com/data_structures/graph-traversal-dfs.html

Graph Traversal - BFS


Graph Traversal - DLS


Graph Traversal


Graph Traversal


Graph Traversal


\[ End-Of-Week-5 \]

Last update: September 25, 2022
Created: December 29, 2021
Back to top