Download presentation

Presentation is loading. Please wait.

Published byMicah Usery Modified over 3 years ago

1
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
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
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 3 3 4 2 3 7 4 3 5 5 1 8

4
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 3 3 4 2 3 7 4 3 5 5 1 Total distance = 36 8 3

5
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
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 3 5 4 8 ???

7
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. 3 5 4 83 7 3 5 ???

8
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
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 1 24 3 2 8 1 10 a b a b

10
NN is bad There is a planar graph G for which [RSL97] origin 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 6 6 2 103 3 3 3 OPT(G) = 32 NN(G) = 66 Generally, OPT(G) = n NN(G) = (nlog n)

11
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
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
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. 1 1 100 1 origin OPT(G) = 6 DF(G) = 103

14
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
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
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 99 +50 > 55 worst case: its competitive ratio is (log n) x y uv explored area 55 99 50

17
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 99 + 50 < 3 50 its competitive ratio is 16 for planar graphs x y uv explored area 55 99 50

18
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
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
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
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 1 2 1 3 4 2

22
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. 4 31 2 5 2 4 31 200 52

23
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
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 1 2 1 1 5 10

25
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
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
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
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
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
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
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
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
33 Our Result (3) Theorem 3: No online graph exploration algorithm has a competitive ratio less than 1.25. Proof. Consider two cycles. 1 3 3 11 3 ε0ε0 1 a a b c d b c d

34
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 1.25. 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
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 1.25. 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.

Similar presentations

OK

Approximation Algorithms: Combinatorial Approaches Lecture 13: March 2.

Approximation Algorithms: Combinatorial Approaches Lecture 13: March 2.

© 2018 SlidePlayer.com Inc.

All rights reserved.

To ensure the functioning of the site, we use **cookies**. We share information about your activities on the site with our partners and Google partners: social networks and companies engaged in advertising and web analytics. For more information, see the Privacy Policy and Google Privacy & Terms.
Your consent to our cookies if you continue to use this website.

Ads by Google

Ppt on chromosomes and genes Ppt on news channels in india Ppt on electric meter testing Ppt on united nations organisation Ppt on cost center accounting Male reproductive system anatomy and physiology ppt on cells Ppt on automatic car parking system Water pollution for kids ppt on batteries Ppt on dubai in hindi Ppt on stock market trading