1 SOFSEM 2007 Weighted Nearest Neighbor Algorithms for the Graph Exploration Problem on Cycles Eiji Miyano Kyushu Institute of Technology, Japan Joint.

Slides:



Advertisements
Similar presentations
Routing Complexity of Faulty Networks Omer Angel Itai Benjamini Eran Ofek Udi Wieder The Weizmann Institute of Science.
Advertisements

Great Theoretical Ideas in Computer Science
Price Of Anarchy: Routing
Approximation Algorithms Chapter 14: Rounding Applied to Set Cover.
Great Theoretical Ideas in Computer Science for Some.
Lecture 24 Coping with NPC and Unsolvable problems. When a problem is unsolvable, that's generally very bad news: it means there is no general algorithm.
Online Scheduling with Known Arrival Times Nicholas G Hall (Ohio State University) Marc E Posner (Ohio State University) Chris N Potts (University of Southampton)
9.2 The Traveling Salesman Problem. Let us return to the question of finding a cheapest possible cycle through all the given towns: We have n towns (points)
Combinatorial Algorithms
2007/3/6 1 Online Chasing Problems for Regular n-gons Hiroshi Fujiwara* Kazuo Iwama Kouki Yonezawa.
Approximation Algorithms for Orienteering and Discounted-Reward TSP Blum, Chawla, Karger, Lane, Meyerson, Minkoff CS 599: Sequential Decision Making in.
Approximating Maximum Edge Coloring in Multigraphs
Computability and Complexity 23-1 Computability and Complexity Andrei Bulatov Search and Optimization.
1 Discrete Structures & Algorithms Graphs and Trees: II EECE 320.
Approximation Algorithms
Branch and Bound Searching Strategies
Approximation Algorithms: Combinatorial Approaches Lecture 13: March 2.
Branch and Bound Similar to backtracking in generating a search tree and looking for one or more solutions Different in that the “objective” is constrained.
CPSC 689: Discrete Algorithms for Mobile and Wireless Systems Spring 2009 Prof. Jennifer Welch.
1 Optimization problems such as MAXSAT, MIN NODE COVER, MAX INDEPENDENT SET, MAX CLIQUE, MIN SET COVER, TSP, KNAPSACK, BINPACKING do not have a polynomial.
The Theory of NP-Completeness
1 Combinatorial Dominance Analysis Keywords: Combinatorial Optimization (CO) Approximation Algorithms (AA) Approximation Ratio (a.r) Combinatorial Dominance.
9-1 Chapter 9 Approximation Algorithms. 9-2 Approximation algorithm Up to now, the best algorithm for solving an NP-complete problem requires exponential.
Approximation Algorithms Motivation and Definitions TSP Vertex Cover Scheduling.
Approximation Algorithms
 On-line problem  Input arrives one at a time, and a decision is made (and cannot be changed).  In the minADM problem: lightpaths arrive one at a time,
The Theory of NP-Completeness 1. Nondeterministic algorithms A nondeterminstic algorithm consists of phase 1: guessing phase 2: checking If the checking.
1 Introduction to Approximation Algorithms. 2 NP-completeness Do your best then.
The Traveling Salesperson Problem Algorithms and Networks.
Computing and Communicating Functions over Sensor Networks A.Giridhar and P. R. Kumar Presented by Srikanth Hariharan.
Complexity Classes (Ch. 34) The class P: class of problems that can be solved in time that is polynomial in the size of the input, n. if input size is.
Yossi Azar Tel Aviv University Joint work with Ilan Cohen Serving in the Dark 1.
1 Introduction to Approximation Algorithms. 2 NP-completeness Do your best then.
Randomized Online Algorithm for Minimum Metric Bipartite Matching Adam Meyerson UCLA.
Batch Scheduling of Conflicting Jobs Hadas Shachnai The Technion Based on joint papers with L. Epstein, M. M. Halldórsson and A. Levin.
Chapter 15 Approximation Algorithm Introduction Basic Definition Difference Bounds Relative Performance Bounds Polynomial approximation Schemes Fully Polynomial.
On a Network Creation Game PoA Seminar Presenting: Oren Gilon Based on an article by Fabrikant et al 1.
1 Combinatorial Algorithms Parametric Pruning. 2 Metric k-center Given a complete undirected graph G = (V, E) with nonnegative edge costs satisfying the.
Online Algorithms By: Sean Keith. An online algorithm is an algorithm that receives its input over time, where knowledge of the entire input is not available.
Princeton University COS 423 Theory of Algorithms Spring 2001 Kevin Wayne Approximation Algorithms These lecture slides are adapted from CLRS.
Many random walks are faster than one Noga AlonTel Aviv University Chen AvinBen Gurion University Michal KouckyCzech Academy of Sciences Gady KozmaWeizmann.
First lecture in Mathematics
The Traveling Salesman Problem Over Seventy Years of Research, and a Million in Cash Presented by Vladimir Coxall.
Thursday, May 9 Heuristic Search: methods for solving difficult optimization problems Handouts: Lecture Notes See the introduction to the paper.
CSE 589 Part VI. Reading Skiena, Sections 5.5 and 6.8 CLR, chapter 37.
Topics in Algorithms 2007 Ramesh Hariharan. Tree Embeddings.
A Optimal On-line Algorithm for k Servers on Trees Author : Marek Chrobak Lawrence L. Larmore 報告人:羅正偉.
© The McGraw-Hill Companies, Inc., Chapter 12 On-Line Algorithms.
11 -1 Chapter 12 On-Line Algorithms On-Line Algorithms On-line algorithms are used to solve on-line problems. The disk scheduling problem The requests.
Branch and Bound Searching Strategies
CSE 421 Algorithms Richard Anderson Lecture 27 NP-Completeness Proofs.
1 Concurrent Counting is harder than Queuing Costas Busch Rensselaer Polytechnic Intitute Srikanta Tirthapura Iowa State University.
TU/e Algorithms (2IL15) – Lecture 12 1 Linear Programming.
Approximation Algorithms by bounding the OPT Instructor Neelima Gupta
TU/e Algorithms (2IL15) – Lecture 11 1 Approximation Algorithms.
The Theory of NP-Completeness
Richard Anderson Lecture 26 NP-Completeness
Optimization problems such as
Richard Anderson Lecture 26 NP-Completeness
Hamiltonian Cycle and TSP
Hamiltonian Cycle and TSP
Great Theoretical Ideas in Computer Science
Chapter 5. Optimal Matchings
Computability and Complexity
Graph Algorithm.
Richard Anderson Lecture 25 NP-Completeness
Coverage Approximation Algorithms
Introduction Wireless Ad-Hoc Network
The Theory of NP-Completeness
Approximation Algorithms
Presentation transcript:

1 SOFSEM 2007 Weighted Nearest Neighbor Algorithms for the Graph Exploration Problem on Cycles Eiji Miyano Kyushu Institute of Technology, Japan Joint work with Yuichi Asahiro, Shuichi Miyazaki, and Takuro Yoshimuta

2 Overview  Problems Related problem: Traveling Salesperson Problem (TSP) Our problem: Online Graph Exploration Problem  Simple online algorithms and their performances  Our algorithm: Weighted nearest neighbor algorithm  Main results 1.5 competitive algorithm for special graphs, ie., cycles 1.5 tight example 1.25 lower bound for deterministic online algorithms  Conclusions

3 One of the most popular problems Traveling Salesperson Problem, TSP (more precisely, the shortest tour problem) Input:  We in advance have the complete map of an input graph, i.e., the origin node o, the number of nodes, the number of edges, the length of every edge, and the topology. Goal:  Minimize the total distance of the traveled tour, beginning at the origin o, visiting all the nodes at least once, and finally returning to the origin o. origin

4 One of the most popular problems Traveling Salesperson Problem, TSP (more precisely, the shortest tour problem) Input:  We in advance have the complete map of an input graph, i.e., the origin node o, the number of nodes, the number of edges, the length of every edge, the topology. Goal:  Minimize the total distance of the traveled tour, beginning at the origin o, visiting all the nodes at least once, and finally returning to the origin o. origin Total distance =

5 Our problem Online Graph Exploration Problem Initial Information:  Only the partial information of the map is given, i.e., the searcher knows only the origin o its neighbor nodes the length of edge (o, u) for each neighbor node u  By using the partial information, the searcher has to select the next node and visit it. origin u 3 5 ??? searcher

6 Our problem Online Graph Exploration Problem Initial Information:  Only the partial information of the map is given the origin o its neighbor nodes the length of edge (o, u) for each neighbor node u Online New Information:  When the searcher visits a node u, its neighbor nodes v’s, and the length of edges (u, v)’s are obtained. origin u ???

7 Our problem Online Graph Exploration Problem Initial Information:  Only the partial information of map is given the origin o its neighbor nodes the length of edge (o, u) for each neighbor node u Online Information:  When the searcher visits a node u, its neighbor nodes v’s, and the length of edges (u, v)’s are obtained. Goal:  Minimize the total distance of the traveled tour, beginning at the origin o, visiting all the nodes at least once, and returning to the origin o ???

8 Quality of an online algorithm Competitive analysis  Let OPT(G) denote the total length of the shortest exploring tour of G taken by an optimal offline algorithm OPT.  Let ALG(G) denote the total length of the exploring tour of G taken by algorithm ALG. We say that ALG is  -competitive for a class of graphs G if for all graphs G  G.  The ratio  is called the competitive ratio.  ALG is competitive if ALG is c -competitive for some constant c.

9 Strategy 1: Nearest Neighbor Algorithm (NN)  always chooses the unvisited new node nearest to the current position.  NN is Bad [RSL97] There is a planar graph G (with n nodes) for which origin a b a b

NN is bad  There is a planar graph G for which [RSL97] origin OPT(G) = 32 NN(G) = 66 Generally, OPT(G) = n NN(G) =  (nlog n)

11 Strategy 2: Depth-First algorithm (DF)  Basically, if the current node has new edges, then DF always chooses one of them.  Otherwise, DF chooses the nearest new edge. Proposition 1 DF is 1-competitive (optimal) for trees, i.e., graphs without loops. a b o d 1 origin c 7 8 2

12 DF is bad  Basically, if the current node has new edges, then DF always chooses one of them.  Otherwise, DF chooses the nearest new edge. Proposition 1’ DF is not competitive even for cycles.

13 DF is bad  Basically, if the current node has new edges, then DF always chooses one of them.  Otherwise, DF chooses the nearest new edge. Proposition 1’ DF is not competitive even for cycles. Proof.  If the graph includes cycles, the problem would become non-trivial origin OPT(G) = 6 DF(G) = 103

14 Best previous algorithm ShortCut algorithm:  proposed by Kalyanasundarama and Pruhs (TCS 130, 1994).  It is shown that ShortCut achieves the competitive ratio of 16 for planar graphs. Basic strategy of ShortCut:  the weighted nearest neighbor strategy (WNN). What is WNN?

15 Weighted Nearest Neighbor Algorithm  Suppose that the searcher is currently on u. Weighted Nearest Neighbor WNN   If d1 + d2 <   d3, then the searcher visits y;  Otherwise, the searcher visits v. Nearest Neighbor NN  sets  = 1  WNN 1 x y uv explored area d3 d1 d2

16 Weighted Nearest Neighbor Algorithm  Suppose that the searcher is currently on u. Weighted Nearest Neighbor WNN   If d1 + d2 <   d3, then the searcher visits y;  Otherwise, the searcher visits v. Nearest Neighbor NN  sets  = 1, i.e., WNN 1  visits v since > 55  worst case: its competitive ratio is  (log n) x y uv explored area

17 Weighted Nearest Neighbor Algorithm  Suppose that the searcher is currently on u. Weighted Nearest Neighbor WNN   If d1 + d2 <   d3, then the searcher visits y;  Otherwise, the searcher visits v. ShortCut [KP94]  sets  = 3, WNN 3  visits y since < 3  50  its competitive ratio is 16 for planar graphs x y uv explored area

18 This paper  Focuses the WNN strategy,  Applies WNN to cycles,  Investigates its ability more intensively. Weighted Nearest Neighbor WNN   If d1 + d2 <   d3, then the searcher visits y;  Otherwise, the searcher visits v. x y uv explored area d3 d1 d2

19 Our problem Online Graph Exploration Problem for Cycles Initial Information:  Only the partial information of map is given the origin o its neighbor nodes the length of edge (o, u) for each neighbor node u Online Information:  When the searcher visits a node u, its neighbor nodes v’s, and the length of edges (u, v)’s are obtained. Goal:  Minimize the total distance of the tour, beginning at o, visiting all the nodes at least once, and returning to o. ??? The gray area is a simple path, but the searcher does not know its shape.

20 Summary of Our Results Upper bounds for cycles:  NN (i.e., WNN 1 ) achieves the competitive ratio of 1.5 for cycles.  Our analysis of the 1.5-competitive ratio is tight since we can provide an instance for which the bound of 1.5 is attained. Lower bounds for WNN:  Setting  = 1 for WNN is the best for cycles, i.e., if   1, the competitive ratio of WNN is at least 1.5. Lower bound for general algorithms.  No deterministic online algorithm has a competitive ratio less than 1.25.

21 Cycles  Let C = (V, E, l) be a cycle with |V| = n, |E| = n, and edge-length l(e).  Let L be the sum of the length of all edges in E.  Let l max be the maximum edge length

22 Optimal Tour  If the graph is a cycle, an optimal tour forms either a simple cycle including all n edges, or a U-turn tour including n – 1 different edges

23 Our Result (1) Theorem 1: WNN 1 is 1.5-competitive for cycles. Proof. There are two cases: (Case 1) l max < L/2  OPT(G) = L OPT

24 Our Result (1) Theorem 1: WNN 1 is 1.5-competitive for cycles. Proof. There are two cases: (Case 1) l max < L/2  OPT(G) = L  WNN 1 needs at most L to visit all nodes, and at most L/2 to go back to the origin. WNN

25 Our Result (1) Theorem 1: WNN 1 is 1.5-competitive for cycles. Proof. Ttwo cases: (Case 2) l max >= L/2  OPT(G) = 2(L – l max )  WNN 1 needs at most 2(L – l max ) to visit all nodes, and at most (L – l max ) to go back to the origin.

26 Our Result (2) Theorem 2: For any , the competitive ratio of WNN  is at least 1.5 for cycles. Theorem 1: WNN 1 is 1.5-competitive for cycles. From Theorems 1 and 2, it can be obtained that  Setting  =1 for WNN  is the best for cycles.

27 Our Result (2) Theorem 2: For any , the competitive ratio of WNN  is at least 1.5 for cycles. Proof. This theorem is shown by Lemmas 1 and 2: Lemma 1: For 0 <  < 1, the competitive ratio of WNN  exceeds 1.5. Lemma 2: For 1 <= , the competitive ratio of WNN  is at least 1.5.

28 Lemma 1 Lemma 1: For 0 <  < 1, the competitive ratio of WNN  exceeds 1.5. Proof.  Construct a hard cycle C such that the searcher of WNN  goes through the longest edge, and the searcher goes through the explored edges several times, but OPT does not go through the longest edge. o x q p1p1 p2p2 y pkpk

29 Lemma 1 Lemma 1: For 0 <  < 1, the competitive ratio of WNN  exceeds 1.5. Proof.  Construct a hard cycle C such that the searcher of WNN  goes through the longest edge, and the searcher goes through the explored edges several times, but OPT does not go through the longest edge. o x q p1p1 p2p2 y pkpk

30 Lemma 1 Lemma 1: For 0 <  < 1, the competitive ratio of WNN  exceeds 1.5. Proof.  Construct a hard cycle C such that the searcher of WNN  goes through the longest edge, and the searcher goes through the explored edges several times, but OPT does not go through the longest edge. o x q p1p1 p2p2 y pkpk

31 Lemma 2 Lemma 2: For 1 <= , the competitive ratio of WNN  is at least 1.5. Proof.  Construct a different hard cycle C such that the searcher of WNN  goes through the explored edges many times, but OPT goes through every edge exactly once. o b1b1 a1a1 a2a2 b2b2 amam bmbm

32 Theorems 1 and 2 Theorem 1: WNN 1 is 1.5-competitive for cycles. Theorem 2: For any , the competitive ratio of WNN  is at least 1.5. As a result,  Setting  =1 for WNN  is the best for cycles.

33 Our Result (3) Theorem 3: No online graph exploration algorithm has a competitive ratio less than Proof. Consider two cycles ε0ε0 1 a a b c d b c d

34 Summary and Future Work Result 1: Upper and tight bounds for cycles  NN (i.e.,WNN 1 ) achieves the competitive ratio of 1.5 for cycles.  Our analysis of the 1.5-competitive ratio is tight since we can provide an instance for which the bound of 1.5 is attained. Result 2: Lower bound for general algorithms  No deterministic online algorithm has a competitive ratio less than Future Work  Different good online strategy for cycles.  Smaller competitive ratio than 16 for planar graphs.  Larger lower bound than 1.25 for general algorithms.  Competitive algorithm for general graphs.

35 Summary and Future Work Result 1: Upper and tight bounds for cycles  NN (i.e.,WNN 1 ) achieves the competitive ratio of 1.5 for cycles.  Our analysis of the 1.5-competitive ratio is tight since we can provide an instance for which the bound of 1.5 is attained. Result 2: Lower bound for general algorithms  No deterministic online algorithm has a competitive ratio less than Future Work  Different good online strategy for cycles.  Smaller competitive ratio than 16 for planar graphs.  Larger lower bound than 1.25 for general algorithms.  Competitive algorithm for general graphs. Thank you.