Docsity

Graphs, Study notes of Data Structures and Algorithms

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.