Module3_08 - Graph Algorithms This week Graph terminology...

Info iconThis preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon
9/12/2008 M KUMAR CSE5311 1 Graph Algorithms This week Graph terminology Stacks and Queues Breadth-first-search Depth-first-search Connected Components Analysis of BFS and DFS Algorithms Chapter 3 Algorithm Design Kleinberg and Tardos
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
9/12/2008 M KUMAR CSE5311 2 Course Syllabus Review of Asymptotic Analysis and Growth of Functions, Recurrences Sorting Algorithms Graphs and Graph Algorithms. Greedy Algorithms : Minimum spanning tree,Union-Find algorithms, Kruskal's Algorithm, Clustering, Huffman Codes, and Multiphase greedy algorithms. Dynamic Programming : Shortest paths, negative cycles, matrix chain multiplications, sequence alignment, RNA secondary structure, application examples. Network Flow : Maximum flow problem, Ford-Fulkerson algorithm, augmenting paths, Bipartite matching problem, disjoint paths and application problems . NP and Computational tractability : Polynomial time reductions; The Satisfiability problem; NP-Complete problems; and Extending limits of tractability. Approximation Algorithms, Local Search and Randomized Algorithms
Background image of page 2
9/12/2008 M KUMAR CSE5311 3 Graph Preliminaries Examples of modeling by Graphs Darwin Adelaide Brisbane Sydney Melbourne Perth Module 1 Module3 Module 2 Module 4 Module 5 Module 6 Module 7
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
9/12/2008 M KUMAR CSE5311 4 Graph Terminologies A Graph consists of a set ' V ' of vertices (or nodes) and a set ' E ' of edges (or links). A graph can be directed or undirected. Edges in a directed graph are ordered pairs. The order between the two vertices is important. Example: ( S,P ) is an ordered pair because the edge starts at S and terminates at P . The edge is unidirectional Edges of an undirected graph form unordered pairs. A multigraph is a graph with possibly several edges between the same pair of vertices. Graphs that are not multigraphs are called simple graphs.
Background image of page 4
9/12/2008 M KUMAR CSE5311 5 Graph Terminologies (Contd) G1: Undirected Graph Q R T P S G2: Directed Graph D B A E C
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
9/12/2008 M KUMAR CSE5311 6 Graph Terminologies The degree d ( v ) of a vertex v is the number of edges incident to v . d (A) = three, d (D) = two In directed graphs, indegree is the number of incoming edges at the vertex and outdegree is the number of outgoing edges from the vertex. The indegree of P is 2, its outdegree is 1. The indegree of Q is 1, its outdegree is 1. D B A E C Q R T P S
Background image of page 6
9/12/2008 M KUMAR CSE5311 7 Paths and Cycles A path from vertex v 1 to v k is a sequence of vertices v 1 ,v 2 , …, v k that are connected by edges ( v 1 ,v 2 ), ( v 2 ,v 3 ), …, ( v k-1 ,v k ). Path from D to E: (D,A,B,E) Edges in the path: (D,A), (A,B), (B,E) A path is simple if each vertex in it appears only once. DABE is a simple path.
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

This document was uploaded on 11/18/2009.

Page1 / 67

Module3_08 - Graph Algorithms This week Graph terminology...

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online