ETH Zurich – Distributed Computing – www.disco.ethz.ch
Roger Wattenhofer
Lower and Upper bounds for Online Directed Graph Exploration
Klaus-Tycho Förster
Directed Graph Exploration Roger Wattenhofer Klaus-Tycho Frster - - PowerPoint PPT Presentation
Lower and Upper bounds for Online Directed Graph Exploration Roger Wattenhofer Klaus-Tycho Frster @GRASTA-MAC 2015 ETH Zurich Distributed Computing www.disco.ethz.ch When in Montreal Montreal: Full of one way streets .
ETH Zurich – Distributed Computing – www.disco.ethz.ch
Roger Wattenhofer
Klaus-Tycho Förster
– All 𝑛 edges have non-negative weights – All 𝑜 nodes have a unique ID
– With unlimited memory and computational power – Has to explore the graph
𝑑𝑝𝑡𝑢 𝑝𝑔 𝑈 𝑑𝑝𝑡𝑢 𝑝𝑔 𝑝𝑞𝑢𝑗𝑛𝑏𝑚 𝑢𝑝𝑣𝑠
∀𝑢𝑝𝑣𝑠𝑡 𝑈 𝑑𝑝𝑡𝑢 𝑝𝑔 𝑈 𝑑𝑝𝑡𝑢 𝑝𝑔 𝑝𝑞𝑢𝑗𝑛𝑏𝑚 𝑢𝑝𝑣𝑠
∀𝑢𝑝𝑣𝑠𝑡 𝑈 𝑓𝑦𝑞𝑓𝑑𝑢𝑓𝑒 𝑑𝑝𝑡𝑢 𝑝𝑔 𝑈 𝑑𝑝𝑡𝑢 𝑝𝑔 𝑝𝑞𝑢𝑗𝑛𝑏𝑚 𝑢𝑝𝑣𝑠
– Approximation ratio of 2
3 log2 𝑜 [Feige & Singh 2007]
– Randomized: 𝑃(log 𝑜/log log 𝑜) [Asadpour et al. 2010]
factor of 4 at most
– Greedy uses 𝑜 − 1 paths to new nodes and then returns – The greedy path 𝑄
𝑤𝑥 from 𝑤 to a not yet visited node 𝑥 is a shortest path
– Let 𝑈 be an opt. Tour inducing a cyclic ordering of all 𝑜 nodes in 𝐻, with the tour consisting of 𝑜 segments. – The path 𝑄
𝑤𝑥 has by definition at most the cost of the whole part 𝑈 𝑤𝑥 of the
tour 𝑈, which consists of at most 𝑜 − 1 segments. – Therefore, the cost of each of the 𝑜 segments in 𝑈 has to be used at most 𝑜 − 1 times for the upper cost bound of the greedy algorithm.
𝒐 𝟑 + 𝟐 𝟑 − 𝟐 𝒐
– The cost to reach the first new node is 1, then at most 2, then at most 3, … – If we sum this up, we get an upper bound of 1 + 2 + 3 … + 𝑜 − 2 + 𝑜 − 1 + 𝑜 − 1 = −1 +
𝑗=1 𝑜
𝑗 = 𝑜2 2 + 𝑜 2 − 1 – The cost of an optimal tour is at least 𝑜.
𝒐 𝟑 + 𝟐 𝟑 − 𝟐 𝒐 is possible.
𝒐 𝟓 is possible.
– When being at a node 𝑤𝑗 , with 1 ≤ 𝑗 ≤
𝑜 2 − 2, for the first time, then the
“correct” edge can be picked with a probability of at most 𝑞 = 0.5. – Expected amount of “wrong” decisions: 0.5
𝑜 2 − 2 = 𝑜 4 − 1.
– The cost of an optimal tour is 1.
𝒐 𝟗 + 𝟒 𝟓 − 𝟐 𝒐 is possible.
–
𝑜 4
(deterministic online algorithms) –
𝑜 16 (randomized online algorithms)
– Greedy algorithm still works with same ratio (all nodes have been visited if all edges have been seen as incoming and outgoing edges) – Lower bound examples also still work
decreases lower bound by a factor of less than 2 decreases lower bound by a factor of less than 1.5
𝑜2 4 − 𝑜 4 ∈ Ο(𝑜2)
Deterministic 𝑜 − 1 2 4 − 𝑜 − 1 4 − 1 2 ∈ Ω(𝑜2) Randomized 𝑜² 16 − 𝑜 8 + 1 ∈ Ω(𝑜²)
𝟐 𝟑 𝒐 “errors”
𝒐² 𝟗
𝒐 𝟐𝟕 + 𝟔 𝟗 + 𝟐 𝟑𝒐 + 𝜻 ∈ Ω(𝑜)
ETH Zurich – Distributed Computing – www.disco.ethz.ch
Roger Wattenhofer
Klaus-Tycho Förster