Warm Up. Correct order: s,u,v,y,x,w,t

Size: px
Start display at page:

Download "Warm Up. Correct order: s,u,v,y,x,w,t"

Transcription

1 Warm Up Rn Breadh Fir Search on hi graph aring from. Wha order are erice placed on he qee? When proceing a erex iner neighbor in alphabeical order. In a direced graph, BFS only follow an edge in he direcion i poin. w y x Correc order:,,,y,x,w, bf(graph) ovii.enqee(fir erex) mark fir erex a iied while(ovii i no empy) crren = ovii.deqee() for (V : crren.oneighbor()) if ( i no iied) ovii.enqee() mark a iied finihed.add(crren) CSE 373 SP 8 - KASEY CHAMPION

2 Shore Pah How doe Google Map figre o hi i he fae way o ge o office hor from Kane? CSE 373 SP 8 - KASEY CHAMPION

3 Repreening Map a Graph How do we repreen a map a a graph? Wha are he erice and edge? CSE 373 SP 8 - KASEY CHAMPION 3

4 Repreening Map a Graph K R S H 4 D P CSE 373 SP 8 - KASEY CHAMPION 4

5 Shore Pah The lengh of a pah i he m of he edge weigh on ha pah. Shore Pah Problem Gien: a direced graph G and erice and Find: he hore pah from o y w 3 6 x 5 CSE 373 SP 8 - KASEY CHAMPION 5

6 Unweighed graph Le ar wih a impler erion: he edge are all he ame weigh (nweighed) If he graph i nweighed, how do we find a hore pah? CSE 373 SP 8 - KASEY CHAMPION 6

7 Unweighed Graph If he graph i nweighed, how do we find a hore pah? w y x Wha he hore pah from o? - Well.we re already here. Wha he hore pah from o or? - J go on he edge from From o w,x, or y? - Can ge here direcly from, if we wan a lengh pah, hae o go hrogh or. CSE 373 SP 8 - KASEY CHAMPION 7

8 Unweighed Graph: Key Idea To find he e of erice a diance k, j find he e of erice a diance k-, and ee if any of hem hae an ogoing edge o an ndicoered erex. Do we already know an algorihm ha doe omehing like ha? Ye! BFS! bfshorepah(graph G, erex orce) ovii.enqee(orce) orce.di = 0 mark orce a iied while(ovii i no empy){ crren = ovii.deqee() for ( : crren.oneighbor()){ if ( i no ye iied){.diance = crren.diance +.predeceor = crren ovii.enqee() mark a iied } } } CSE 373 SP 8 - KASEY CHAMPION 8

9 Unweighed Graph If he graph i nweighed, how do we find a hore pah? bfshorepah(graph G, erex orce) ovii.enqee(orce) orce.di = 0 mark orce a iied while(ovii i no empy){ crren = ovii.deqee() for ( : crren.oneighbor()){ if ( i no ye iied){.diance = crren.diance +.predeceor = crren ovii.enqee() mark a iied } } } w x y 3 CSE 373 SP 8 - KASEY CHAMPION 9

10 Wha abo he arge erex? Shore Pah Problem Gien: a direced graph G and erice, Find: he hore pah from o. BFS didn menion a arge erex I acally find he hore pah from o eery oher erex. If yo know yor arge, yo can op he algorihm early, when he arge i remoed from he qee. CSE 373 SP 8 - KASEY CHAMPION 0

11 Weighed Graph Each edge hold repreen he ime or diance from one erex o anoher. Someime hoe aren niform, o we p a weigh on each edge o record ha nmber. The lengh of a pah in a weighed graph i he m of he weigh along ha pah. We ll ame all of he weigh are poiie - For GoogleMap ha definiely make ene. - Someime negaie weigh make ene. Today algorihm doen work for hoe graph - There are oher algorihm ha do work. CSE 373 SP 8 - KASEY CHAMPION

12 Weighed Graph: Take BFS work if he graph i nweighed. Maybe i j work for weighed graph oo? w x Wha wen wrong? When we fond a horer pah from o, we needed o pdae he diance o (and anyhing whoe hore pah wen hrogh ) b BFS doen do ha. CSE 373 SP 8 - KASEY CHAMPION

13 Weighed Graph: Take Redcion (informally) Uing an algorihm for Problem B o ole Problem A. Yo already do hi all he ime. In a preio projec, yo redced implemening a hahe o implemening a hahmap. Any ime yo e a library, yo re redcing yor problem o he one he library ole. Can we redce finding hore pah on weighed graph o finding hem on nweighed graph? CSE 373 SP 8 - KASEY CHAMPION 3

14 Weighed Graph: A Redcion Gien a weighed graph, how do we rn i ino an nweighed one wiho meing p he edge lengh? Tranform Inp Unweighed Shore Pah Tranform Op CSE 373 SP 8 - KASEY CHAMPION 4

15 Weighed Graph: A Redcion Wha i he rnning ime of or redcion on hi graph? Doe or redcion een work on hi graph? π O( V + E ) of he modified graph, which i low. Ummm. Tl;dr: If yor graph weigh are all mall poiie ineger, hi redcion migh work grea. Oherwie we probably need a new idea. CSE 373 SP 8 - KASEY CHAMPION 5

16 Weighed Graph: Take 3 So we can j do a redcion. Inead le ry o figre o why BFS worked in he nweighed cae, and ry o make he ame hing happen in he weighed cae. Why did BFS work on nweighed graph? How did we aoid hi problem: w x When we ed a erex o pdae hore pah we already knew he exac hore pah o. So we neer ran ino he pdae problem So if we proce he erice in order of diance from, we hae a chance. CSE 373 SP 8 - KASEY CHAMPION 6

17 Weighed Graph: Take 3 Goal: Proce he erice in order of diance from Idea: Hae a e of erice ha are known - (we know a lea one pah from o hem). Record an eimaed diance - (he be way we know o ge o each erex). If we proce only he erex cloe in eimaed diance, we won eer find a horer pah o a proceed erex. CSE 373 SP 8 - KASEY CHAMPION 7

CMPS 6610/4610 Fall Flow Networks. Carola Wenk Slides adapted from slides by Charles Leiserson

CMPS 6610/4610 Fall Flow Networks. Carola Wenk Slides adapted from slides by Charles Leiserson CMP 6610/4610 Fall 2016 Flow Nework Carola Wenk lide adaped rom lide by Charle Leieron Max low and min c Fndamenal problem in combinaorial opimizaion Daliy beween max low and min c Many applicaion: Biparie

More information

Network flows. The problem. c : V V! R + 0 [ f+1g. flow network G = (V, E, c), a source s and a sink t uv not in E implies c(u, v) = 0

Network flows. The problem. c : V V! R + 0 [ f+1g. flow network G = (V, E, c), a source s and a sink t uv not in E implies c(u, v) = 0 Nework flow The problem Seing flow nework G = (V, E, c), a orce and a ink no in E implie c(, ) = 0 Flow from o capaciy conrain kew-ymmery flow-coneraion ale of he flow jfj = P 2V Find a maximm flow from

More information

Maximum Flow 5/6/17 21:08. Presentation for use with the textbook, Algorithm Design and Applications, by M. T. Goodrich and R. Tamassia, Wiley, 2015

Maximum Flow 5/6/17 21:08. Presentation for use with the textbook, Algorithm Design and Applications, by M. T. Goodrich and R. Tamassia, Wiley, 2015 Maximm Flo 5/6/17 21:08 Preenaion for e ih he exbook, Algorihm Deign and Applicaion, by M. T. Goodrich and R. Tamaia, Wiley, 2015 Maximm Flo χ 4/6 4/7 1/9 2015 Goodrich and Tamaia Maximm Flo 1 Flo Neork

More information

Wrap up: Weighted, directed graph shortest path Minimum Spanning Tree. Feb 25, 2019 CSCI211 - Sprenkle

Wrap up: Weighted, directed graph shortest path Minimum Spanning Tree. Feb 25, 2019 CSCI211 - Sprenkle Objecive Wrap up: Weighed, direced graph hore pah Minimum Spanning Tree eb, 1 SI - Sprenkle 1 Review Wha are greedy algorihm? Wha i our emplae for olving hem? Review he la problem we were working on: Single-ource,

More information

Algorithmic Discrete Mathematics 6. Exercise Sheet

Algorithmic Discrete Mathematics 6. Exercise Sheet Algorihmic Dicree Mahemaic. Exercie Shee Deparmen of Mahemaic SS 0 PD Dr. Ulf Lorenz 7. and 8. Juni 0 Dipl.-Mah. David Meffer Verion of June, 0 Groupwork Exercie G (Heap-Sor) Ue Heap-Sor wih a min-heap

More information

Randomized Perfect Bipartite Matching

Randomized Perfect Bipartite Matching Inenive Algorihm Lecure 24 Randomized Perfec Biparie Maching Lecurer: Daniel A. Spielman April 9, 208 24. Inroducion We explain a randomized algorihm by Ahih Goel, Michael Kapralov and Sanjeev Khanna for

More information

Main Reference: Sections in CLRS.

Main Reference: Sections in CLRS. Maximum Flow Reied 09/09/200 Main Reference: Secion 26.-26. in CLRS. Inroducion Definiion Muli-Source Muli-Sink The Ford-Fulkeron Mehod Reidual Nework Augmening Pah The Max-Flow Min-Cu Theorem The Edmond-Karp

More information

Algorithms and Data Structures 2011/12 Week 9 Solutions (Tues 15th - Fri 18th Nov)

Algorithms and Data Structures 2011/12 Week 9 Solutions (Tues 15th - Fri 18th Nov) Algorihm and Daa Srucure 2011/ Week Soluion (Tue 15h - Fri 18h No) 1. Queion: e are gien 11/16 / 15/20 8/13 0/ 1/ / 11/1 / / To queion: (a) Find a pair of ube X, Y V uch ha f(x, Y) = f(v X, Y). (b) Find

More information

20/20 20/20 0/5 0/5 20/20 20/20 5/5 0/5 0/5 5/5 0/20 25/30 20/20 30/30 20/20 0/5 5/5 20/20 0/5 0/5 15/20 15/25 20/20 10/10

20/20 20/20 0/5 0/5 20/20 20/20 5/5 0/5 0/5 5/5 0/20 25/30 20/20 30/30 20/20 0/5 5/5 20/20 0/5 0/5 15/20 15/25 20/20 10/10 Annoncemen CSEP Applied Algorihm Richard Anderon Lecre 9 Nework Flow Applicaion Reading for hi week 7.-7.. Nework flow applicaion Nex week: Chaper 8. NP-Compleene Final exam, March 8, 6:0 pm. A UW. hor

More information

Maximum Flow 3/3 4/6 1/1 4/7 3/3. s 3/5 1/9 1/1 3/5 2/2. 1/18/2005 4:03 AM Maximum Flow 1

Maximum Flow 3/3 4/6 1/1 4/7 3/3. s 3/5 1/9 1/1 3/5 2/2. 1/18/2005 4:03 AM Maximum Flow 1 Maximm Flo χ 4/6 4/7 1/9 8/2005 4:03 AM Maximm Flo 1 Oline and Reading Flo neork Flo ( 8.1.1) C ( 8.1.2) Maximm flo Agmening pah ( 8.2.1) Maximm flo and minimm c ( 8.2.1) Ford-Flkeron algorihm ( 8.2.2-8.2.3)

More information

Problem Set If all directed edges in a network have distinct capacities, then there is a unique maximum flow.

Problem Set If all directed edges in a network have distinct capacities, then there is a unique maximum flow. CSE 202: Deign and Analyi of Algorihm Winer 2013 Problem Se 3 Inrucor: Kamalika Chaudhuri Due on: Tue. Feb 26, 2013 Inrucion For your proof, you may ue any lower bound, algorihm or daa rucure from he ex

More information

Math 2214 Solution Test 1 B Spring 2016

Math 2214 Solution Test 1 B Spring 2016 Mah 14 Soluion Te 1 B Spring 016 Problem 1: Ue eparaion of ariable o ole he Iniial alue DE Soluion (14p) e =, (0) = 0 d = e e d e d = o = ln e d uing u-du b leing u = e 1 e = + where C = for he iniial

More information

PHYSICS 151 Notes for Online Lecture #4

PHYSICS 151 Notes for Online Lecture #4 PHYSICS 5 Noe for Online Lecure #4 Acceleraion The ga pedal in a car i alo called an acceleraor becaue preing i allow you o change your elociy. Acceleraion i how fa he elociy change. So if you ar fro re

More information

18 Extensions of Maximum Flow

18 Extensions of Maximum Flow Who are you?" aid Lunkwill, riing angrily from hi ea. Wha do you wan?" I am Majikhie!" announced he older one. And I demand ha I am Vroomfondel!" houed he younger one. Majikhie urned on Vroomfondel. I

More information

s in boxe wers ans Put

s in boxe wers ans Put Pu answers in boxes Main Ideas in Class Toda Inroducion o Falling Appl Old Equaions Graphing Free Fall Sole Free Fall Problems Pracice:.45,.47,.53,.59,.61,.63,.69, Muliple Choice.1 Freel Falling Objecs

More information

EF 151 Exam #2 - Spring, 2014 Page 1 of 6

EF 151 Exam #2 - Spring, 2014 Page 1 of 6 EF 5 Exam # - Spring, 04 Page of 6 Name: Secion: Inrucion: Pu your name and ecion on he exam. Do no open he e unil you are old o do o. Wrie your final anwer in he box proided If you finih wih le han 5

More information

Main Ideas in Class Today

Main Ideas in Class Today Main Ideas in Class Toda Inroducion o Falling Appl Consan a Equaions Graphing Free Fall Sole Free Fall Problems Pracice:.45,.47,.53,.59,.61,.63,.69, Muliple Choice.1 Freel Falling Objecs Refers o objecs

More information

Rectilinear Kinematics

Rectilinear Kinematics Recilinear Kinemaic Coninuou Moion Sir Iaac Newon Leonard Euler Oeriew Kinemaic Coninuou Moion Erraic Moion Michael Schumacher. 7-ime Formula 1 World Champion Kinemaic The objecie of kinemaic i o characerize

More information

Dynamic Programming 11/8/2009. Weighted Interval Scheduling. Weighted Interval Scheduling. Unweighted Interval Scheduling: Review

Dynamic Programming 11/8/2009. Weighted Interval Scheduling. Weighted Interval Scheduling. Unweighted Interval Scheduling: Review //9 Algorihms Dynamic Programming - Weighed Ineral Scheduling Dynamic Programming Weighed ineral scheduling problem. Insance A se of n jobs. Job j sars a s j, finishes a f j, and has weigh or alue j. Two

More information

CS 473G Lecture 15: Max-Flow Algorithms and Applications Fall 2005

CS 473G Lecture 15: Max-Flow Algorithms and Applications Fall 2005 CS 473G Lecure 1: Max-Flow Algorihm and Applicaion Fall 200 1 Max-Flow Algorihm and Applicaion (November 1) 1.1 Recap Fix a direced graph G = (V, E) ha doe no conain boh an edge u v and i reveral v u,

More information

Flow Networks Alon Efrat Slides courtesy of Charles Leiserson with small changes by Carola Wenk. Flow networks. Flow networks CS 445

Flow Networks Alon Efrat Slides courtesy of Charles Leiserson with small changes by Carola Wenk. Flow networks. Flow networks CS 445 CS 445 Flow Nework lon Efr Slide corey of Chrle Leieron wih mll chnge by Crol Wenk Flow nework Definiion. flow nework i direced grph G = (V, E) wih wo diingihed erice: orce nd ink. Ech edge (, ) E h nonnegie

More information

Network Flow. Data Structures and Algorithms Andrei Bulatov

Network Flow. Data Structures and Algorithms Andrei Bulatov Nework Flow Daa Srucure and Algorihm Andrei Bulao Algorihm Nework Flow 24-2 Flow Nework Think of a graph a yem of pipe We ue hi yem o pump waer from he ource o ink Eery pipe/edge ha limied capaciy Flow

More information

Differential Geometry: Revisiting Curvatures

Differential Geometry: Revisiting Curvatures Differenial Geomery: Reisiing Curaures Curaure and Graphs Recall: hus, up o a roaion in he x-y plane, we hae: f 1 ( x, y) x y he alues 1 and are he principal curaures a p and he corresponding direcions

More information

Physics Notes - Ch. 2 Motion in One Dimension

Physics Notes - Ch. 2 Motion in One Dimension Physics Noes - Ch. Moion in One Dimension I. The naure o physical quaniies: scalars and ecors A. Scalar quaniy ha describes only magniude (how much), NOT including direcion; e. mass, emperaure, ime, olume,

More information

Lecture 2-1 Kinematics in One Dimension Displacement, Velocity and Acceleration Everything in the world is moving. Nothing stays still.

Lecture 2-1 Kinematics in One Dimension Displacement, Velocity and Acceleration Everything in the world is moving. Nothing stays still. Lecure - Kinemaics in One Dimension Displacemen, Velociy and Acceleraion Everyhing in he world is moving. Nohing says sill. Moion occurs a all scales of he universe, saring from he moion of elecrons in

More information

Chapter 3 Kinematics in Two Dimensions

Chapter 3 Kinematics in Two Dimensions Chaper 3 KINEMATICS IN TWO DIMENSIONS PREVIEW Two-dimensional moion includes objecs which are moing in wo direcions a he same ime, such as a projecile, which has boh horizonal and erical moion. These wo

More information

Chapter 7: Solving Trig Equations

Chapter 7: Solving Trig Equations Haberman MTH Secion I: The Trigonomeric Funcions Chaper 7: Solving Trig Equaions Le s sar by solving a couple of equaions ha involve he sine funcion EXAMPLE a: Solve he equaion sin( ) The inverse funcions

More information

Kinematics in two dimensions

Kinematics in two dimensions Lecure 5 Phsics I 9.18.13 Kinemaics in wo dimensions Course websie: hp://facul.uml.edu/andri_danlo/teaching/phsicsi Lecure Capure: hp://echo36.uml.edu/danlo13/phsics1fall.hml 95.141, Fall 13, Lecure 5

More information

16 Max-Flow Algorithms and Applications

16 Max-Flow Algorithms and Applications Algorihm A proce canno be underood by opping i. Underanding mu move wih he flow of he proce, mu join i and flow wih i. The Fir Law of Mena, in Frank Herber Dune (196) There a difference beween knowing

More information

Today: Max Flow Proofs

Today: Max Flow Proofs Today: Max Flow Proof COSC 58, Algorihm March 4, 04 Many of hee lide are adaped from everal online ource Reading Aignmen Today cla: Chaper 6 Reading aignmen for nex cla: Chaper 7 (Amorized analyi) In-Cla

More information

LAB # 2 - Equilibrium (static)

LAB # 2 - Equilibrium (static) AB # - Equilibrium (saic) Inroducion Isaac Newon's conribuion o physics was o recognize ha despie he seeming compleiy of he Unierse, he moion of is pars is guided by surprisingly simple aws. Newon's inspiraion

More information

Max Flow, Min Cut COS 521. Kevin Wayne Fall Soviet Rail Network, Cuts. Minimum Cut Problem. Flow network.

Max Flow, Min Cut COS 521. Kevin Wayne Fall Soviet Rail Network, Cuts. Minimum Cut Problem. Flow network. Sovie Rail Nework, Max Flow, Min u OS Kevin Wayne Fall Reference: On he hiory of he ranporaion and maximum flow problem. lexander Schrijver in Mah Programming, :,. Minimum u Problem u Flow nework.! Digraph

More information

Network Flow Applications

Network Flow Applications Hopial problem Neork Flo Applicaion Injured people: n Hopial: k Each peron need o be brough o a hopial no more han 30 minue aay Each hopial rea no more han n/k" people Gien n, k, and informaion abou people

More information

Brock University Physics 1P21/1P91 Fall 2013 Dr. D Agostino. Solutions for Tutorial 3: Chapter 2, Motion in One Dimension

Brock University Physics 1P21/1P91 Fall 2013 Dr. D Agostino. Solutions for Tutorial 3: Chapter 2, Motion in One Dimension Brock Uniersiy Physics 1P21/1P91 Fall 2013 Dr. D Agosino Soluions for Tuorial 3: Chaper 2, Moion in One Dimension The goals of his uorial are: undersand posiion-ime graphs, elociy-ime graphs, and heir

More information

The Residual Graph. 11 Augmenting Path Algorithms. Augmenting Path Algorithm. Augmenting Path Algorithm

The Residual Graph. 11 Augmenting Path Algorithms. Augmenting Path Algorithm. Augmenting Path Algorithm Augmening Pah Algorihm Greedy-algorihm: ar wih f (e) = everywhere find an - pah wih f (e) < c(e) on every edge augmen flow along he pah repea a long a poible The Reidual Graph From he graph G = (V, E,

More information

Notes on cointegration of real interest rates and real exchange rates. ρ (2)

Notes on cointegration of real interest rates and real exchange rates. ρ (2) Noe on coinegraion of real inere rae and real exchange rae Charle ngel, Univeriy of Wiconin Le me ar wih he obervaion ha while he lieraure (mo prominenly Meee and Rogoff (988) and dion and Paul (993))

More information

1. The graph below shows the variation with time t of the acceleration a of an object from t = 0 to t = T. a

1. The graph below shows the variation with time t of the acceleration a of an object from t = 0 to t = T. a Kinemaics Paper 1 1. The graph below shows he ariaion wih ime of he acceleraion a of an objec from = o = T. a T The shaded area under he graph represens change in A. displacemen. B. elociy. C. momenum.

More information

Maximum Flow in Planar Graphs

Maximum Flow in Planar Graphs Maximum Flow in Planar Graph Planar Graph and i Dual Dualiy i defined for direced planar graph a well Minimum - cu in undireced planar graph An - cu (undireced graph) An - cu The dual o he cu Cu/Cycle

More information

Flow networks. Flow Networks. A flow on a network. Flow networks. The maximum-flow problem. Introduction to Algorithms, Lecture 22 December 5, 2001

Flow networks. Flow Networks. A flow on a network. Flow networks. The maximum-flow problem. Introduction to Algorithms, Lecture 22 December 5, 2001 CS 545 Flow Nework lon Efra Slide courey of Charle Leieron wih mall change by Carola Wenk Flow nework Definiion. flow nework i a direced graph G = (V, E) wih wo diinguihed verice: a ource and a ink. Each

More information

The Residual Graph. 12 Augmenting Path Algorithms. Augmenting Path Algorithm. Augmenting Path Algorithm

The Residual Graph. 12 Augmenting Path Algorithms. Augmenting Path Algorithm. Augmenting Path Algorithm Augmening Pah Algorihm Greedy-algorihm: ar wih f (e) = everywhere find an - pah wih f (e) < c(e) on every edge augmen flow along he pah repea a long a poible The Reidual Graph From he graph G = (V, E,

More information

CSE 521: Design & Analysis of Algorithms I

CSE 521: Design & Analysis of Algorithms I CSE 52: Deign & Analyi of Algorihm I Nework Flow Paul Beame Biparie Maching Given: A biparie graph G=(V,E) M E i a maching in G iff no wo edge in M hare a verex Goal: Find a maching M in G of maximum poible

More information

HYPOTHESIS TESTING. four steps. 1. State the hypothesis. 2. Set the criterion for rejecting. 3. Compute the test statistics. 4. Interpret the results.

HYPOTHESIS TESTING. four steps. 1. State the hypothesis. 2. Set the criterion for rejecting. 3. Compute the test statistics. 4. Interpret the results. Inrodcion o Saisics in Psychology PSY Professor Greg Francis Lecre 23 Hypohesis esing for correlaions Is here a correlaion beween homework and exam grades? for seps. Sae he hypohesis. 2. Se he crierion

More information

PHYSICS Solving Equations

PHYSICS Solving Equations Sepember 20, 2013 PHYSIS Solving Equaion Sepember 2013 www.njcl.org Solving for a Variable Our goal i o be able o olve any equaion for any variable ha appear in i. Le' look a a imple equaion fir. The variable

More information

TP B.2 Rolling resistance, spin resistance, and "ball turn"

TP B.2 Rolling resistance, spin resistance, and ball turn echnical proof TP B. olling reiance, pin reiance, and "ball urn" upporing: The Illuraed Principle of Pool and Billiard hp://billiard.coloae.edu by Daid G. Alciaore, PhD, PE ("Dr. Dae") echnical proof originally

More information

Soviet Rail Network, 1955

Soviet Rail Network, 1955 7.1 Nework Flow Sovie Rail Nework, 19 Reerence: On he hiory o he ranporaion and maximum low problem. lexander Schrijver in Mah Programming, 91: 3, 00. (See Exernal Link ) Maximum Flow and Minimum Cu Max

More information

Admin MAX FLOW APPLICATIONS. Flow graph/networks. Flow constraints 4/30/13. CS lunch today Grading. in-flow = out-flow for every vertex (except s, t)

Admin MAX FLOW APPLICATIONS. Flow graph/networks. Flow constraints 4/30/13. CS lunch today Grading. in-flow = out-flow for every vertex (except s, t) /0/ dmin lunch oday rading MX LOW PPLIION 0, pring avid Kauchak low graph/nework low nework direced, weighed graph (V, ) poiive edge weigh indicaing he capaciy (generally, aume ineger) conain a ingle ource

More information

Discussion Session 2 Constant Acceleration/Relative Motion Week 03

Discussion Session 2 Constant Acceleration/Relative Motion Week 03 PHYS 100 Dicuion Seion Conan Acceleraion/Relaive Moion Week 03 The Plan Today you will work wih your group explore he idea of reference frame (i.e. relaive moion) and moion wih conan acceleraion. You ll

More information

Routing. Elements of packet forwarding (dataplane)

Routing. Elements of packet forwarding (dataplane) /7/5 Roing Elemens of packe forwarding (daaplane) A se of addresses for nodes; each node has a niqe address A each node, a labeling of incoming links and a labeling of ogoing links A se of headers for

More information

Competitive Routing in the Half-θ 6 -Graph

Competitive Routing in the Half-θ 6 -Graph Compeiie Roing in he Half-θ 6 -Graph Proenji Boe Rolf Fagererg André an Renen Sander Verdoncho Arac We preen a deerminiic local roing cheme ha i garaneed o find a pah eeen any pair of erice in a halfθ

More information

One-Dimensional Kinematics

One-Dimensional Kinematics One-Dimensional Kinemaics One dimensional kinemaics refers o moion along a sraigh line. Een hough we lie in a 3-dimension world, moion can ofen be absraced o a single dimension. We can also describe moion

More information

Equations of motion for constant acceleration

Equations of motion for constant acceleration Lecure 3 Chaper 2 Physics I 01.29.2014 Equaions of moion for consan acceleraion Course websie: hp://faculy.uml.edu/andriy_danylo/teaching/physicsi Lecure Capure: hp://echo360.uml.edu/danylo2013/physics1spring.hml

More information

Matching. Slides designed by Kevin Wayne.

Matching. Slides designed by Kevin Wayne. Maching Maching. Inpu: undireced graph G = (V, E). M E i a maching if each node appear in a mo edge in M. Max maching: find a max cardinaliy maching. Slide deigned by Kevin Wayne. Biparie Maching Biparie

More information

Best test practice: Take the past test on the class website

Best test practice: Take the past test on the class website Bes es pracice: Take he pas es on he class websie hp://communiy.wvu.edu/~miholcomb/phys11.hml I have posed he key o he WebAssign pracice es. Newon Previous Tes is Online. Forma will be idenical. You migh

More information

MAXIMUM FLOW. introduction Ford-Fulkerson algorithm maxflow-mincut theorem

MAXIMUM FLOW. introduction Ford-Fulkerson algorithm maxflow-mincut theorem MAXIMUM FLOW inroducion Ford-Fulkeron algorihm maxflow-mincu heorem Mincu problem Inpu. An edge-weighed digraph, ource verex, and arge verex. each edge ha a poiive capaciy capaciy 9 10 4 15 15 10 5 8 10

More information

Two Dimensional Dynamics

Two Dimensional Dynamics Physics 11: Lecure 6 Two Dimensional Dynamics Today s lecure will coer Chaper 4 Exam I Physics 11: Lecure 6, Pg 1 Brie Reiew Thus Far Newon s Laws o moion: SF=ma Kinemaics: x = x + + ½ a Dynamics Today

More information

Two Dimensional Dynamics

Two Dimensional Dynamics Physics 11: Lecure 6 Two Dimensional Dynamics Today s lecure will coer Chaper 4 Saring Wed Sep 15, W-F oice hours will be in 3 Loomis. Exam I M oice hours will coninue in 36 Loomis Physics 11: Lecure 6,

More information

Average Case Lower Bounds for Monotone Switching Networks

Average Case Lower Bounds for Monotone Switching Networks Average Cae Lower Bound for Monoone Swiching Nework Yuval Filmu, Toniann Piai, Rober Robere, Sephen Cook Deparmen of Compuer Science Univeriy of Torono Monoone Compuaion (Refreher) Monoone circui were

More information

HYPOTHESIS TESTING. four steps. 1. State the hypothesis and the criterion. 2. Compute the test statistic. 3. Compute the p-value. 4.

HYPOTHESIS TESTING. four steps. 1. State the hypothesis and the criterion. 2. Compute the test statistic. 3. Compute the p-value. 4. Inrodcion o Saisics in Psychology PSY Professor Greg Francis Lecre 24 Hypohesis esing for correlaions Is here a correlaion beween homework and exam grades? for seps. Sae he hypohesis and he crierion 2.

More information

Phys 221 Fall Chapter 2. Motion in One Dimension. 2014, 2005 A. Dzyubenko Brooks/Cole

Phys 221 Fall Chapter 2. Motion in One Dimension. 2014, 2005 A. Dzyubenko Brooks/Cole Phys 221 Fall 2014 Chaper 2 Moion in One Dimension 2014, 2005 A. Dzyubenko 2004 Brooks/Cole 1 Kinemaics Kinemaics, a par of classical mechanics: Describes moion in erms of space and ime Ignores he agen

More information

CORRELATION. two variables may be related. SAT scores, GPA hours in therapy, self-esteem grade on homeworks, grade on exams

CORRELATION. two variables may be related. SAT scores, GPA hours in therapy, self-esteem grade on homeworks, grade on exams Inrodcion o Saisics in sychology SY 1 rofessor Greg Francis Lecre 1 correlaion How changes in one ariable correspond o change in anoher ariable. wo ariables may be relaed SAT scores, GA hors in herapy,

More information

CS376 Computer Vision Lecture 6: Optical Flow

CS376 Computer Vision Lecture 6: Optical Flow CS376 Compuer Vision Lecure 6: Opical Flow Qiing Huang Feb. 11 h 2019 Slides Credi: Krisen Grauman and Sebasian Thrun, Michael Black, Marc Pollefeys Opical Flow mage racking 3D compuaion mage sequence

More information

Network Flows: Introduction & Maximum Flow

Network Flows: Introduction & Maximum Flow CSC 373 - lgorihm Deign, nalyi, and Complexiy Summer 2016 Lalla Mouaadid Nework Flow: Inroducion & Maximum Flow We now urn our aenion o anoher powerful algorihmic echnique: Local Search. In a local earch

More information

COMPETITIVE LOCAL ROUTING WITH CONSTRAINTS

COMPETITIVE LOCAL ROUTING WITH CONSTRAINTS COMPETITIVE LOCAL ROUTING WITH CONSTRAINTS Proenji Boe, Rolf Fagerberg, André van Renen, and Sander Verdoncho Abrac. Le P be a e of n verice in he plane and S a e of non-croing line egmen beween verice

More information

Star coloring of sparse graphs

Star coloring of sparse graphs Sar coloring of pare graph Yeha B Daniel W. Cranon Mickaël Monaier André Rapad Weifan Wang Abrac A proper coloring of he erice of a graph i called a ar coloring if he nion of eery o color clae indce a

More information

1 Motivation and Basic Definitions

1 Motivation and Basic Definitions CSCE : Deign and Analyi of Algorihm Noe on Max Flow Fall 20 (Baed on he preenaion in Chaper 26 of Inroducion o Algorihm, 3rd Ed. by Cormen, Leieron, Rive and Sein.) Moivaion and Baic Definiion Conider

More information

Ground Rules. PC1221 Fundamentals of Physics I. Kinematics. Position. Lectures 3 and 4 Motion in One Dimension. A/Prof Tay Seng Chuan

Ground Rules. PC1221 Fundamentals of Physics I. Kinematics. Position. Lectures 3 and 4 Motion in One Dimension. A/Prof Tay Seng Chuan Ground Rules PC11 Fundamenals of Physics I Lecures 3 and 4 Moion in One Dimension A/Prof Tay Seng Chuan 1 Swich off your handphone and pager Swich off your lapop compuer and keep i No alking while lecure

More information

Let us start with a two dimensional case. We consider a vector ( x,

Let us start with a two dimensional case. We consider a vector ( x, Roaion marices We consider now roaion marices in wo and hree dimensions. We sar wih wo dimensions since wo dimensions are easier han hree o undersand, and one dimension is a lile oo simple. However, our

More information

Basic Tools CMSC 641. Running Time. Problem. Problem. Algorithmic Design Paradigms. lg (n!) (lg n)! (lg n) lgn n.2

Basic Tools CMSC 641. Running Time. Problem. Problem. Algorithmic Design Paradigms. lg (n!) (lg n)! (lg n) lgn n.2 Baic Tool CMSC April, Review Aympoic Noaion Order of Growh Recurrence relaion Daa Srucure Li, Heap, Graph, Tree, Balanced Tree, Hah Table Advanced daa rucure: Binomial Heap, Fibonacci Heap Soring Mehod

More information

x(m) t(sec ) Homework #2. Ph 231 Introductory Physics, Sp-03 Page 1 of 4

x(m) t(sec ) Homework #2. Ph 231 Introductory Physics, Sp-03 Page 1 of 4 Homework #2. Ph 231 Inroducory Physics, Sp-03 Page 1 of 4 2-1A. A person walks 2 miles Eas (E) in 40 minues and hen back 1 mile Wes (W) in 20 minues. Wha are her average speed and average velociy (in ha

More information

Physics 101: Lecture 03 Kinematics Today s lecture will cover Textbook Sections (and some Ch. 4)

Physics 101: Lecture 03 Kinematics Today s lecture will cover Textbook Sections (and some Ch. 4) Physics 101: Lecure 03 Kinemaics Today s lecure will coer Texbook Secions 3.1-3.3 (and some Ch. 4) Physics 101: Lecure 3, Pg 1 A Refresher: Deermine he force exered by he hand o suspend he 45 kg mass as

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

homekeeping. simplified

homekeeping. simplified 0 1 8 homekeeping ociey your ecre o geing hing done homekeeping. implified JANUARY 018 homekeeping ociey whole houe decluer monhly focu + quick ip W H O L E H O U S E D E C L U T T E R C H E C K L I S

More information

Derivatives of Inverse Trig Functions

Derivatives of Inverse Trig Functions Derivaives of Inverse Trig Fncions Ne we will look a he erivaives of he inverse rig fncions. The formlas may look complicae, b I hink yo will fin ha hey are no oo har o se. Yo will js have o be carefl

More information

Unit 1 Test Review Physics Basics, Movement, and Vectors Chapters 1-3

Unit 1 Test Review Physics Basics, Movement, and Vectors Chapters 1-3 A.P. Physics B Uni 1 Tes Reiew Physics Basics, Moemen, and Vecors Chapers 1-3 * In sudying for your es, make sure o sudy his reiew shee along wih your quizzes and homework assignmens. Muliple Choice Reiew:

More information

Flow networks, flow, maximum flow. Some definitions. Edmonton. Saskatoon Winnipeg. Vancouver Regina. Calgary. 12/12 a.

Flow networks, flow, maximum flow. Some definitions. Edmonton. Saskatoon Winnipeg. Vancouver Regina. Calgary. 12/12 a. Flow nework, flow, maximum flow Can inerpre direced graph a flow nework. Maerial coure hrough ome yem from ome ource o ome ink. Source produce maerial a ome eady rae, ink conume a ame rae. Example: waer

More information

Math 333 Problem Set #2 Solution 14 February 2003

Math 333 Problem Set #2 Solution 14 February 2003 Mah 333 Problem Se #2 Soluion 14 February 2003 A1. Solve he iniial value problem dy dx = x2 + e 3x ; 2y 4 y(0) = 1. Soluion: This is separable; we wrie 2y 4 dy = x 2 + e x dx and inegrae o ge The iniial

More information

Echocardiography Project and Finite Fourier Series

Echocardiography Project and Finite Fourier Series Echocardiography Projec and Finie Fourier Series 1 U M An echocardiagram is a plo of how a porion of he hear moves as he funcion of ime over he one or more hearbea cycles If he hearbea repeas iself every

More information

16 Max-Flow Algorithms

16 Max-Flow Algorithms A process canno be undersood by sopping i. Undersanding mus move wih he flow of he process, mus join i and flow wih i. The Firs Law of Mena, in Frank Herber s Dune (196) There s a difference beween knowing

More information

Maximum Flow and Minimum Cut

Maximum Flow and Minimum Cut // Sovie Rail Nework, Maximum Flow and Minimum Cu Max flow and min cu. Two very rich algorihmic problem. Cornerone problem in combinaorial opimizaion. Beauiful mahemaical dualiy. Nework Flow Flow nework.

More information

first-order circuit Complete response can be regarded as the superposition of zero-input response and zero-state response.

first-order circuit Complete response can be regarded as the superposition of zero-input response and zero-state response. Experimen 4:he Sdies of ransiional processes of 1. Prpose firs-order circi a) Use he oscilloscope o observe he ransiional processes of firs-order circi. b) Use he oscilloscope o measre he ime consan of

More information

Introduction to Congestion Games

Introduction to Congestion Games Algorihmic Game Theory, Summer 2017 Inroducion o Congeion Game Lecure 1 (5 page) Inrucor: Thoma Keelheim In hi lecure, we ge o know congeion game, which will be our running example for many concep in game

More information

6.8 Laplace Transform: General Formulas

6.8 Laplace Transform: General Formulas 48 HAP. 6 Laplace Tranform 6.8 Laplace Tranform: General Formula Formula Name, ommen Sec. F() l{ f ()} e f () d f () l {F()} Definiion of Tranform Invere Tranform 6. l{af () bg()} al{f ()} bl{g()} Lineariy

More information

CHAPTER THREE MOTION IN A STRAIGHT LINE

CHAPTER THREE MOTION IN A STRAIGHT LINE PHYSICS Moion In ne Dimenion j k CHPTER THREE MTIN IN STRIGHT LINE. INTRDUCTIN Moion n objec i aid o be in moion, if i poiion chane wih repec o ime. Thi i relaed o he oberer. If i poiion i no chanin, he

More information

Chapter 2 The Derivative Applied Calculus 107. We ll need a rule for finding the derivative of a product so we don t have to multiply everything out.

Chapter 2 The Derivative Applied Calculus 107. We ll need a rule for finding the derivative of a product so we don t have to multiply everything out. Chaper The Derivaive Applie Calculus 107 Secion 4: Prouc an Quoien Rules The basic rules will le us ackle simple funcions. Bu wha happens if we nee he erivaive of a combinaion of hese funcions? Eample

More information

Chapter 12: Velocity, acceleration, and forces

Chapter 12: Velocity, acceleration, and forces To Feel a Force Chaper Spring, Chaper : A. Saes of moion For moion on or near he surface of he earh, i is naural o measure moion wih respec o objecs fixed o he earh. The 4 hr. roaion of he earh has a measurable

More information

Physics 240: Worksheet 16 Name

Physics 240: Worksheet 16 Name Phyic 4: Workhee 16 Nae Non-unifor circular oion Each of hee proble involve non-unifor circular oion wih a conan α. (1) Obain each of he equaion of oion for non-unifor circular oion under a conan acceleraion,

More information

Page 1 o 13 1. The brighes sar in he nigh sky is α Canis Majoris, also known as Sirius. I lies 8.8 ligh-years away. Express his disance in meers. ( ligh-year is he disance coered by ligh in one year. Ligh

More information

Seminar 4: Hotelling 2

Seminar 4: Hotelling 2 Seminar 4: Hoelling 2 November 3, 211 1 Exercise Par 1 Iso-elasic demand A non renewable resource of a known sock S can be exraced a zero cos. Demand for he resource is of he form: D(p ) = p ε ε > A a

More information

Today s topics. CSE 421 Algorithms. Problem Reduction Examples. Problem Reduction. Undirected Network Flow. Bipartite Matching. Problem Reductions

Today s topics. CSE 421 Algorithms. Problem Reduction Examples. Problem Reduction. Undirected Network Flow. Bipartite Matching. Problem Reductions Today opic CSE Algorihm Richard Anderon Lecure Nework Flow Applicaion Prolem Reducion Undireced Flow o Flow Biparie Maching Dijoin Pah Prolem Circulaion Loweround conrain on flow Survey deign Prolem Reducion

More information

Energy Problems 9/3/2009. W F d mgh m s 196J 200J. Understanding. Understanding. Understanding. W F d. sin 30

Energy Problems 9/3/2009. W F d mgh m s 196J 200J. Understanding. Understanding. Understanding. W F d. sin 30 9/3/009 nderanding Energy Proble Copare he work done on an objec o a.0 kg a) In liing an objec 0.0 b) Puhing i up a rap inclined a 30 0 o he ae inal heigh 30 0 puhing 0.0 liing nderanding Copare he work

More information

Greedy. I Divide and Conquer. I Dynamic Programming. I Network Flows. Network Flow. I Previous topics: design techniques

Greedy. I Divide and Conquer. I Dynamic Programming. I Network Flows. Network Flow. I Previous topics: design techniques Algorihm Deign Technique CS : Nework Flow Dan Sheldon April, reedy Divide and Conquer Dynamic Programming Nework Flow Comparion Nework Flow Previou opic: deign echnique reedy Divide and Conquer Dynamic

More information

CORRELATION. two variables may be related. SAT scores, GPA hours in therapy, self-esteem grade on homeworks, grade on exams

CORRELATION. two variables may be related. SAT scores, GPA hours in therapy, self-esteem grade on homeworks, grade on exams Inrodcion o Saisics in sychology SY 1 rofessor Greg Francis Lecre 1 correlaion Did I damage my dagher s eyes? CORRELATION wo ariables may be relaed SAT scores, GA hors in herapy, self-eseem grade on homeworks,

More information

Christos Papadimitriou & Luca Trevisan November 22, 2016

Christos Papadimitriou & Luca Trevisan November 22, 2016 U.C. Bereley CS170: Algorihms Handou LN-11-22 Chrisos Papadimiriou & Luca Trevisan November 22, 2016 Sreaming algorihms In his lecure and he nex one we sudy memory-efficien algorihms ha process a sream

More information

Kinematics in two Dimensions

Kinematics in two Dimensions Lecure 5 Chaper 4 Phsics I Kinemaics in wo Dimensions Course websie: hp://facul.uml.edu/andri_danlo/teachin/phsicsi PHYS.141 Lecure 5 Danlo Deparmen of Phsics and Applied Phsics Toda we are oin o discuss:

More information

Key Chemistry 102 Discussion #4, Chapter 11 and 12 Student name TA name Section. ; u= M. and T(red)=2*T(yellow) ; t(yellow)=4*t(red) or

Key Chemistry 102 Discussion #4, Chapter 11 and 12 Student name TA name Section. ; u= M. and T(red)=2*T(yellow) ; t(yellow)=4*t(red) or Key Chemisry 0 Discssion #4, Chaper and Sden name TA name Secion. Two idenical conainers, one red and one yellow, are inflaed wih differen gases a he same volme and pressre. Boh conainers have an idenically

More information

Physics for Scientists and Engineers. Chapter 2 Kinematics in One Dimension

Physics for Scientists and Engineers. Chapter 2 Kinematics in One Dimension Physics for Scieniss and Engineers Chaper Kinemaics in One Dimension Spring, 8 Ho Jung Paik Kinemaics Describes moion while ignoring he agens (forces) ha caused he moion For now, will consider moion in

More information

INSTANTANEOUS VELOCITY

INSTANTANEOUS VELOCITY INSTANTANEOUS VELOCITY I claim ha ha if acceleraion is consan, hen he elociy is a linear funcion of ime and he posiion a quadraic funcion of ime. We wan o inesigae hose claims, and a he same ime, work

More information

24 Single-Source Shortest Paths

24 Single-Source Shortest Paths Single-Source Shore Pah Profeor Parick wihe o find he hore poible roue from Phoeni o Indianapoli. Given a road map of he Unied Sae on which he diance beween each pair of adjacen inerecion i marked, how

More information

Please Complete Course Survey. CMPSCI 311: Introduction to Algorithms. Approximation Algorithms. Coping With NP-Completeness. Greedy Vertex Cover

Please Complete Course Survey. CMPSCI 311: Introduction to Algorithms. Approximation Algorithms. Coping With NP-Completeness. Greedy Vertex Cover Pleae Complee Coure Survey CMPSCI : Inroducion o Algorihm Dealing wih NP-Compleene Dan Sheldon hp: //owl.oi.uma.edu/parner/coureevalsurvey/uma/ Univeriy of Maachue Slide Adaped from Kevin Wayne La Compiled:

More information