English

Barking dogs: A Fr\'echet distance variant for detour detection

Computational Geometry 2024-02-21 v1

Abstract

Imagine you are a dog behind a fence QQ and a hiker is passing by at constant speed along the hiking path PP. In order to fulfil your duties as a watchdog, you desire to bark as long as possible at the human. However, your barks can only be heard in a fixed radius ρ\rho and, as a dog, you have bounded speed ss. Can you optimize your route along the fence QQ in order to maximize the barking time with radius ρ\rho, assuming you can run backwards and forward at speed at most ss? We define the barking distance from a polyline PP on nn vertices to a polyline QQ on mm vertices as the time that the hiker stays in your barking radius if you run optimally along QQ. This asymmetric similarity measure between two curves can be used to detect outliers in QQ compared to PP that other established measures like the Fr\'echet distance and Dynamic Time Warping fail to capture at times. We consider this measure in three different settings. In the discrete setting, the traversals of PP and QQ are both discrete. For this case we show that the barking distance from PP to QQ can be computed in O(nmlogs)O(nm\log s) time. In the semi-discrete setting, the traversal of QQ is continuous while the one of PP is again discrete. Here, we show how to compute the barking distance in time O(nmlog(nm))O(nm\log (nm)). Finally, in the continuous setting in which both traversals are continuous, we show that the problem can be solved in polynomial time. For all the settings we show that, assuming SETH, no truly subquadratic algorithm can exist.

Keywords

Cite

@article{arxiv.2402.13159,
  title  = {Barking dogs: A Fr\'echet distance variant for detour detection},
  author = {Ivor van der Hoog and Fabian Klute and Irene Parada and Patrick Schnider},
  journal= {arXiv preprint arXiv:2402.13159},
  year   = {2024}
}