CS S-21 Connected Components 1

Similar documents
Aim: What is the Height and Co-Height functions of a Ferris Wheel?

Internal aggregation models on the comb

Modeling Visitor Movement in Theme Parks

The information from the digraph can be converted into matrix form (a dominance matrix) as below:

No b a g ga ge w i th o ut p a sse n ge r

Lesson 1: Introduction to Networks

Release Note

UC Berkeley Working Papers

Controlling the False Discovery Rate in Bayesian Network Structure Learning

Math 3 Polynomials Project

Your spending limit is $

Social Network Analysis

An Analytical Approach to the BFS vs. DFS Algorithm Selection Problem 1

SUPPLEMENT AUGUST CITATION PERFORMANCE CALCULATOR (CPCalc) MODEL THRU FM-S51-00 S51-1 U.S.

SUPPLEMENT 3 11 APRIL CITATION PERFORMANCE CALCULATOR (CPCalc) MODEL AND ON 510FM-S3-00 S3-1 U.S.

7 CONSERVATION OF LINEAR MOMENTUM II

Mr. Freeze. as viewed from the top of the ferris wheel:

Passenger Rebooking - Decision Modeling Challenge

> Amadeus Single View

6.0 JET ENGINE WAKE AND NOISE DATA. 6.2 Airport and Community Noise

= Coordination with Direct Communication

Meta-analysis: basic principles and methods

Study on Hotel Management Graduates Perceptions and Preferences of Jobs in Hotel Industry in Chennai City

Wingsuit Design and Basic Aerodynamics 2

Wheelchair Accessible Vehicles (WAVs)

6.0 JET ENGINE WAKE AND NOISE DATA. 6.2 Airport and Community Noise

ROLLER COASTER POLYNOMIALS Due: Thursday, March 30th

OF ROLLERCOASTERS LESSON PLAN. LESSON CONTENT: PRE TRIP LESSON This lesson is designed to be delivered prior your school visit to THORPE PARK Resort

How Frasca Supports Offshore Helicopter Pilot Training At Bristow Group

ROLLER COASTER POLYNOMIALS

Activity Template. Drexel-SDP GK-12 ACTIVITY. Subject Area(s): Sound Associated Unit: Associated Lesson: None

COURSE OUTLINE CREDITS CLASS HOURS LABORATORY HOURS

Results of Airborne Monitoring Survey by MEXT in Aichi, Aomori, Ishikawa, and Fukui Prefectures

Invasive Melanoma Mortality to Incidence Ratios by Local Health District in New South Wales

When being Weak is Brave: Privacy Issues in Recommender Systems

W O O D - B U R N I N G S T O V E S

Some of the numbered sections of the track are described to the right. The times correspond to a graph found on page 58.

GUEST TRAVELER INVITATION PROCESS GUIDE. Follow these steps to invite a guest traveler to book in Orbitz for Business (OFB):

Figure 1.1 St. John s Location. 2.0 Overview/Structure

Problem Set 3 Environmental Valuation

EASA Safety Information Bulletin

GOALS: WHAT CAMPERS WILL LEARN

Analyzing the Descending Flight of the Germanwings A320 4U9525 on

How do I transfer money from my Travel Fund/Trip Allowance to a trip?

Nav Specs and Procedure Design Module 12 Activities 8 and 10. European Airspace Concept Workshops for PBN Implementation

Operational Evaluation of a Flight-deck Software Application

Passenger Rebooking Decision Modeling Challenge

II. Terminology and Basic

COMMONWEALTH OF VIRGINIA STATE AIR POLLUTION CONTROL BOARD REGULATIONS FOR THE CONTROL AND ABATEMENT OF AIR POLLUTION

MiSP Topographic Maps Worksheet #1a SLOPE AND TOPOGRAPHIC CONTOURS

Aurizon Network Public Quarterly Performance Report. 4th Quarter 2017/18 April - June 2018

SWEN502 Foundations of Databases Session 2. Victoria University of Wellington, 2017, Term 2 Markus Luczak-Roesch

Learning Objectives 7.3 Flight Performance and Planning Flight Planning & Flight Monitoring

Aurizon Network Public Quarterly Performance Report 2nd Quarter 2017/18 October - December 2017

Master Minimum Equipment Lists/Minimum Equipment Lists. Amendment Summary PART-MMEL/MEL. Amendment No. Effective Date Subpart Paragraph

Parklands and Recreational Resources

Biodiversity Studies in Gorongosa

Zip-A-Dee-Doo-Dah. Grades: 4th and 5th Team Size: 1-3 competitors Duration: 30 minutes Supervisors: Anna Cronin, Tali Khain, Shwetha Rajaram

CESSNA CITATION IIB PW JT15D-4 INTRODUCTION. Runway Analysis provides the means to determine maximum allowable takeoff and landing weights based upon:

ELSA. Empirically grounded agent based models for the future ATM scenario. ELSA Project. Toward a complex network approach to ATM delays analysis

Wave Curtain Workroom Guide

SUPPLEMENT OCTOBER CITATION PERFORMANCE CALCULATOR (CPCalc) MODEL AND ON REVISION 8 68FM-S17-08

Tsunami Survey Results in the NPS and Reproduction Analysis Using Tsunami Inversion

Analysis and Evaluation of the Slugging Form of Ridesharing*

MiSP Topographic Maps Worksheet #1a L2

BUILDING LOCAL RUNWAY EXCURSION ACTION PLAN UNSTABILISED APPROACHES. Lisbon, 4 th Dec 2013

Completing a Constructed Travel Worksheet Authorization

Simplification Using Map Method

Flammability of Interior Materials

Simulating Airbags for ExoMars Project Using Grids for Competitive Advantage Where Is Your Performance Data?

TABLE 2-3. Basic Identities of Boolean Algebra T-6. Basic Identities of Boolean Algebra by Prentice-Hall, Inc.

USER GUIDE Cruises Section

Part 1. Part 2. airports100.csv contains a list of 100 US airports.

University of Colorado, Colorado Springs Mechanical & Aerospace Engineering Department. MAE 4415/5415 Project #1 Glider Design. Due: March 11, 2008

Diploma of Aeroskills (Avionics) MEA50115 CASR Part 66 B2 licence

Commercial Pilot Practical Test Briefing

Big Data: Architectures and Data Analytics

So Beauty on the Waters Stood

Freedom-to-operate search

Consideration will be given to other methods of compliance which may be presented to the Authority.

September Newsletter. Search for Ayios Georgios. Sharing experiences as we journey together

San Martin Boulevard over Riviera Bay Project Development & Environment (PD&E) Study Update PID A

Efficiency and Automation

Analysis of Centrality Measures of Airport Network of India

Application of Graph Theory in Transportation Networks

Heathrow Airport Property Rents Consultation Document

CAA TECHNICAL EXAMINATION PLAN. HQCAA/1137/010/RGLC Dated: December, 2014

DATA APPLICATION CATEGORY 25 FARE BY RULE

Project Sangam PASSAGE - ESS. Training / User Manual. IBM India Pvt. Ltd. GBS- Domestic Page 1 of 16

Modelling Transportation Networks with Octave

MEASUREMENT OF NAVY AND COAST GUARD VESSELS

AIS data. Marco Puts

Mathcad Prime 3.0. Curriculum Guide

MAT 115: Precalculus Mathematics Homework Exercises Textbook: A Graphical Approach to Precalculus with Limits: A Unit Circle Approach, Sixth Edition

CENTRAL TEXAS COLLEGE AIR AGENCY No. DU8S099Q SYLLABUS FOR AIRP 1451 INSTRUMENT GROUND SCHOOL Semester Hours Credit: 4_. Instructor: Office Hours:

CHAPTER 5 AEROPLANE PERFORMANCE OPERATING LIMITATIONS

AS001-BSS DIPLOMA IN INTERNATIONAL AIRLINE & TRAVEL MANAGEMENT ONE YEAR EXAMINATION NOVEMBER TIME: 3 Hours Marks: 100

New Approach to Search for Gliders in Cellular Automata

The effects of pushback delays on airport ground movement

MEASUREMENT OF ACCELERATION Pre-Lab. Name: Roster#

Transcription:

CS-0S- Connecte Components -0: Strongly Connecte Graph Directe Path rom every noe to every other noe Strongly Connecte -: Strongly Connecte Graph Directe Path rom every noe to every other noe Strongly Connecte -: Connecte Components Subgraph (subset o the vertices) that is strongly connecte. -: Connecte Components

CS-0S- Connecte Components Subgraph (subset o the vertices) that is strongly connecte. -: Connecte Components Subgraph (subset o the vertices) that is strongly connecte. -: Connecte Components Subgraph (subset o the vertices) that is strongly connecte. -6: Connecte Components Connecte components o the graph are the largest possible strongly connecte subgraphs I we put each vertex in its own component each component woul be (trivially) strongly connecte Those woul not be the connecte components o the graph unless there were no larger connecte subgraphs -: Connecte Components Calculating Connecte Components

CS-0S- Connecte Components Two verticesv anv are in the same connecte component i an only i: Directe path romv to v Directe path romv to v To in connecte components in irecte paths Use DFS -8: DFS Revisite We can keep track o the orer in which we visit the elements in a Depth-First Search For any vertex v in a DFS: [v] = Discovery time when the vertex is irst visite [v] = Finishing time when we have inishe with a vertex (an all o its chilren) -9: DFS Revisite class Ege { public int neighbor; public int next; } voi DFS(Ege G[], int vertex, boolean Visite[], int [], int []) { Ege tmp; Visite[vertex] = true; [vertex] = time++; or (tmp = G[vertex]; tmp!= null; tmp = tmp.next) { i (!Visite[tmp.neighbor]) DFS(G, tmp.neighbor, Visite); } [vertex] = time++; } -0: DFS Revisite To visit every noe in the graph: TraverseDFS(Ege G[]) { int i; boolean Visite = new boolean[g.length]; int = new int[g.length]; int v = new int[g.length]; time = ; or (i=0; i<g.length; i++) Visite[i] = alse; or (i=0; i<g.length; i++) i (!Visite[i]) DFS(G, i, Visite,, ); } -: DFS Example

CS-0S- Connecte Components -: DFS Example -: DFS Example -: DFS Example

CS-0S- Connecte Components -: DFS Example -6: DFS Example

CS-0S- Connecte Components 6 -: DFS Example -8: DFS Example

CS-0S- Connecte Components 6-9: DFS Example 6-0: DFS Example

CS-0S- Connecte Components 8 8 6 -: DFS Example 8 9 6 -: DFS Example

CS-0S- Connecte Components 9 0 8 9 6 -: DFS Example 0 8 9 6 -: DFS Example

CS-0S- Connecte Components 0 0 8 9 6 -: DFS Example 0 8 9 6-6: DFS Example 0 8 9 6

CS-0S- Connecte Components -: DFS Example 0 8 9 6-8: DFS Example 0 8 6 9 6-9: DFS Example

CS-0S- Connecte Components -0: DFS Example -: DFS Example

CS-0S- Connecte Components -: DFS Example -: DFS Example -: DFS Example

CS-0S- Connecte Components -: DFS Example 6-6: DFS Example 6

CS-0S- Connecte Components -: DFS Example 8 6-8: DFS Example 9 8 6-9: DFS Example

CS-0S- Connecte Components 6 0 9 8 6-0: DFS Example 0 9 8 6 -: DFS Example 0 9 8 6

CS-0S- Connecte Components -: DFS Example 0 9 8 6 -: DFS Example 0 9 8 6 -: DFS Example 0 9 8 6

CS-0S- Connecte Components 8 -: DFS Example 0 6 9 8 6-6: Using [] & [] Given two verticesv anv, what o we know i[v ] < [v ]? -: Using [] & [] Given two verticesv anv, what o we know i[v ] < [v ]? Either: -8: Using [] & [] Path romv tov Start romv Eventually visit v Finishv Finishv Given two verticesv anv, what o we know i[v ] < [v ]? Either: -9: Using [] & [] I[v ] < [v ]: Path romv tov No path romv tov Start romv Eventually inishv Start romv Eventually inishv Either a path romv tov, or no path romv tov I there is a path romv tov, then there must be a path romv tov

CS-0S- Connecte Components 9 [v ] < [v ] an a path romv tov v anv are in the same connecte component -0: Calculating paths Path romv tov ingi an only i there is a path romv tov in G T G T is the transpose og Gwith all eges reverse I ater DFS, [v ] < [v ] Run secon DFS ong T, starting romv, anv anv are in the same DFS spanning tree v anv must be in the same connecte component -: Connecte Components Run DFS ong, calculating [] times ComputeG T Run DFS ong T examining noes in inverse orer o inishing times rom irst DFS Any noes that are in the same DFS search tree ing T must be in the same connecte component -: Connecte Components Eg. -: Connecte Components Eg. 0 8 6 9 6 -: Connecte Components Eg.

CS-0S- Connecte Components 0 0 8 6 9 6 -: Connecte Components Eg. 0 8 6 9 6-6: Connecte Components Eg. -: Connecte Components Eg.

CS-0S- Connecte Components 0 6 9 8 6-8: Connecte Components Eg. 0 6 9 8 6-9: Connecte Components Eg. 0 6 9 8 6-60: Topological Sort

CS-0S- Connecte Components How coul we use DFS to o a Topological Sort? (Hint Use iscover an/or inish times) -6: Topological Sort How coul we use DFS to o a Topological Sort? (Hint Use iscover an/or inish times) (What oes it mean i noe x inishe beore noe y?) -6: Topological Sort How coul we use DFS to o a Topological Sort? Do DFS, computing inishing times or each vertex As each vertex is inishe, a to ront o a linke list This list is a vali topological sort