Graphs, Study notes of Data Structures and Algorithms

Data Structures Cheat Sheet. ○ Vector, Stack: dynamic array. ○ Queue: linked list or dynamic array. ○ Set, Map: Binary Search Tree.

Typology: Study notes

2021/2022

Uploaded on 08/05/2022

dirk88
dirk88 🇧🇪

4.4

(222)

3.1K documents

1 / 186

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Graphs
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Partial preview of the text

Download Graphs and more Study notes Data Structures and Algorithms in PDF only on Docsity!

Graphs

Announcements()

Final

● Final: Monday, August 12 th , 7-10pm ● Location: Cubberly Auditorium ● (^) Cumulative (but weighted towards post midterm material) ● Covers material up through Tuesday

  • (^) SCPD students and students who require special arrangements should email me in the next couple days ● We do the final “early” so we have time to grade it, get it back to you and resolve any grading issues.

} //Announcements

Graphs

A Social Network

http://www.toothpastefordinner.com/

A graph is a mathematical structure for representing relationships.

A graph is a mathematical structure for representing relationships. A graph consists of a set of nodes connected by edges.

A graph is a mathematical structure for representing relationships. A graph consists of a set of nodes connected by edges.

A graph is a mathematical structure for representing relationships. A graph consists of a set of nodes connected by edges. Edges

Some graphs are directed.

CAT SAT RAT

MAN RAN

MAT

CAN

Some graphs are undirected. You can think of them as directed graphs with edges both ways.

Graphs

● “Yo Teach, why are we studying graphs?” ● We study graphs because a lot of problems can be modeled in terms of graphs ● Also, there are many off-the-shelf graph algorithms that we apply if we're able to formulate a problem as a graph problem.