Barking dogs: A Fr\'echet distance variant for detour detection
Abstract
Imagine you are a dog behind a fence and a hiker is passing by at constant speed along the hiking path . 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 and, as a dog, you have bounded speed . Can you optimize your route along the fence in order to maximize the barking time with radius , assuming you can run backwards and forward at speed at most ? We define the barking distance from a polyline on vertices to a polyline on vertices as the time that the hiker stays in your barking radius if you run optimally along . This asymmetric similarity measure between two curves can be used to detect outliers in compared to 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 and are both discrete. For this case we show that the barking distance from to can be computed in time. In the semi-discrete setting, the traversal of is continuous while the one of is again discrete. Here, we show how to compute the barking distance in time . 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}
}