Chapter 22: Elementary Graph Algorithms II

Size: px
Start display at page:

Download "Chapter 22: Elementary Graph Algorithms II"

Transcription

1 Chape 22: Elemena Gaph Algoihm II 1

2 Abo hi lece Deph Fi Seach DFS Tee and DFS Foe Popeie of DFS Paenhei heoem (e impoan) Whie-pah heoem (e efl) 2

3 Deph Fi Seach (DFS) An alenaie algoihm o find all eice eachable fom a paicla oce ee Idea: Eploe a banch a fa a poible befoe eploing anohe banch Eail done b ecion o ack 3

4 DFS() The DFS Algoihm { Mak a dicoeed ; } hile ( ha niied neighbo ) DFS(); Mak a finihed ; The hile-loop eploe a banch a fa a poible befoe he ne banch 4

5 Eample ( = oce) finihed dicoeed diecion of edge hen ne node i dicoeed 5

6 Eample ( = oce) finihed dicoeed diecion of edge hen ne node i dicoeed 6

7 Eample ( = oce) finihed dicoeed diecion of edge hen ne node i dicoeed 7

8 Eample ( = oce) finihed dicoeed diecion of edge hen ne node i dicoeed 8

9 Eample ( = oce) finihed dicoeed diecion of edge hen ne node i dicoeed 9

10 Eample ( = oce) Done hen i dicoeed The dieced edge fom a ee ha conain all node eachable fom Called DFS ee of 10

11 Genealizaion J like BFS, DFS ma no ii all he eice of he inp gaph G, becae : G ma be diconneced G ma be dieced, and hee i no dieced pah fom o ome ee In mo applicaion of DFS (a a boine), once DFS ee of i obained, e ill conine o appl DFS algoihm on an niied eice 11

12 Genealizaion (Eample) Sppoe he inp gaph i dieced 12

13 Genealizaion (Eample) 1. Afe appling DFS on 13

14 Genealizaion (Eample) 2. Then, afe appling DFS on 14

15 Genealizaion (Eample) 3. Then, afe appling DFS on 15

16 Genealizaion (Eample) 4. Then, afe appling DFS on 16

17 Genealizaion (Eample) 5. Then, afe appling DFS on 17

18 Genealizaion (Eample) Rel : a collecion of ooed ee called DFS foe 18

19 Pefomance Since no ee i dicoeed ice, and each edge i iied a mo ice (h?) Toal ime: O( V + E ) A menioned, apa fom ecion, e can alo pefom DFS ing a LIFO ack (Do o kno ho?) 19

20 Who ill be in he ame ee? Becae e can onl eploe banche in an niied node DFS() ma no conain all node eachable b in i DFS ee E.g, in he peio n, can each,,, b ee doe no conain an of hem Can e deemine ho ill be in he ame ee? 20

21 Who ill be in he ame ee? Ye, e ill oon ho ha b hie-pah heoem, e can deemine ho ill be in he ame ee a a he ime hen DFS i pefomed on Befoe ha, e ill define he dicoe ime and finihing ime fo each node, and ho ineeing popeie of hem 21

22 Dicoe and Finihing Time When he DFS algoihm i n, le conide a global ime ch ha he ime inceae one ni : hen a node i dicoeed, o hen a node i finihed (i.e., finihed eploing all niied neighbo) Each node ecod : d() = he ime hen i dicoeed, and f() = he ime hen i finihed 22

23 Dicoe and Finihing Time 12/15 1/16 4/9 5/8 13/14 2/11 3/10 6/7 In o fi eample (ndieced gaph) 23

24 Dicoe and Finihing Time 13/14 1/6 7/10 8/9 15/16 2/5 3/4 11/12 In o econd eample (dieced gaph) 24

25 Nice Popeie Lemma: Fo an node, d() f() Lemma: Fo node and, d(), d(), f(), f() ae all diinc Theoem (Paenhei Theoem): Le and be o node ih d() d(). Then, eihe 1. d() d() f() f() [conain], o 2. d() f() d() f() [dijoin] 25

26 Poof of Paenhei Theoem Conide he ime hen i dicoeed Since i dicoeed befoe, hee ae o cae concening he a of : Cae 1: ( i no finihed) Thi implie i a decendan of f() f() (h?) Cae 2: ( i finihed) f() d() 26

27 Coolla Coolla: i a (pope) decendan of if and onl if d() d() f() f() Poof: i a (pope) decendan of d() d() and f() f() d() d() f() f() 27

28 Whie-Pah Theoem Theoem: B he ime hen DFS i pefomed on, fo an a DFS i done, he decendan of ae he ame, and he ae eacl hoe node eachable b ih niied (hie) node onl E.g., If e pefom DFS() no, ill he decendan of ala be he ame e of node? 28

29 Poof (Pa 1) Sppoe ha i a decendan of Le P = (, 1, 2,, k, ) be he dieced pah fom o in DFS ee of Then, apa fom, each node on P m be dicoeed afe The ae all niied b he ime e pefom DFS on Th, a hi ime, hee ei a pah fom o ih niied node onl 29

30 Poof (Pa 2) So, ee decendan of i eachable fom ih niied node onl To complee he poof, i emain o ho he conee : An node eachable fom ih niied node onl become decendan i alo e (We hall poe hi b conadicion) 30

31 Poof (Pa 2) Sppoe on cona he conee i fale Then, hee ei ome, eachable fom ih niied node onl, doe no become decendan If moe han one choice of, le be one ch ee cloe o d() f() d() f() EQ.1 31

32 Poof (Pa 2) Le P = (, 1, 2,, k, ) be an pah fom o ing niied node onl B o choice of (cloe one), all 1, 2,, k become decendan Thi implie: d() d( k ) f( k ) f() Combining ih EQ.1, e hae d( k ) f( k ) d() f() Handle pecial cae: hen = k 32

33 Poof (Pa 2) Hoee, ince hee i an edge (no mae ndieced o dieced) fom k o, if d( k ) d(), hen e m hae d() f( k ) (h??) Coneqenl, i conadic ih : d( k ) f( k ) d() f() Poof complee 33

34 Claificaion of Tee Edge Afe a DFS poce, e can claif he edge of a gaph ino fo pe : 1. Tee : Edge in he DFS foe 2. Back : Fom decendan o anceo hen eploed (inclde elf loop) 3. Foad : Fom anceo o decendan hen eploed (eclde ee edge) 4. Co : Ohe (no anceo-decendan elaion) 34

35 Eample Sppoe he inp gaph i dieced 35

36 Eample Sppoe hi i he DFS foe obained C B F C C Can o claif he pe of each edge? 36

37 Eample Sppoe he DFS foe i diffeen no C B C C C Can o claif he pe of each edge? 37

38 Eample Sppoe he inp gaph i ndieced 38

39 Eample Sppoe hi i he DFS foe obained B B Can o claif he pe of each edge? 39

40 Edge in Undieced Gaph Theoem: Afe DFS of an ndieced gaph, ee edge i eihe a ee edge o a back edge Poof: Le (,) be an edge. Sppoe i dicoeed fi. Then, ill become decenden (hie-pah) o ha f() f() If dicoe (,) i ee edge Ele, (,) i eploed afe dicoeed Then, (,) m be eploed fom becae f() f() (,) i back edge 40

41 Homeok Eecie: , ,

CS4311 Design and Analysis of Algorithms. Lecture 23: Elementary Graph Algorithms II

CS4311 Design and Analysis of Algorithms. Lecture 23: Elementary Graph Algorithms II CS4311 Deign and Anali of Algoihm Lece 23: Elemena Gaph Algoihm II 1 Abo hi lece Deph Fi Seach DFS Tee and DFS Foe Popeie of DFS Paenhei heoem (e impoan) Whie-pah heoem (e efl) 2 Deph Fi Seach (DFS) An

More information

Strongly Connected Components. Uses for SCC s. Two Simple SCC Algorithms. Directed Acyclic Graphs

Strongly Connected Components. Uses for SCC s. Two Simple SCC Algorithms. Directed Acyclic Graphs CSE Intoduction to Algoithms Depth Fist Seach and Stongly Connected Components W.L. Ruzzo, Summe 00 Undiected Depth-Fist Seach It s not just fo tees DFS() back edge tee edge if maked then etun; mak ; #

More information

Undirected Depth-First Search. CSE 421 Introduction to Algorithms. Undirected Depth-First Search. Directed Depth First Search

Undirected Depth-First Search. CSE 421 Introduction to Algorithms. Undirected Depth-First Search. Directed Depth First Search CSE Intoduction to Algoithms Undiected Depth-Fist Seach It s not just fo tees Depth Fist Seach and Stongly Connected Components DFS() back edge tee edge if maked then etun; mak ; # := ++count; fo all edges

More information

RULES OF DIFFERENTIATION LESSON PLAN. C2 Topic Overview CALCULUS

RULES OF DIFFERENTIATION LESSON PLAN. C2 Topic Overview CALCULUS CALCULUS C Topic Overview C RULES OF DIFFERENTIATION In pracice we o no carry ou iffereniaion from fir principle (a ecribe in Topic C Inroucion o Differeniaion). Inea we ue a e of rule ha allow u o obain

More information

Consider an initially straight beam as shown: E= MPa P2 P3. We would like to bring the free ends of the beam together to form a ring, as shown:

Consider an initially straight beam as shown: E= MPa P2 P3. We would like to bring the free ends of the beam together to form a ring, as shown: Poblem decipion Poblem 58: Bending of a beam ino a Möbiu ip uing an alignmen elemen Conide an iniially aigh beam a hown: All lengh in mm E=207000 MPa Co-ecion (no dawn o cale) P1 P2 P3 10 100 100 0.1 We

More information

Computer Vision - Histogram Processing. Dr. S. Das IIT Madras, CHENNAI - 36

Computer Vision - Histogram Processing. Dr. S. Das IIT Madras, CHENNAI - 36 Comute Viion - Hitogam Poceing D. S. Da IIT Mada, CHENNAI - 36 HISTOGRAM In a gay level image the obabilitie aigned to each gay level can be given by the elation: n, N Inut image,,2...l - - The nomalized

More information

Solutions by Artem Gritsenko, Ahmedul Kabir, Yun Lu, and Prof. Ruiz Problem I. By Artem Gritsenko, Yun Lu, and Prof. Ruiz

Solutions by Artem Gritsenko, Ahmedul Kabir, Yun Lu, and Prof. Ruiz Problem I. By Artem Gritsenko, Yun Lu, and Prof. Ruiz CS3 Algorithm. B Term 3. Homework 5 Soltion Soltion b Artem Gritenko, Ahmedl Kabir, Yn L, and Prof. Riz Problem I. B Artem Gritenko, Yn L, and Prof. Riz a. Algorithm. KNAPSACK (,,,,,,, ) # i the knapack

More information

Flow graph/networks MAX FLOW APPLICATIONS. Flow constraints. Max flow problem 4/26/12

Flow graph/networks MAX FLOW APPLICATIONS. Flow constraints. Max flow problem 4/26/12 4// low graph/nework MX LOW PPLIION 30, pring 0 avid Kauchak low nework direced, weighed graph (V, ) poiive edge weigh indicaing he capaciy (generally, aume ineger) conain a ingle ource V wih no incoming

More information

CS 450: COMPUTER GRAPHICS QUATERNIONS SPRING 2016 DR. MICHAEL J. REALE

CS 450: COMPUTER GRAPHICS QUATERNIONS SPRING 2016 DR. MICHAEL J. REALE CS 45: COMPUTER GRAPHICS QUATERNIONS SPRING 6 DR. MICHAEL J. REALE http://common.ikimedia.og/iki/fi le%3awilliam_roan_hamilton_pot ait_oal_combined.png INTRODUCTION Quatenion inented b Si William Roan

More information

CS 548: COMPUTER GRAPHICS QUATERNIONS SPRING 2015 DR. MICHAEL J. REALE

CS 548: COMPUTER GRAPHICS QUATERNIONS SPRING 2015 DR. MICHAEL J. REALE CS 548: COMPUTER GRAPHICS QUATERNIONS SPRING 5 DR. MICHAEL J. REALE http://common.ikimedia.og/iki/fi le%3awilliam_roan_hamilton_pot ait_oal_combined.png INTRODUCTION Quatenion inented b Si William Roan

More information

Structural counter abstraction

Structural counter abstraction Srucural couner abracion Proving fair-erminaion of deph bounded yem Khiij Banal 1 wih Eric Kokinen 1, Thoma Wie 1, Damien Zufferey 2 1 New York Univeriy 2 IST Auria March 18, 2013 TACAS, Rome, Ialy Inroducion

More information

K-Nearest Neighbors Algorithm: Prediction and Classification

K-Nearest Neighbors Algorithm: Prediction and Classification K-Neaet Neighbo Algoithm: Peiction an Claification Pof. Thoma B. Fomb Depatment of Economic Southen Methoit Univeit Dalla, TX 7575 Febua 8 A NONPARAMETRIC METHOD The K-Neaet Neighbo (K-NN algoithm i a

More information

Outline. CS38 Introduction to Algorithms 5/8/2014. Network flow. Lecture 12 May 8, 2014

Outline. CS38 Introduction to Algorithms 5/8/2014. Network flow. Lecture 12 May 8, 2014 /8/0 Ouline CS8 Inroducion o Algorihm Lecure May 8, 0 Nework flow finihing capaciy-caling analyi Edmond-Karp, blocking-flow implemenaion uni-capaciy imple graph biparie maching edge-dijoin pah aignmen

More information

where f(x, y): input image, g(x, y): processed image, and T: operator Or: s = T(r), where r: input pixel, and s: output pixel

where f(x, y): input image, g(x, y): processed image, and T: operator Or: s = T(r), where r: input pixel, and s: output pixel 3 Intenit Tanfomation and Spatial Filteing - Intenit tanfomation Change the intenit of each piel in ode to enhance the image: g, T[f, ], whee f, : input image, g, : poceed image, and T: opeato O: T, whee

More information

6.8 Shortest Paths. Chapter 6. Dynamic Programming. Shortest Paths: Failed Attempts. Shortest Paths

6.8 Shortest Paths. Chapter 6. Dynamic Programming. Shortest Paths: Failed Attempts. Shortest Paths 1 Chaper.8 Shore Pah Dynamic Programming Slide by Kein Wayne. Copyrigh 5 Pearon-Addion Weley. All righ reered. Shore Pah Shore Pah: Failed Aemp Shore pah problem. Gien a direced graph G = (V, E), wih edge

More information

Characterization of Unlabeled Level Planar Graphs

Characterization of Unlabeled Level Planar Graphs Characerizaion of Unlaeled Leel Planar Graph J. Joeph Foler and Sephen G. Kooro Deparmen of Comper Science, Unieri of Arizona {jfoler,kooro}@c.arizona.ed Arac. We preen he e of planar graph ha ala hae

More information

DIGITAL LOGIC WITH VHDL (Fall 2013) Unit 4

DIGITAL LOGIC WITH VHDL (Fall 2013) Unit 4 DIGITAL LOGIC WITH VHDL (Fall 2013) Unit 4 Integer DATA TYPE STRUCTURAL DESCRIPTION Hierarchical deign: port-map, for-generate, ifgenerate. Eample: Adder, comparator, multiplier, Look-up Table, Barrel

More information

DEFINITION OF THE LAPLACE TRANSFORM

DEFINITION OF THE LAPLACE TRANSFORM 74 CHAPER 7 HE LAPLACE RANSFORM 7 DEFINIION OF HE LAPLACE RANSFORM REVIEW MAERIAL Improper inegral wih infinie limi of inegraio Inegraion y par and parial fracion decompoiion INRODUCION In elemenary calculu

More information

4. Minimax and planning problems

4. Minimax and planning problems CS/ECE/ISyE 524 Inroducion o Opimizaion Spring 2017 18 4. Minima and planning problems ˆ Opimizing piecewise linear funcions ˆ Minima problems ˆ Eample: Chebyshev cener ˆ Muli-period planning problems

More information

Efficient Execution Path Exploration for Detecting Races in Concurrent Programs

Efficient Execution Path Exploration for Detecting Races in Concurrent Programs IAENG Intenational Jounal of Compute Science, 403, IJCS_40_3_02 Efficient Execution Path Exploation fo Detecting Races in Concuent Pogams Theodous E. Setiadi, Akihiko Ohsuga, and Mamou Maekaa Abstact Concuent

More information

Maximum Flows: Polynomial Algorithms

Maximum Flows: Polynomial Algorithms Maximum Flow: Polynomial Algorihm Algorihm Augmening pah Algorihm - Labeling Algorihm - Capaciy Scaling Algorihm - Shore Augmening Pah Algorihm Preflow-Puh Algorihm - FIFO Preflow-Puh Algorihm - Highe

More information

University of Waterloo CS240 Winter 2018 Assignment 4 Due Date: Wednesday, Mar. 14th, at 5pm

University of Waterloo CS240 Winter 2018 Assignment 4 Due Date: Wednesday, Mar. 14th, at 5pm Univesit of Wateloo CS Winte Assinment Due Date: Wednesda, Ma. th, at pm vesion: -- : Please ead the uidelines on sumissions: http://.student.cs.uateloo.ca/ ~cs//uidelines.pdf. This assinment contains

More information

Pipes, connections, channels and multiplexors

Pipes, connections, channels and multiplexors Pipes, connections, channels and multiplexos Fancisco J. Ballesteos ABSTRACT Channels in the style of CSP ae a poeful abstaction. The ae close to pipes and connections used to inteconnect system and netok

More information

the marginal product. Using the rule for differentiating a power function,

the marginal product. Using the rule for differentiating a power function, 3 Augu 07 Chaper 3 Derivaive ha economi ue 3 Rule for differeniaion The chain rule Economi ofen work wih funcion of variable ha are hemelve funcion of oher variable For example, conider a monopoly elling

More information

IP MULTICAST. Adiseshu Hari, T. V. Lakshman and Gordon Wilfong Nokia Bell Labs

IP MULTICAST. Adiseshu Hari, T. V. Lakshman and Gordon Wilfong Nokia Bell Labs IP MULTICAST Adiseshu Hai, T. V. Lakshman and Godon Wilfong Nokia DIMACS Wokshop on Algoithms fo Data Cente Netwoks Rutges Univesity, NJ 1 Why is IP Multicast not deployed in public netwoks? Denial-of-Sevice

More information

Minimum congestion spanning trees in bipartite and random graphs

Minimum congestion spanning trees in bipartite and random graphs Minimum congetion panning tree in bipartite and random graph M.I. Otrovkii Department of Mathematic and Computer Science St. John Univerity 8000 Utopia Parkway Queen, NY 11439, USA e-mail: otrovm@tjohn.edu

More information

GPU-Based Parallel Algorithm for Computing Point Visibility Inside Simple Polygons

GPU-Based Parallel Algorithm for Computing Point Visibility Inside Simple Polygons GPU-Baed Parallel Algorihm for Compuing Poin Viibiliy Inide Simple Polygon Ehan Shoja a,, Mohammad Ghodi a,b, a Deparmen of Compuer Engineering, Sharif Univeriy of Technology, Tehran, Iran b Iniue for

More information

The Processor: Improving Performance Data Hazards

The Processor: Improving Performance Data Hazards The Pocesso: Impoving Pefomance Data Hazads Monday 12 Octobe 15 Many slides adapted fom: and Design, Patteson & Hennessy 5th Edition, 2014, MK and fom Pof. May Jane Iwin, PSU Summay Pevious Class Pipeline

More information

Shortest Path Algorithms. Lecture I: Shortest Path Algorithms. Example. Graphs and Matrices. Setting: Dr Kieran T. Herley.

Shortest Path Algorithms. Lecture I: Shortest Path Algorithms. Example. Graphs and Matrices. Setting: Dr Kieran T. Herley. Shores Pah Algorihms Background Seing: Lecure I: Shores Pah Algorihms Dr Kieran T. Herle Deparmen of Compuer Science Universi College Cork Ocober 201 direced graph, real edge weighs Le he lengh of a pah

More information

The Planar Slope Number of Planar Partial 3-Trees of Bounded Degree

The Planar Slope Number of Planar Partial 3-Trees of Bounded Degree The Planar Slope Number of Planar Parial 3-Tree of Bounded Degree Ví Jelínek 1,2,EvaJelínková 1, Jan Kraochvíl 1,3, Bernard Lidický 1, Marek Teař 1,andTomáš Vykočil 1,3 1 Deparmen of Applied Mahemaic,

More information

Lecture 14: Minimum Spanning Tree I

Lecture 14: Minimum Spanning Tree I COMPSCI 0: Deign and Analyi of Algorithm October 4, 07 Lecture 4: Minimum Spanning Tree I Lecturer: Rong Ge Scribe: Fred Zhang Overview Thi lecture we finih our dicuion of the hortet path problem and introduce

More information

Karen L. Collins. Wesleyan University. Middletown, CT and. Mark Hovey MIT. Cambridge, MA Abstract

Karen L. Collins. Wesleyan University. Middletown, CT and. Mark Hovey MIT. Cambridge, MA Abstract Mot Graph are Edge-Cordial Karen L. Collin Dept. of Mathematic Weleyan Univerity Middletown, CT 6457 and Mark Hovey Dept. of Mathematic MIT Cambridge, MA 239 Abtract We extend the definition of edge-cordial

More information

A HP-Prime Generating Library DataSheet. ( p) = it. and ( s 1) f2

A HP-Prime Generating Library DataSheet. ( p) = it. and ( s 1) f2 A HP-Pime Geneaing Libay Daahee. A) Geneal Infomaion. Thi libay can geneae a e of big ime numbe P { } uing an innovaive algoihm fo geneaing ime numbe by ymmey/aymmey maching of naual numbe. Thi algoihm

More information

Lecture 27: Voronoi Diagrams

Lecture 27: Voronoi Diagrams We say that two points u, v Y ae in the same connected component of Y if thee is a path in R N fom u to v such that all the points along the path ae in the set Y. (Thee ae two connected components in the

More information

ART GALLERIES WITH INTERIOR WALLS. March 1998

ART GALLERIES WITH INTERIOR WALLS. March 1998 ART GALLERIES WITH INTERIOR WALLS Andé Kündgen Mach 1998 Abstact. Conside an at galley fomed by a polygon on n vetices with m pais of vetices joined by inteio diagonals, the inteio walls. Each inteio wall

More information

Introduction To Pipelining. Chapter Pipelining1 1

Introduction To Pipelining. Chapter Pipelining1 1 Intoduction To Pipelining Chapte 6.1 - Pipelining1 1 Mooe s Law Mooe s Law says that the numbe of pocessos on a chip doubles about evey 18 months. Given the data on the following two slides, is this tue?

More information

Routing Definition 4.1

Routing Definition 4.1 4 Routing So far, we have only looked at network without dealing with the iue of how to end information in them from one node to another The problem of ending information in a network i known a routing

More information

. ).-... I s 0 4 i o s ) ( i. Name CA K44-14". Block 3-4B: Linear Programming Homework

. ).-... I s 0 4 i o s ) ( i. Name CA K44-14. Block 3-4B: Linear Programming Homework Name CA K44-14". Block 3-4B: Linear Programming Homework 1. An electronics company makes two kinds of TV's: LCD and plasma. Let x be the number of LCD TV's and y be the number of plasma TV's made in a

More information

CENG 477 Introduction to Computer Graphics. Modeling Transformations

CENG 477 Introduction to Computer Graphics. Modeling Transformations CENG 477 Inroducion o Compuer Graphics Modeling Transformaions Modeling Transformaions Model coordinaes o World coordinaes: Model coordinaes: All shapes wih heir local coordinaes and sies. world World

More information

A SIMPLE IMPERATIVE LANGUAGE THE STORE FUNCTION NON-TERMINATING COMMANDS

A SIMPLE IMPERATIVE LANGUAGE THE STORE FUNCTION NON-TERMINATING COMMANDS A SIMPLE IMPERATIVE LANGUAGE Eventually we will preent the emantic of a full-blown language, with declaration, type and looping. However, there are many complication, o we will build up lowly. Our firt

More information

Topic 7 Random Variables and Distribution Functions

Topic 7 Random Variables and Distribution Functions Definition of a Random Vaiable Distibution Functions Popeties of Distibution Functions Topic 7 Random Vaiables and Distibution Functions Distibution Functions 1 / 11 Definition of a Random Vaiable Distibution

More information

Contents. shortest paths. Notation. Shortest path problem. Applications. Algorithms and Networks 2010/2011. In the entire course:

Contents. shortest paths. Notation. Shortest path problem. Applications. Algorithms and Networks 2010/2011. In the entire course: Content Shortet path Algorithm and Network 21/211 The hortet path problem: Statement Verion Application Algorithm (for ingle ource p problem) Reminder: relaxation, Dijktra, Variant of Dijktra, Bellman-Ford,

More information

Algorithmic Discrete Mathematics 4. Exercise Sheet

Algorithmic Discrete Mathematics 4. Exercise Sheet Algorithmic Dicrete Mathematic. Exercie Sheet Department of Mathematic SS 0 PD Dr. Ulf Lorenz 0. and. May 0 Dipl.-Math. David Meffert Verion of May, 0 Groupwork Exercie G (Shortet path I) (a) Calculate

More information

Shortest Paths Problem. CS 362, Lecture 20. Today s Outline. Negative Weights

Shortest Paths Problem. CS 362, Lecture 20. Today s Outline. Negative Weights Shortet Path Problem CS 6, Lecture Jared Saia Univerity of New Mexico Another intereting problem for graph i that of finding hortet path Aume we are given a weighted directed graph G = (V, E) with two

More information

Topics. Lecture 37: Global Optimization. Issues. A Simple Example: Copy Propagation X := 3 B > 0 Y := 0 X := 4 Y := Z + W A := 2 * 3X

Topics. Lecture 37: Global Optimization. Issues. A Simple Example: Copy Propagation X := 3 B > 0 Y := 0 X := 4 Y := Z + W A := 2 * 3X Lecture 37: Global Optimization [Adapted from note by R. Bodik and G. Necula] Topic Global optimization refer to program optimization that encompa multiple baic block in a function. (I have ued the term

More information

arxiv: v4 [cs.ds] 7 Feb 2018

arxiv: v4 [cs.ds] 7 Feb 2018 Dynamic DFS in Undiected Gaphs: beaking the O(m) baie Suende Baswana Sheejit Ray Chaudhuy Keeti Choudhay Shahbaz Khan axiv:1502.02481v4 [cs.ds] 7 Feb 2018 Depth fist seach (DFS) tee is a fundamental data

More information

4.2. Co-terminal and Related Angles. Investigate

4.2. Co-terminal and Related Angles. Investigate .2 Co-teminal and Related Angles Tigonometic atios can be used to model quantities such as

More information

Practice Board. Side 8 I 9 O 7 U # 3 ) ] ( [ = } / { & 5

Practice Board. Side 8 I 9 O 7 U # 3 ) ] ( [ = } / { & 5 ! 1 $4 3 "2 M ;, +? :. actice oad Å Æ Ø ide ith easabe akes, fi out the epty keys. se the pactice sheet found in oad 2. actice fo 1 inutes a day and in ess than 3 days you wi be typing coecty without having

More information

IEEE C802.16m-07/060. IEEE Broadband Wireless Access Working Group <http://ieee802.org/16>

IEEE C802.16m-07/060. IEEE Broadband Wireless Access Working Group <http://ieee802.org/16> 007-3-5 IEEE C80.6m-07/060 Poject Title Date Submitted IEEE 80.6 Boadband Wiele Acce Woking Goup Coelation Model fo Shadow Fading Simulation 007-3-5 Souce() I-Kang Fu, Chi-Fang Li,

More information

Today s Outline. CS 561, Lecture 23. Negative Weights. Shortest Paths Problem. The presence of a negative cycle might mean that there is

Today s Outline. CS 561, Lecture 23. Negative Weights. Shortest Paths Problem. The presence of a negative cycle might mean that there is Today Outline CS 56, Lecture Jared Saia Univerity of New Mexico The path that can be trodden i not the enduring and unchanging Path. The name that can be named i not the enduring and unchanging Name. -

More information

Rou$ng. Rou$ng: Mapping Link to Path. Data and Control Planes. Rou$ng vs. Forwarding. Rou$ng Protocols. What Does the Protocol Compute?

Rou$ng. Rou$ng: Mapping Link to Path. Data and Control Planes. Rou$ng vs. Forwarding. Rou$ng Protocols. What Does the Protocol Compute? Ro$ng: Mapping Link o Pah Ro$ng Jennifer Reford COS : Comper Nework Lecre: MW 0-0:0am in Archiecre N0 hgp://www.c.princeon.ed/core/archie/pr/co/ link eion pah name addre Daa and Conrol Plane daa plane

More information

MOTION DETECTORS GRAPH MATCHING LAB PRE-LAB QUESTIONS

MOTION DETECTORS GRAPH MATCHING LAB PRE-LAB QUESTIONS NME: TE: LOK: MOTION ETETORS GRPH MTHING L PRE-L QUESTIONS 1. Read he insrucions, and answer he following quesions. Make sure you resae he quesion so I don hae o read he quesion o undersand he answer..

More information

E-OPTIMAL SEMI-REGULAR GRAPH DESIGNS AND PARTIALLY EFFICIENCY BALANCED DESIGNS

E-OPTIMAL SEMI-REGULAR GRAPH DESIGNS AND PARTIALLY EFFICIENCY BALANCED DESIGNS ounal of Statistical Theoy and Applications ISS 58-7887 Volume, ume, 22, pp.7-6 E-OPTIMAL SEMI-REGULAR GRAPH DESIGS AD PARTIALLY EFFICIECY BALACED DESIGS D.K. Ghosh Depatment of Statistics, Sauashta Uniesity,

More information

Figure NiteHAWK Wiring Diagram (Sheet 1)

Figure NiteHAWK Wiring Diagram (Sheet 1) NiteHAK Internet Jukebox G/ 00 UGE UPPEO 0V L N L AC PLUG OELINK CONLLE P HEET 000 CA 00 G/ 0 ALL OUTLET (POE COD ) 00 00 HANE HEET */ */ */ * * */ L * * * tripe +V FILTEED + V COMMON + VP DC +V COMMON

More information

Introduction To Robotics (Kinematics, Dynamics, and Design)

Introduction To Robotics (Kinematics, Dynamics, and Design) Intoduction o obotics Kinematics Dnamics and Design EION # 9: satial Descitions & ansfomations li Meghdai ofesso chool of Mechanical Engineeing haif Univesit of echnolog ehan IN 365-9567 Homeage: htt://meghdai.shaif.edu

More information

Concomitants of Upper Record Statistics for Bivariate Pseudo Weibull Distribution

Concomitants of Upper Record Statistics for Bivariate Pseudo Weibull Distribution Available at http://pvamuedu/aam Appl Appl Math ISSN: 93-9466 Vol 5, Issue (Decembe ), pp 8 9 (Peviously, Vol 5, Issue, pp 379 388) Applications and Applied Mathematics: An Intenational Jounal (AAM) Concomitants

More information

Compiler Construction

Compiler Construction Compiler Contruction Lecture 6 - An Introduction to Bottom- Up Paring 3 Robert M. Siegfried All right reerved Bottom-up Paring Bottom-up parer pare a program from the leave of a pare tree, collecting the

More information

AN ALGORITHM FOR RESTRICTED NORMAL FORM TO SOLVE DUAL TYPE NON-CANONICAL LINEAR FRACTIONAL PROGRAMMING PROBLEM

AN ALGORITHM FOR RESTRICTED NORMAL FORM TO SOLVE DUAL TYPE NON-CANONICAL LINEAR FRACTIONAL PROGRAMMING PROBLEM RAC Univerity Journal, Vol IV, No, 7, pp 87-9 AN ALGORITHM FOR RESTRICTED NORMAL FORM TO SOLVE DUAL TYPE NON-CANONICAL LINEAR FRACTIONAL PROGRAMMING PROLEM Mozzem Hoain Department of Mathematic Ghior Govt

More information

# $!$ %&&' Thanks and enjoy! JFK/KWR. All material copyright J.F Kurose and K.W. Ross, All Rights Reserved

# $!$ %&&' Thanks and enjoy! JFK/KWR. All material copyright J.F Kurose and K.W. Ross, All Rights Reserved A note on the use of these ppt slides: We e making these slides feely available to all (faculty, students, eades). They e in PowePoint fom so you can add, modify, and delete slides (including this one)

More information

ECE331: Hardware Organization and Design

ECE331: Hardware Organization and Design ECE331: Hadwae Oganization and Design Lectue 16: Pipelining Adapted fom Compute Oganization and Design, Patteson & Hennessy, UCB Last time: single cycle data path op System clock affects pimaily the Pogam

More information

Reachable State Spaces of Distributed Deadlock Avoidance Protocols

Reachable State Spaces of Distributed Deadlock Avoidance Protocols Reachable State Spaces of Distibuted Deadlock Avoidance Potocols CÉSAR SÁNCHEZ and HENNY B. SIPMA Stanfod Univesity We pesent a family of efficient distibuted deadlock avoidance algoithms with applications

More information

1 The secretary problem

1 The secretary problem Thi i new material: if you ee error, pleae email jtyu at tanford dot edu 1 The ecretary problem We will tart by analyzing the expected runtime of an algorithm, a you will be expected to do on your homework.

More information

Iterative Bilateral Filter and Non-Local Mean

Iterative Bilateral Filter and Non-Local Mean Inenaional Jounal of Compue Applicaion (975 8887 Volume 6 No., Noembe 4 Ieaie Bilaeal File and Non-Local Mean Dao Nam Anh Depamen of Infomaion Technology Elecic Powe Unieiy 35 Hoang Quoc Vie oad Hanoi,

More information

Administrivia. CMSC 411 Computer Systems Architecture Lecture 5. Data Hazard Even with Forwarding Figure A.9, Page A-20

Administrivia. CMSC 411 Computer Systems Architecture Lecture 5. Data Hazard Even with Forwarding Figure A.9, Page A-20 Administivia CMSC 411 Compute Systems Achitectue Lectue 5 Basic Pipelining (cont.) Alan Sussman als@cs.umd.edu as@csu dedu Homewok poblems fo Unit 1 due today Homewok poblems fo Unit 3 posted soon CMSC

More information

EE 6900: Interconnection Networks for HPC Systems Fall 2016

EE 6900: Interconnection Networks for HPC Systems Fall 2016 EE 6900: Inteconnection Netwoks fo HPC Systems Fall 2016 Avinash Kaanth Kodi School of Electical Engineeing and Compute Science Ohio Univesity Athens, OH 45701 Email: kodi@ohio.edu 1 Acknowledgement: Inteconnection

More information

EN4562 Autonomous Systems

EN4562 Autonomous Systems Lecue 2 N4562 uonomous Sysems Senso Fusion Pof. ohan Munasinghe Depamen of leconic an Telecommunicaion ngineeing Faculy of ngineeing Univesiy of Moauwa 4 aa, Vision an LiD Use of muliple sensos o eemine

More information

NEWTON S SECOND LAW OF MOTION

NEWTON S SECOND LAW OF MOTION Course and Secion Dae Names NEWTON S SECOND LAW OF MOTION The acceleraion of an objec is defined as he rae of change of elociy. If he elociy changes by an amoun in a ime, hen he aerage acceleraion during

More information

NODAL AND LOOP ANALYSIS TECHNIQUES

NODAL AND LOOP ANALYSIS TECHNIQUES NODAL AND LOOP ANALYSIS TECHNIQUES LEANING GOALS NODAL ANALYSIS LOOP ANALYSIS Deelop systematic techniques to determine all the oltages and currents in a circuit NODE ANALYSIS One of the systematic ways

More information

Engineering Technology

Engineering Technology Updated: 9/17/2018 6:00:03A erm:1188 Fall 2018 CNE/Construction Engineering ech Engineering echnology CNE 1160 001 (16630) 002 (16631) CNE 2300 CONS EHODS & LS F F CONS. GAPH. & ODEL. 08:30 am-09:20 am

More information

Project #1 Math 285 Name:

Project #1 Math 285 Name: Projec #1 Mah 85 Name: Solving Orinary Differenial Equaions by Maple: Sep 1: Iniialize he program: wih(deools): wih(pdeools): Sep : Define an ODE: (There are several ways of efining equaions, we sar wih

More information

CISC 662 Graduate Computer Architecture Lecture 6 - Hazards

CISC 662 Graduate Computer Architecture Lecture 6 - Hazards CISC 662 Gaduate Compute Achitectue Lectue 6 - Hazads Michela Taufe http://www.cis.udel.edu/~taufe/teaching/cis662f07 Powepoint Lectue Notes fom John Hennessy and David Patteson s: Compute Achitectue,

More information

Factor Graphs and Inference

Factor Graphs and Inference Factor Graph and Inerence Sargur Srihari rihari@cedar.bualo.edu 1 Topic 1. Factor Graph 1. Factor in probability ditribution. Deriving them rom graphical model. Eact Inerence Algorithm or Tree graph 1.

More information

Two-Dimensional Coding for Advanced Recording

Two-Dimensional Coding for Advanced Recording Two-Dimensional Coding fo Advanced Recoding N. Singla, J. A. O Sullivan, Y. Wu, and R. S. Indec Washington Univesity Saint Louis, Missoui s Motivation: Aeal Density Pefomance: match medium, senso, pocessing

More information

A Fast Texture Feature Extraction Method for Region-based Image Segmentation

A Fast Texture Feature Extraction Method for Region-based Image Segmentation A Fat extue Featue Extaction Method fo Region-baed Image Segmentation Hui Zhang *, Jaon E. Fitt, Sally A. Goldman Dept. of Compute Science and Engineeing, Wahington Univeity, One Booking Dive. St. Loui,

More information

Overview. 9 - Game World: textures, skyboxes, etc. Texture Mapping. Texture Space. Vertex Texture Coordinates. Texture Mapping. Game World Backgrounds

Overview. 9 - Game World: textures, skyboxes, etc. Texture Mapping. Texture Space. Vertex Texture Coordinates. Texture Mapping. Game World Backgrounds CSc 165 Compuer Game Archiecure Overview Texure Mapping 9 - Game World: exure, kyboxe, ec. Game World Background SkyBoxe & SkyDome World Bound and Viibiliy Render Sae 2 Texure Mapping Texure Space Baic

More information

FACE VECTORS OF FLAG COMPLEXES

FACE VECTORS OF FLAG COMPLEXES FACE VECTORS OF FLAG COMPLEXES ANDY FROHMADER Abstact. A conjectue of Kalai and Eckhoff that the face vecto of an abitay flag complex is also the face vecto of some paticula balanced complex is veified.

More information

Lecture Outline. Global flow analysis. Global Optimization. Global constant propagation. Liveness analysis. Local Optimization. Global Optimization

Lecture Outline. Global flow analysis. Global Optimization. Global constant propagation. Liveness analysis. Local Optimization. Global Optimization Lecture Outline Global flow analyi Global Optimization Global contant propagation Livene analyi Adapted from Lecture by Prof. Alex Aiken and George Necula (UCB) CS781(Praad) L27OP 1 CS781(Praad) L27OP

More information

Monte Carlo Techniques for Rendering

Monte Carlo Techniques for Rendering Monte Calo Techniques fo Rendeing CS 517 Fall 2002 Compute Science Conell Univesity Announcements No ectue on Thusday Instead, attend Steven Gotle, Havad Upson Hall B17, 4:15-5:15 (efeshments ealie) Geomety

More information

Any modern computer system will incorporate (at least) two levels of storage:

Any modern computer system will incorporate (at least) two levels of storage: 1 Any moden compute system will incopoate (at least) two levels of stoage: pimay stoage: andom access memoy (RAM) typical capacity 32MB to 1GB cost pe MB $3. typical access time 5ns to 6ns bust tansfe

More information

Class 21. N -body Techniques, Part 4

Class 21. N -body Techniques, Part 4 Class. N -body Techniques, Pat Tee Codes Efficiency can be inceased by gouping paticles togethe: Neaest paticles exet geatest foces diect summation. Distant paticles exet smallest foces teat in goups.

More information

IMPLEMENTATION OF AREA, VOLUME AND LINE SOURCES

IMPLEMENTATION OF AREA, VOLUME AND LINE SOURCES December 01 ADMS 5 P503I1 IMPEMENTATION OF AREA, VOUME AND INE SOURCES The Met. Office (D J Thomon) and CERC 1. INTRODUCTION ADMS model line ource, and area and volume ource with conve polgon bae area.

More information

EPHESUS CHURCH ROAD / FORDHAM BOULEVARD CONCEPTUAL LAYOUTS AND FUNCTIONAL ROADWAY PLANS

EPHESUS CHURCH ROAD / FORDHAM BOULEVARD CONCEPTUAL LAYOUTS AND FUNCTIONAL ROADWAY PLANS EPHEU CHUCH OAD / FODHAM BOULEVAD CONCEPUAL LAYOU AND NC LICENE #F-0102 2000 OUH BOULEVAD UIE 440 CHALOE, NOH CAOLINA 28203 FUNCIONAL OADWAY PLAN CHAPEL HI, NOH CAOLINA PELIMINAY NO FO CONUCION Drawing

More information

Worksheet And Programme Listing

Worksheet And Programme Listing GETTING STARTED WITH PYGAME ZERO ON THE RASPBERRY PI Worksheet And Programme Listing.technoisaledcation.co.k This resorce is copyright TechnoVisal Limited 2017 bt permission is gien to freely copy for

More information

Net Ne w t ork y La e y r Net Ne w t ork y La e y r Initial motivation: Net Ne w t ork y La e y r Net Ne w t ork y La e y r Net Ne w t ork

Net Ne w t ork y La e y r Net Ne w t ork y La e y r Initial motivation: Net Ne w t ork y La e y r Net Ne w t ork y La e y r Net Ne w t ork None lef! 0.0.04 IP6 Iniial moiaion: -bi address space soon o be compleel allocaed. Vin Cerf 67 ddiional moiaion: header forma helps speed processing/forarding header changes o faciliae QoS IP6 gram forma:

More information

AVL Tree. The height of the BST be as small as possible

AVL Tree. The height of the BST be as small as possible 1 AVL Tree re and Algorithm The height of the BST be a mall a poible The firt balanced BST. Alo called height-balanced tree. Introduced by Adel on-vel kii and Landi in 1962. BST with the following condition:

More information

Journal of Graph Algorithms and Applications

Journal of Graph Algorithms and Applications Jornal of Graph Algorithm and Application http://www.c.brown.ed/pblication/jgaa/ vol. 6, no., pp. 7 6 (00) Triangle-ree Planar Graph a Segment Interection Graph Natalia de Catro rancico Javier Cobo Jan

More information

1-2 Geometric vectors

1-2 Geometric vectors 1-2 Geometric ectors We are going to start simple, by defining 2-dimensional ectors, the simplest ectors there are. Are these the ectors that can be defined by to numbers only? Yes, and here is a formal

More information

CS 61C: Great Ideas in Computer Architecture. Pipelining Hazards. Instructor: Senior Lecturer SOE Dan Garcia

CS 61C: Great Ideas in Computer Architecture. Pipelining Hazards. Instructor: Senior Lecturer SOE Dan Garcia CS 61C: Geat Ideas in Compute Achitectue Pipelining Hazads Instucto: Senio Lectue SOE Dan Gacia 1 Geat Idea #4: Paallelism So9wae Paallel Requests Assigned to compute e.g. seach Gacia Paallel Theads Assigned

More information

! Smaller, simpler, subcomponent of program! Provides abstraction. n hide low-level details, give high-level structure

! Smaller, simpler, subcomponent of program! Provides abstraction. n hide low-level details, give high-level structure Function Chpte 1 Functions Oiginl slides fom Gegoy Byd, Noth Colin Stte Univesity Modified slides by Chis Wilcox, Colodo Stte Univesity! Smlle, simple, subcomponent of pogm! Povides bstction n hide lo-level

More information

Announcements For The Logic of Boolean Connectives Truth Tables, Tautologies & Logical Truths. Outline. Introduction Truth Functions

Announcements For The Logic of Boolean Connectives Truth Tables, Tautologies & Logical Truths. Outline. Introduction Truth Functions Announcemens For 02.05.09 The Logic o Boolean Connecives Truh Tables, Tauologies & Logical Truhs 1 HW3 is due nex Tuesday William Sarr 02.05.09 William Sarr The Logic o Boolean Connecives (Phil 201.02)

More information

GRAPHING QUADRATIC FUNCTIONS IN STANDARD FORM

GRAPHING QUADRATIC FUNCTIONS IN STANDARD FORM FOM 11 T7 GRAPHING QUADRATIC FUNCTIONS IN STANDARD FORM 1 1 GRAPHING QUADRATIC FUNCTIONS IN STANDARD FORM I) THE STANDARD FORM OF A QUADRATIC FUNCTION (PARABOLA) IS = a +b +c. To graph a quadratic function

More information

Ethernet Basics Learning Switches. based on Chapter 4 of CompTIA Network+ Exam Guide, 4 th ed., Mike Meyers

Ethernet Basics Learning Switches. based on Chapter 4 of CompTIA Network+ Exam Guide, 4 th ed., Mike Meyers Ethernet Basics Learning Sitches based on Chapter 4 of CompTIA Netork+ Eam Guide, 4 th ed., Mike Meers Sitch Forarding A sitch forards frames based on destination MAC address Ho does the sitch kno hich

More information

Exercise 4: Markov Processes, Cellular Automata and Fuzzy Logic

Exercise 4: Markov Processes, Cellular Automata and Fuzzy Logic Exercie 4: Marko rocee, Cellular Automata and Fuzzy Logic Formal Method II, Fall Semeter 203 Solution Sheet Marko rocee Theoretical Exercie. (a) ( point) 0.2 0.7 0.3 tanding 0.25 lying 0.5 0.4 0.2 0.05

More information

OLMSTED COUNTY OFFICIAL MAP NO.

OLMSTED COUNTY OFFICIAL MAP NO. I-90 5.H. 30 0 CO. D. 6 3 60H S. S 3 7 90H S. SE AIPO VIE D. S LC D. S 60H S. S 8H S. SE H AVE. S 0H AVE. S 85H S. SE 80H S. SE OODBIE S. SE 06 7 8 3 5H AVE. E I-90 D AVE. SE 35 6 CO. D. 0 3 5 6 CO. D.

More information

(x + y) x2 + xy + y 2 (3) x2 + y 2 3 2

(x + y) x2 + xy + y 2 (3) x2 + y 2 3 2 A Nice Sequence of Inequlities Co Minh Qung In this ppe, we would like to intoduce to the edes some pplictions of nice sequence of inequlities fo solving inequlities. Theoem. Fo ny x > 0 nd y > 0, we get

More information

ANSI / ASME B16.5 (2003) Pipe Flanges

ANSI / ASME B16.5 (2003) Pipe Flanges WELIN NE SLI-ON THREE L L L Ocagonal Ring Oval Ring 0.mm R 0.mm E + 6 H 6 6 NSI SME 6. (00) Flanges F 0.mm 0.0 NS R= 0.06 = N S6-0.09 NS 0.mm ll unis ae in mm, excep he in inches. ich of Ring and oove

More information

6. Specifications & Additional Information

6. Specifications & Additional Information 6. Specifications & Additional Information SIIGX52004-3.1 Transceier Blocks Table 6 1 shows the transceier blocks for Stratix II GX and Stratix GX deices and compares their features. Table 6 1. Stratix

More information

Lecture #22 Pipelining II, Cache I

Lecture #22 Pipelining II, Cache I inst.eecs.bekeley.edu/~cs61c CS61C : Machine Stuctues Lectue #22 Pipelining II, Cache I Wiewold cicuits 2008-7-29 http://www.maa.og/editoial/mathgames/mathgames_05_24_04.html http://www.quinapalus.com/wi-index.html

More information

CS 5114: Theory of Algorithms. Sorting. Insertion Sort. Exchange Sorting. Clifford A. Shaffer. Spring 2010

CS 5114: Theory of Algorithms. Sorting. Insertion Sort. Exchange Sorting. Clifford A. Shaffer. Spring 2010 Depatment of Compute Science Viginia Tech Backsbug, Viginia Copyight c 10 by Ciffod A. Shaffe 3 4 5 7 : Theoy of Agoithms Tite page : Theoy of Agoithms Ciffod A. Shaffe Sping 10 Ciffod A. Shaffe Depatment

More information

TMCH Report March February 2017

TMCH Report March February 2017 TMCH Report March 2013 - February 2017 Contents Contents 2 1 Trademark Clearinghouse global reporting 3 1.1 Number of jurisdictions for which a trademark record has been submitted for 3 2 Trademark Clearinghouse

More information