Give the parent, queue, BFI (breadth first index), and level arrays when BFS is applied to this graph starting at vertex 0. Process the neighbours of each.

Slides:



Advertisements
Similar presentations
Transforming graphs of functions
Advertisements

Every edge is in a red ellipse (the bags). The bags are connected in a tree. The bags an original vertex is part of are connected.
Graph Isomorphism Algorithms and networks. Graph Isomorphism 2 Today Graph isomorphism: definition Complexity: isomorphism completeness The refinement.
End Topics Approximate Vertex Cover Approximate TSP Tour Computation of FFT P, NP, NP Complete, NP hard.
1 Section 9.4 Spanning Trees. 2 Let G be a simple graph. A spanning subtree of G is a subgraph of G containing every vertex of G –must be connected; contains.
Graph Algorithms: Minimum Spanning Tree We are given a weighted, undirected graph G = (V, E), with weight function w:
Lists A list is a finite, ordered sequence of data items. Two Implementations –Arrays –Linked Lists.
A tree is a simple graph satisfying: if v and w are vertices and there is a path from v to w, it is a unique simple path. a b c a b c.
CS 206 Introduction to Computer Science II 11 / 03 / 2008 Instructor: Michael Eckmann.
Straight line drawings of planar graphs – part I Roeland Luitwieler.
CS 206 Introduction to Computer Science II 11 / 09 / 2009 Instructor: Michael Eckmann.
CISC220 Fall 2009 James Atlas Nov 13: Graphs, Line Intersections.
The Travelling Salesman Algorithm A Salesman has to visit lots of different stores and return to the starting base On a graph this means visiting every.
Quadratic Functions Unit Objectives: Solve a quadratic equation. Graph/Transform quadratic functions with/without a calculator Identify function attributes:
Unit 2 – Quadratic, Polynomial, and Radical Equations and Inequalities Chapter 5 – Quadratic Functions and Inequalities 5.7 – Analyzing Graphs of Quadratic.
Lecture 8 Tree.
Lecture 14: Graph Theory I Discrete Mathematical Structures: Theory and Applications.
1 1.Write down the permutations that are the automorphisms of this graph. 2.Write the cycle structure notation for each of the automorphisms. 3.How many.
Transformations LESSON 26POWER UP FPAGE 169. Transformations The new image is read as “A prime, B prime, C prime”
Translations Unit 2 Section 1. What is a translation? Moving a shape, without rotating or flipping it. "Sliding". The shape still looks exactly the same,
Indexing and Mining Free Trees Yun Chi, Yirong Yang, Richard R. Muntz Department of Computer Science University of California, Los Angeles, CA {
UNIT 7: TRANSFORMATIONS Final Exam Review. TOPICS TO INCLUDE  Types of Transformations  Translations  Reflections  Rotations  Dilations  Composition.
Spanning Trees Alyce Brady CS 510: Computer Algorithms.
Representing Graphs Depth First Search Breadth First Search Graph Searching Algorithms.
Introduction to Algorithms
Breadth-First Search (BFS)
Equation for a Vertical Line and a Horizontal Line
CS 201: Design and Analysis of Algorithms
Lesson 13.3 graphing square root functions
Source Code for Data Structures and Algorithm Analysis in C (Second Edition) – by Weiss
Conventions Red edges: traversed tree edges White edges: back edges
Csc 2720 Instructor: Zhuojun Duan
Lecture 12 Graph Algorithms
Algorithms and networks
Unweighted Shortest Path Neil Tang 3/11/2010
CSC 172 DATA STRUCTURES.
Notes 7-2 The Coordinate Plane.
Graphs Representation, BFS, DFS
Graphs Chapter 13.
Graphs Chapter 15 explain graph-based algorithms Graph definitions
Lesson 5-1 Graphing Absolute Value Functions
Unit 1: Transformations
Rev Graph Review Parent Functions that we Graph Linear:
Algorithms and networks
Lecture 13 CSE 331 Oct 1, 2012.
Transformation Notes 6.07.
Unit 6: Transformations
Graphs Part 2 Adjacency Matrix
Lecture 13 CSE 331 Sep 27, 2017.
Subgraphs, Connected Components, Spanning Trees
2.7 Graphing Absolute Value Functions
Domain, Range, and Symmetry
Representing binary trees with lists
Lecture 12 CSE 331 Sep 26, 2011.
A Introduction to Computing II Lecture 13: Trees
CSCE 668 DISTRIBUTED ALGORITHMS AND SYSTEMS
2.7 Graphing Absolute Value Functions
2.1 Transformations of Quadratic Functions
Breadth-First Search L0 L1 L2 C B A E D F Breadth-First Search
6.4a Transformations of Exponential Functions
Lecture 11 CSE 331 Sep 21, 2017.
Lecture 12 CSE 331 Sep 22, 2014.
Lecture 11 CSE 331 Sep 22, 2016.
6.4c Transformations of Logarithmic functions
The graph below is a transformation of which parent function?
Lecture 15 CSE 331 Oct 4, 2010.
Milestone Review Big Ideas Note Cards.
Ellipse.
Graph Search in C++ Andrew Lindsay.
Lecture 11 Graph Algorithms
Presentation transcript:

Give the parent, queue, BFI (breadth first index), and level arrays when BFS is applied to this graph starting at vertex 0. Process the neighbours of each vertex in numerical order.

Graph Isomorphism The graph isomorphism problem has no known polynomial time algorithm which works for an arbitrary graph. Canonical form: If two graphs are isomorphic, their canonical forms must be the same, otherwise, they must be different. For trees and planar graphs, a canonical form can be computed in polynomial time.

Which graphs are isomorphic to graph B? Petersen Graph ? ? ?

Planar graphs: Isomorphic graphs can have planar embeddings that are not isomorphic.

Automorphism: Isomorphism from an object to itself Automorphism: Isomorphism from an object to itself. How many automorphisms does this embedding have?

The identity automorphism.

Flip over a horizontal axis.

Rotate 180º

Flip over the vertical axis.

Rotate 180º Then flip over a horizonal axis.

The original embedding. Identity automorphism: Two line notation: 0 1 2 3 4 5 Cycle structure notation: (0) (1)(2)(3)(4)(5)

Two line notation? Cycle structure notation?

Two line notation: 0 1 2 3 4 5 0 1 5 4 3 2 Cycle structure notation: (0)(1) (25)(34)

Two line notation? Cycle structure notation?

Two line notation: 0 1 2 3 4 5 1 0 4 5 2 3 Cycle structure notation: (01) (24)(35)

Two line notation? Cycle structure notation?

Two line notation: 0 1 2 3 4 5 1 0 3 2 4 4 Cycle structure notation: (01) (23)(45)

Permutations that are automorphisms: horizontal flip identity (0)(1) (2)(3)(4)(5) (0)(1)(25)(34) rotation vertical flip (01) (23)(45) (01) (24)(35)

The automorphism form a group: The identity is always included. If p is an automorphism, then so is p-1. If p and q are automorphisms, then so is p * q. What is: rotate 180º horizonal flip (01) (24)(35) * (0)(1)(25)(34)

The automorphism form a group: The identity is always included. If p is an automorphism, then so is p-1. If p and q are automorphisms, then so is p * q. What is: rotation horizonal flip (01)(24)(35) * (0)(1)(25)(34) = (01)(23)(45) vertical flip

identity vertical flip rotation Then flip over a horizonal axis.

Two graphs that are isomorphic but their embeddings are not:

Flipping this over:

If an embedding has an automorphism to its flip then the embedding is not chiral.

If an embedding has no automorphisms to its flip then the embedding is chiral. Chiral embeddings have a sense of clickwise.

Clockwise_BFS(r, f, d): Choose a root vertex r. Choose a first child vertex f. Choose a direction d (clockwise or countercloswise) Do BFS subject to: The children of each vertex are visited in the chosen order starting with f for the root or otherwise, starting with the BFS parent.

r d f