Barking dogs: A Fréchet distance variant for detour detection (2402.13159v1)
Abstract: Imagine you are a dog behind a fence $Q$ and a hiker is passing by at constant speed along the hiking path $P$. 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 $s$. Can you optimize your route along the fence $Q$ in order to maximize the barking time with radius $\rho$, assuming you can run backwards and forward at speed at most $s$? We define the barking distance from a polyline $P$ on $n$ vertices to a polyline $Q$ on $m$ vertices as the time that the hiker stays in your barking radius if you run optimally along $Q$. This asymmetric similarity measure between two curves can be used to detect outliers in $Q$ compared to $P$ 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 $P$ and $Q$ are both discrete. For this case we show that the barking distance from $P$ to $Q$ can be computed in $O(nm\log s)$ time. In the semi-discrete setting, the traversal of $Q$ is continuous while the one of $P$ is again discrete. Here, we show how to compute the barking distance in time $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.
- Tight hardness results for lcs and other sequence similarity measures. In Proceedings of the IEEE 56th Annual Symposium on Foundations of Computer Science (FOCS 2015), pages 59–78. IEEE, 2015. doi:10.1109/focs.2015.14.
- An algorithm for organization of information. In Doklady Akademii Nauk SSSR, volume 146, pages 263–266. Russian Academy of Sciences, 1962.
- Motion classification using dynamic time warping. In Proceedings of the 2008 IEEE 10th Workshop on Multimedia Signal Processing (MMSP’08), pages 622–627. IEEE, 2008. doi:10.1109/MMSP.2008.4665151.
- Computing the discrete fréchet distance in subquadratic time. SIAM Journal on Computing, 43(2):429–449, 2014. doi:10.1137/130920526.
- Near-linear time approximation algorithms for curve simplification. Algorithmica, 42:203–219, 2005. doi:10.1007/S00453-005-1165-Y.
- Computing the Fréchet distance between two polygonal curves. International Journal of Computational Geometry & Applications, 5(01n02):75–91, 1995. doi:10.1142/S0218195995000064.
- Karl Bringmann. Why walking the dog takes time: Fréchet distance has no strongly subquadratic algorithms unless SETH fails. In Proceedings of the IEEE 55th Annual Symposium on Foundations of Computer Science (FOCS’14), pages 661–670. IEEE, 2014. doi:10.1109/FOCS.2014.76.
- Quadratic conditional lower bounds for string problems and dynamic time warping. In Proceedings of the IEEE 56th Annual Symposium on Foundations of Computer Science (FOCS 2015), pages 79–97. IEEE, 2015. doi:10.1109/focs.2015.15.
- Approximability of the discrete Fréchet distance. Journal of Computational Geometry, 7(2):46–76, 2016. doi:10.20382/JOCG.V7I2A4.
- Four soviets walk the dog: Improved bounds for computing the Fréchet distance. Discrete & Computational Geometry, 58(1):180–216, 2017. doi:10.1007/S00454-017-9878-7.
- Computing continuous dynamic time warping of time series in polynomial time. In Proceedings of the 38th International Symposium on Computational Geometry (SoCG’22), volume 224 of LIPIcs, pages 22:1–22:16. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2022. doi:10.4230/LIPIcs.SoCG.2022.22.
- SETH says: Weak Fréchet distance is faster, but only if it is continuous and in one dimension. In Proceedings of the 2019 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA’19), pages 2887–2901. SIAM, 2019. doi:10.1137/1.9781611975482.179.
- Maike Buchin. On the computability of the Fréchet distance between triangulated surfaces. PhD thesis, FU Berlin, 2007. doi:10.17169/refubium-6111.
- Curve simplification and clustering under Fréchet distance. In Proceedings of the 2023 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA’23), pages 1414–1432. SIAM, 2023. doi:10.1137/1.9781611977554.CH51.
- Computational geometry: algorithms and applications, 3rd Edition. Springer, 2008. doi:10.1007/978-3-540-77974-2.
- Clustering time series under the Fréchet distance. In Proceedings of the 2016 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA’16), pages 766–785. SIAM, 2016. doi:10.1137/1.9781611974331.CH55.
- Dynamic time warping and geometric edit distance: Breaking the quadratic barrier. ACM Transactions on Algorithms, 14(4):50:1–50:17, 2018. doi:10.1145/3230734.
- Weighted dynamic time warping for time series classification. Pattern recognition, 44(9):2231–2240, 2011. doi:10.1016/J.PATCOG.2010.09.022.
- Rohit J. Kate. Using dynamic time warping distances as features for improved time series classification. Data Mining and Knowledge Discovery, 30:283–312, 2016. doi:10.1007/S10618-015-0418-X.
- William Kuszmaul. Dynamic time warping in strongly subquadratic time: Algorithms for the low-distance regime and approximate evaluation. In Proceedings of the 46th International Colloquium on Automata, Languages, and Programming (ICALP’19), volume 132 of LIPIcs, pages 80:1–80:15. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2019. doi:10.4230/LIPIcs.ICALP.2019.80.
- Chroma binary similarity and local alignment applied to cover song identification. IEEE Transactions on Audio, Speech, and Language Processing, 16(6):1138–1151, 2008. doi:10.1109/TASL.2008.924595.
- Fréchet distance based approach for searching online handwritten documents. In Proceedings of the 9th international conference on document analysis and recognition (ICDAR’07), volume 1, pages 461–465. IEEE, 2007. doi:10.1109/ICDAR.2007.4378752.
- Fréchet kernel for trajectory data analysis. In Proceedings of the 29th ACM SIGSPATIAL International Conference on Advances in Geographic Information Systems (SIGSPATIAL’21), pages 221–224, 2021. doi:10.1145/3474717.3483949.
- Stephen J. Taylor. Modelling financial time series. World cientific, 2008.
- Global curve simplification. In Proceedings of the 27th Annual European Symposium on Algorithms (ESA’19), volume 144 of LIPIcs, pages 67:1–67:14. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2019. doi:10.4230/LIPICS.ESA.2019.67.
- A subquadratic nϵitalic-ϵ{}^{\mbox{{$\epsilon$}}}start_FLOATSUPERSCRIPT italic_ϵ end_FLOATSUPERSCRIPT-approximation for the continuous fréchet distance. In Proceedings of the 2023 ACM-SIAM Symposium on Discrete Algorithms, (SODA’23), pages 1759–1776. SIAM, 2023. doi:10.1137/1.9781611977554.CH67.
- Time series clustering based on dynamic time warping. In Proceedings of the 2018 IEEE 9th International Conference on Software Engineering and Service Science (ICSESS’18), pages 487–490. IEEE, 2018. doi:10.1109/ICSESS.2018.8663857.
- Ryan Williams. A new algorithm for optimal constraint satisfaction and its implications. In Proceedings of the 31st International Colloquium on Automata, Languages and Programming (ICALP’04), volume 3142 of LNCS, pages 1227–1237. Springer, 2004. doi:10.1007/978-3-540-27836-8_101.
- Öz Yilmaz. Seismic data analysis: Processing, inversion, and interpretation of seismic data. Society of Exploration Geophysicists, 2001. doi:10.1190/1.9781560801580.fm.
- Algorithm of on-line handwriting signature verification based on discrete Fréchet distance. In Proceedings of the 3rd International Symposium on Intelligence Computation and Applications: Advances in Computation and Intelligence (ISICA’08), volume 5370 of LNCS, pages 461–469. Springer, 2008. doi:10.1007/978-3-540-92137-0_51.
Paper Prompts
Sign up for free to create and run prompts on this paper using GPT-5.
Top Community Prompts
Collections
Sign up for free to add this paper to one or more collections.