Download presentation
Presentation is loading. Please wait.
1
Topic 12 Graphs 1
2
Graphs Definition: Two types:
3
Undirected
4
Directed
5
Examples/Applications
6
Transportation Networks Source: pages.cs.wisc.edu Shortest path?
7
Vacuum World (from AI) Source: centurion2.comcenturion2.com What belief states could we be in if we do a certain sequence of actions?
8
Social Network Source: infosthetics.cominfosthetics.com Are you an introvert? Who are you most friendly with?
9
Graphical Models (from machine learning) Source: wikipedia.org What was the most likely sequence of weather given the actions (walking, shopping, cleaning) on those days?
10
Graphical Models Source: PRML by Christopher Bishop What is the most probable configuration that created this image?
11
More Definitions Path: Length:
12
Cycle: Self-loop:
13
Incident edges
14
Simple graph: Acyclic graph:
15
Subgraph: Forest: Tree
16
Connected: Complete graph:
17
Weighted graph:
18
Graph Representations
19
Adjacency Matrix (undirected)
20
Adjacency Matrix (directed) Pros: Cons:
21
Adjaceny list (undirected)
22
Adjaceny list (directed)
23
Adjacency List Costs Space: Searching for edge between nodes: Adjacency check:
24
Graph Search/Traversals How do get from one node to another? Why?
25
Breadth First Search
27
Implementing BFS
30
Depth-First Search
31
Recursive Algorithm
32
Iterative Algorithm
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.