Po-Lung Chen (Dont block me) d092: iRobot 2010/03/26 (1) d092: iRobot Po-Lung Chen Team Dont Block Me, National Taiwan University March 26, 2010.

Slides:



Advertisements
Similar presentations
Bellman-Ford algorithm
Advertisements

Graph Theory Arnold Mesa. Basic Concepts n A graph G = (V,E) is defined by a set of vertices and edges v3 v1 v2Vertex (v1) Edge (e1) A Graph with 3 vertices.
O(N 1.5 ) divide-and-conquer technique for Minimum Spanning Tree problem Step 1: Divide the graph into  N sub-graph by clustering. Step 2: Solve each.
1 Appendix B: Solving TSP by Dynamic Programming Course: Algorithm Design and Analysis.
Design and Analysis of Algorithms Single-source shortest paths, all-pairs shortest paths Haidong Xue Summer 2012, at GSU.
1 Review of some graph algorithms Graph G(V,E) (Chapter 22) –Directed, undirected –Representation Adjacency-list, adjacency-matrix Breadth-first search.
CSE 421 Algorithms Richard Anderson Lecture 23 Network Flow Applications.
Introduction To Algorithms CS 445 Discussion Session 8 Instructor: Dr Alon Efrat TA : Pooja Vaswani 04/04/2005.
1 Augmenting Path Algorithm s t G: Flow value = 0 0 flow capacity.
1 Weighted Bipartite Matching Lecture 4: Jan Weighted Bipartite Matching Given a weighted bipartite graph, find a matching with maximum total weight.
Nick McKeown Spring 2012 Maximum Matching Algorithms EE384x Packet Switch Architectures.
Tirgul 12 Algorithm for Single-Source-Shortest-Paths (s-s-s-p) Problem Application of s-s-s-p for Solving a System of Difference Constraints.
CSC 2300 Data Structures & Algorithms April 17, 2007 Chapter 9. Graph Algorithms.
1 Augmenting Path Algorithm s t G: Flow value = 0 0 flow capacity.
1 Advanced Algorithms All-pairs SPs DP algorithm Floyd-Warshall alg.
Shortest path algorithm. Introduction 4 The graphs we have seen so far have edges that are unweighted. 4 Many graph situations involve weighted edges.
Tracking Moving Objects in Anonymized Trajectories Nikolay Vyahhi 1, Spiridon Bakiras 2, Panos Kalnis 3, and Gabriel Ghinita 3 1 St. Petersburg State University.
Minimum Cost Flow Lecture 5: Jan 25. Problems Recap Bipartite matchings General matchings Maximum flows Stable matchings Shortest paths Minimum spanning.
Tirgul 13. Unweighted Graphs Wishful Thinking – you decide to go to work on your sun-tan in ‘ Hatzuk ’ beach in Tel-Aviv. Therefore, you take your swimming.
CSE 550 Computer Network Design Dr. Mohammed H. Sqalli COE, KFUPM Spring 2007 (Term 062)
Grace Hopper Celebration of Women in Computing Evaluating Algorithmic Design Paradigms Sashka Davis Advised by Russell Impagliazzo UC San Diego October.
1 Ford-Fulkerson method Ford-Fulkerson(G) f = 0 while( 9 simple path p from s to t in G f ) f := f + f p output f Runs in time O(|f max | |E|) where f.
The Shortest Path Problem
Advanced Algorithms Piyush Kumar (Lecture 5: Weighted Matching) Welcome to COT5405 Based on Kevin Wayne’s slides.
Using Dijkstra’s Algorithm to Find a Shortest Path from a to z 1.
Operations Research Assistant Professor Dr. Sana’a Wafa Al-Sayegh 2 nd Semester ITGD4207 University of Palestine.
CS223 Advanced Data Structures and Algorithms 1 The Bellman-Ford Shortest Path Algorithm Neil Tang 03/11/2010.
Lecture 12-2: Introduction to Computer Algorithms beyond Search & Sort.
Network Models (2) Tran Van Hoai Faculty of Computer Science & Engineering HCMC University of Technology Tran Van Hoai.
CSE 421 Algorithms Richard Anderson Lecture 24 Network Flow Applications.
Lecture 16 Maximum Matching. Incremental Method Transform from a feasible solution to another feasible solution to increase (or decrease) the value of.
Single Source Shortest-Path: The General Case (with negative edges) Bellman-Ford algorithm. Iteratively relax all edges |V|-1 times Running time? O(VE).
All-Pairs Shortest Paths & Essential Subgraph 01/25/2005 Jinil Han.
1 The Floyd-Warshall Algorithm Andreas Klappenecker.
Shortest Path Algorithms. Definitions Variants  Single-source shortest-paths problem: Given a graph, finding a shortest path from a given source.
Billy Timlen Mentor: Imran Saleemi.  Goal: Have an optimal matching  Given: List of key-points in each image/frame, Matrix of weights between nodes.
1 Network Models Transportation Problem (TP) Distributing any commodity from any group of supply centers, called sources, to any group of receiving.
CSE 421 Algorithms Richard Anderson Lecture 27 NP-Completeness and course wrap up.
CS223 Advanced Data Structures and Algorithms 1 Maximum Flow Neil Tang 3/30/2010.
1 Prim’s algorithm. 2 Minimum Spanning Tree Given a weighted undirected graph G, find a tree T that spans all the vertices of G and minimizes the sum.
All-Pairs Shortest Paths
Announcements Finish up Network Flow today Then Review for Final on Monday ◦ HW#5 is due on Monday, let me or the TA’s know if you have trouble starting.
Introduction to Algorithms All-Pairs Shortest Paths My T. UF.
CSEP 521 Applied Algorithms Richard Anderson Lecture 8 Network Flow.
Po-Lung Chen (Dont block me) d091: Urban Transport System 2010/03/26 (1) d091: Urban Transport System Po-Lung Chen Team Dont Block Me, National Taiwan.
1 Chapter 7 Network Flow Slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved.
ENGM 631 Maximum Flow Solutions. Maximum Flow Models (Flow, Capacity) (0,3) (2,2) (5,7) (0,8) (3,6) (6,8) (3,3) (4,4) (4,10)
Instructor Neelima Gupta Edited by Divya Gaur(39, MCS '09) Thanks to: Bhavya(9), Deepika(10), Deepika Bisht(11) (MCS '09)
Spanning Trees Dijkstra (Unit 10) SOL: DM.2 Classwork worksheet Homework (day 70) Worksheet Quiz next block.
ROBOT NAVIGATION AI Project Asmaa Sehnouni Jasmine Dsouza Supervised by :Dr. Pei Wang.
Richard Anderson Lecture 23 Network Flow
Lecture 22 Network Flow, Part 2
Maximum Flow Solutions
Lecture 16 Maximum Matching
Instructor: Shengyu Zhang
Edmonds-Karp Algorithm
Lecture 19-Problem Solving 4 Incremental Method
Course Contents: T1 Greedy Algorithm Divide & Conquer
Problem Solving 4.
Floyd’s Algorithm (shortest-path problem)
Augmenting Path Algorithm
Team Dont Block Me, National Taiwan University
Assignment Problem Example
Augmenting Path Algorithm
CSE 550 Computer Network Design
Graph Algorithms: Shortest Path
Maximum Flow Neil Tang 4/8/2008
Shortest Path Solutions
Lecture 22 Network Flow, Part 2
Maximum Bipartite Matching
Presentation transcript:

Po-Lung Chen (Dont block me) d092: iRobot 2010/03/26 (1) d092: iRobot Po-Lung Chen Team Dont Block Me, National Taiwan University March 26, 2010

Po-Lung Chen (Dont block me) d092: iRobot 2010/03/26 (2) Problem Description Dr. John build some mazes to test some newly designed robots, called iRobots, whether they have the ability to collect the minerals cooperatively. In a maze with rows and columns, every iRobot can move on 4 directions in 1 step. They can move onto an open cell (including cells that contain mineral or another iRobot.) Now, there are M iRobots and M cells of mineral in the maze. Minimize the total number of steps that each iRobot collect distinct cells of mineral.

Po-Lung Chen (Dont block me) d092: iRobot 2010/03/26 (3) Example R R M M M M Answer: 18 Answer: 18

Po-Lung Chen (Dont block me) d092: iRobot 2010/03/26 (4) Solution (1/2) This is a minimum cost maximum matching problem.

Po-Lung Chen (Dont block me) d092: iRobot 2010/03/26 (5) Solution (2/2) We can use the Hungarian Algorithm to solve this problem, see – But this algorithm is difficult to implement well in short period of time (i.e. during the contest.) Better to prepare it in your own toolbox. The number of iRobots is no more than 20. The graph is small, so we can run a simple shortest path algorithm for augmenting.

Po-Lung Chen (Dont block me) d092: iRobot 2010/03/26 (6) The Algorithm (1/2) We first construct the graph, set each directed edge has capacity 1, flow 0, and cost to be the minimum distance from an iRobot to a mineral cell. – If an iRobot cannot move to a certain mineral cell, do not construct this edge. Then for each augment iteration, we find the min-cost augmenting path using the shortest path algorithm (such as the Floyd-Warshall’s or Bellman-Ford’s). – Why No Dijkstra’s? – Why So Serious?

Po-Lung Chen (Dont block me) d092: iRobot 2010/03/26 (7) The Algorithm (2/2) After found a shortest path, we invert the direction of each edge on this path and set their weights to be negative (or positive, if the weight on an edge is negative.) Then add the cost to the answer. After M iterations we then have found the minimum cost to the problem.

Po-Lung Chen (Dont block me) d092: iRobot 2010/03/26 (8) Related Problems There are some problems for min/max-cost maximum matching problems in PTC. – d022: Course Enrollments – d072: On Sale – d094: Shipping Containers

Po-Lung Chen (Dont block me) d092: iRobot 2010/03/26 (9) Finally… Thanks for your attention!