Can Dijkstra’s Algorithm be modified in an obvious way to give the longest path in a graph? a). Yes b). No c). I have absolutely no idea.

Slides:



Advertisements
Similar presentations
Connectivity - Menger’s Theorem Graphs & Algorithms Lecture 3.
Advertisements

 Theorem 5.9: Let G be a simple graph with n vertices, where n>2. G has a Hamilton circuit if for any two vertices u and v of G that are not adjacent,
If R = {(x,y)| y = 3x + 2}, then R -1 = (1) x = 3y + 2 (2) y = (x – 2)/3 (3) {(x,y)| y = 3x + 2} (4) {(x,y)| y = (x – 2)/3} (5) {(x,y)| y – 2 = 3x} (6)
Chapter 8 Topics in Graph Theory
EMIS 8374 Vertex Connectivity Updated 20 March 2008.
Graph Traversals Visit vertices of a graph G to determine some property: Is G connected? Is there a path from vertex a to vertex b? Does G have a cycle?
Chapter 9 Connectivity 连通度. 9.1 Connectivity Consider the following graphs:  G 1 : Deleting any edge makes it disconnected.  G 2 : Cannot be disconnected.
CMSC 341 Graphs 2. 2 Weighted Shortest Path Problem Single-source shortest-path problem: Given as input a weighted graph, G = (V,E), and a distinguished.
Data Structures, Spring 2004 © L. Joskowicz 1 Data Structures – LECTURE 14 Strongly connected components Definition and motivation Algorithm Chapter 22.5.
A b c d e f g h j i k Graph G is shown. Which of the following is a trail but not a path? 1). acdefhg 2). hfdcbdfe 3). ghfdcbde 4). acdegik 5). None of.
Section 2.1 Euler Cycles Vocabulary CYCLE – a sequence of consecutively linked edges (x 1,x2),(x2,x3),…,(x n-1,x n ) whose starting vertex is the ending.
R. Bar-Yehuda © 1 קומבינטוריקה למדעי - המחשב – הרצאה #17 Chapter 2: TREES מבוסס על הספר : S. Even, "Graph Algorithms",
What is the first line of the proof? a). Assume G has an Eulerian circuit. b). Assume every vertex has even degree. c). Let v be any vertex in G. d). Let.
A b c d e f g h j i k Graph G is shown. How many blocks does G have?
What is the next line of the proof? a). Let G be a graph with k vertices. b). Assume the theorem holds for all graphs with k+1 vertices. c). Let G be a.
Greedy Algorithms Reading Material: Chapter 8 (Except Section 8.5)
Is the following graph Hamiltonian- connected from vertex v? a). Yes b). No c). I have absolutely no idea v.
What is the best way to start? 1.Plug in n = 1. 2.Factor 6n 2 + 5n Let n be an integer. 4.Let n be an odd integer. 5.Let 6n 2 + 5n + 4 be an odd.
Applications of Depth-First Search
How many non-isomorphic tournaments with 10 vertices are there? a). 5 b). 10 c). 362,880 d). Over nine million.
Happy Pi Day!!!! Come celebrate – Winston Room, 12 Friday.
Is C 6 2-critical? a). Yes b). No c). I have absolutely no idea.
Data Structures, Spring 2006 © L. Joskowicz 1 Data Structures – LECTURE 14 Strongly connected components Definition and motivation Algorithm Chapter 22.5.
Greedy Algorithms Like dynamic programming algorithms, greedy algorithms are usually designed to solve optimization problems Unlike dynamic programming.
MATH 310, FALL 2003 (Combinatorial Problem Solving) Lecture 5,Wednesday, September 10.
All-Pairs Shortest Paths
The Mathematics of Networks Chapter 7. Trees A tree is a graph that –Is connected –Has no circuits Tree.
What is the next line of the proof? a). Assume the theorem holds for all graphs with k edges. b). Let G be a graph with k edges. c). Assume the theorem.
Hardness Results for Problems
What is the first line of the backwards direction of this proof? 1.Assume G is a block. 2.Assume every pair of vertices lie on a common cycle. 3.Assume.
The Shortest Path Problem
Introduction to Graph Theory
Using Dijkstra’s Algorithm to Find a Shortest Path from a to z 1.
A Shortest Path Algorithm. Motivation Given a connected, positive weighted graph Find the length of a shortest path from vertex a to vertex z.
Spring 2015 Mathematics in Management Science Euler’s Theorems Euler Circuits & Paths ECT & EPT Burning Bridges Fleury’s Algorithm.
Euler Paths & Euler Circuits
7.1 and 7.2: Spanning Trees. A network is a graph that is connected –The network must be a sub-graph of the original graph (its edges must come from the.
5.4 Graph Models (part I – simple graphs). Graph is the tool for describing real-life situation. The process of using mathematical concept to solve real-life.
Introduction to Graph Theory
Introduction to Graph Theory
Aim: What is an Euler Path and Circuit?
Chapter 6 Connectivity and Flow 大葉大學 資訊工程系 黃鈴玲
Connectivity1 Connectivity and Biconnectivity connected components cutvertices biconnected components.
AND.
Eulerian Paths and Cycles. What is a Eulerian Path Given an graph. Find a path which uses every edge exactly once. This path is called an Eulerian Path.
© 2010 Pearson Prentice Hall. All rights reserved. CHAPTER 15 Graph Theory.
Copyright 2013, 2010, 2007, Pearson, Education, Inc. Section 14.2 Euler Paths, and Euler Circuits.
 Quotient graph  Definition 13: Suppose G(V,E) is a graph and R is a equivalence relation on the set V. We construct the quotient graph G R in the follow.
Walks, Paths and Circuits. A graph is a connected graph if it is possible to travel from one vertex to any other vertex by moving along successive edges.
Introduction to Graph Theory
5-color theorem 林典濤 : PPT, Lecture note 陳咨翰 : Presentation.
1 Assignment #3 is posted: Due Thursday Nov. 15 at the beginning of class. Make sure you are also working on your projects. Come see me if you are unsure.
Graphs Rosen, Chapter 8. NOT ONE OF THESE! One of these!
Trees.
What is the next line of the proof?
COMP 6/4030 ALGORITHMS Prim’s Theorem 10/26/2000.
Graph Algorithm.
Can you draw this picture without lifting up your pen/pencil?
CS200: Algorithm Analysis
Network Flow 2016/04/12.
Bridges and Articulation Points
Chapter 23 Minimum Spanning Tree
Trees.
Problem Solving 4.
Algorithms (2IL15) – Lecture 7
Euler and Hamilton Paths
Sorting and Divide-and-Conquer
CMSC 341 Graphs 2.
Warm Up – Tuesday Find the critical times for each vertex.
The Complexity of Approximation
Presentation transcript:

Can Dijkstra’s Algorithm be modified in an obvious way to give the longest path in a graph? a). Yes b). No c). I have absolutely no idea

What is k(2K 3  N 3 )?

a b c d e f g h j i k m l p o n What is d(c,j)?

a b c d e f g h j i k m l p o n What is diam(G)? 1). 12). 23). 44). 5 5). 76). 87). 98). 10 9). 1110). 13

Given the statement of this theorem, which of the following are possible? 1). G and are both connected. 2). G and are both disconnected. 3). One is connected and one is disconnected. 4). 1 and 2 are possible. 5). 1 and 3 are possible. 6). 2 and 3 are possible. 7). All three are possible.

What is the first line of the proof? 1). Assume G is disconnected. 2). Assume is connected. 3). Assume if G is disconnected, then is connected. 4). Assume G and are connected.

What is the second line of the proof? 1). Assume there is a u-v path in G. 2). Assume is connected. 3). Assume if G is disconnected, then is connected. 4). Assume G and are connected. 5). Let u and v be any two vertices in.

a b c d e f g h j i k m l p o n How many cut-vertices does G have?

a b c d e f g h j i k m l p o n How many bridges does G have?

How many bridges does P 6 have?