1 / 15

Graphs in Relationship Representation: Paths, Cycles, Trees - CSE 331 Lecture Summary

Explore graph theory concepts like vertices, edges, paths, cycles, connected graphs, and trees in CSE 331 lecture. Understand how to represent relationships between entities or elements using graphs, and learn about algorithms for checking connectivity in graphs. Discover the significance of rooted trees and the relationship between vertices and edges. Gain insights into connectivity algorithms and their applications in handling large graphs effectively.

hachi
Télécharger la présentation

Graphs in Relationship Representation: Paths, Cycles, Trees - CSE 331 Lecture Summary

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Lecture 11 CSE 331 Sep 25, 2009

  2. Homeworks Please hand in your HW 2 now HW 3 and graded HW 1 at the end of class

  3. Graphs Representation of relationships between pairs of entities/elements # vertices = n #edges = m Edge Vertex

  4. Paths , Sequence of (distinct) vertices connected by edges Connected Path length 3 , , ,

  5. Connected Graphs Every pair of vertices has a path between them

  6. Cycles Sequence of k vertices connected by edges, first k-1 are distinct , , ,

  7. Tree Connected undirected graph with no cycles

  8. Rooted Tree

  9. A rooted tree How many rooted trees can an n vertex tree have? AC’s child=SG Pick any vertex as root SG’s parent=AC Let the rest of the tree hang under “gravity”

  10. Rest of Today’s agenda Prove n vertex tree has n-1 edges Algorithms for checking connectivity

  11. Checking by inspection

  12. What about large graphs? s t Are s and t connected?

  13. Brute-force algorithm? List all possible vertex sequences between s and t 2n such sequences Check if any is a path between s and t

  14. Algorithm motivation all

More Related