CS Paper Radar

Trajectory Visibility at First Sight

Mohammad Ali Abam, Mohammad Ghodsi, Seyed Mohammad Hussein Kazemi

cs.CG ·submitted 2026-11-23 01:03 UTC · v1
published

Abstract

Let $P$ be a simple polygon with $n$ vertices, and let two moving entities $q(t)$ and $r(t)$ travel at constant (possibly distinct) speeds $v_q$ and $v_r$ along line-segment trajectories $τ_q$ and $τ_r$ inside $P$. We study the first-visibility time $ t^* = \min\bigl\{\,t \ge 0 \mid \overline{q(t)\,r(t)} \subseteq P\,\bigr\}, $ the earliest moment at which the segment joining $q(t)$ and $r(t)$ lies entirely within $P$. Prior work by Eades et al.~\cite{swat2020,eeades-phd} focused on the decision version of this question in a simple polygon. They gave a one-shot decision algorithm running in ${O}(n)$ time. For a stationary entity and a moving one, they gave a data structure with ${O}(n \log n)$ preprocessing time and ${O}(n)$ space that answers decision queries in ${O}(\log n)$ time. For two moving entities, after ${O}(n \log^5 n)$ preprocessing time, they built a data structure of size ${O}(n \log^5 n)$ with ${O}(n^{3/4}\log^3 n)$ query time. Variants for polygonal domains with holes or when entities cross the boundary of $P$ lie beyond our scope. In this work, we go beyond decision to compute $t^*$ exactly under three models for a simple polygon $P$. When both trajectories are fixed in advance, we preprocess $P$ in ${O}(n)$ time and space and answer each query $(v_q, v_r)$ in ${O}(\log n)$ time. If one trajectory $τ_r$ is fixed while $τ_q$ is given as a query, we build a structure in ${O}(n \log n)$ time and space that computes $t^*$ in ${O}(\log^2 n)$ time per query. When neither trajectory is known in advance, we develop a data structure with ${O}(n^{1+\varepsilon})$ expected preprocessing time and ${O}(n)$ space that achieves ${O}(n^{1/2}\,\text{polylog}(n))$ expected query time for any fixed $\varepsilon > 0$.

Journal ref
Abam, M.A., Ghodsi, M., Kazemi, S.M.H. (2026). Trajectory Visibility at First Sight. In: Di Giacomo, E., Mondal, D. (eds) WALCOM: Algorithms and Computation. WALCOM 2026. Lecture Notes in Computer Science, vol 16444. Springer, Singapore
DOI
10.1007/978-981-95-7127-7_33

Closest papers

Nearest neighbours by meaning across the whole index.

Two-point Approximate Shortest Path Queries among Convex Polygonal Obstacles in the Plane

cs.CG ·2026-08-10 ·Siddharth Gaur, R. Inkulu
similarity 0.60
Abstract

Given a polygonal domain $\cal P$ consisting $h$ pairwise disjoint convex polygonal obstacles together defined with $n$ vertices and a positive real number $ε$ in $(0, 0.6)$, this paper presents an algorithm to preprocess $\cal P$ in $O(n+\frac{h}ε(h+\frac{1}{\sqrtε})\lg(\frac{h}{\sqrtε}))$ time to compute data structures of size $O(n+\frac{h}{\sqrtε} (h+\frac{1}ε))$ so that given any two points $s$ and $t$ in the free space defined by $\cal P$, a path between $s$ and $t$ with a $(1+ε)$ multiplicative stretch and $13\ell$ additive stretch is output in $O(\frac{1}{\sqrtε}(\lg{\frac{h}{\sqrtε}})+\frac{h}{ε^{2.5}}(\lg{\lg(\frac{h}{\sqrtε})}))$ time. Here, $\ell$ is upper bounded by $(\sqrt{2ε}) (\max_{P_i \in \cal P} \max_{p, q \in P_i} |pq|)$.

0.04

Partially Dynamic Algorithms for Single-Source Temporal Paths

cs.DS ·2026-11-04 ·Davide Bilò, Bartłomiej Bosek, Jadwiga Czyżewska, Evangelos Kipouridis, Karol Węgrzycki +1 more
theory similarity 0.55
Abstract

We present efficient partially dynamic algorithms for maintaining earliest arrival times from a fixed source in temporal digraphs with $n$ vertices. For the incremental scenario where updates are arc insertions, our algorithm has a constant query time and requires a total update time of $O(n + m \log m)$, where $m$ is the total number of arcs added to the arc-less graph. For the decremental scenario where updates are arc removals, our algorithm has a constant query time and requires a total update time of $O(n + m \log m)$, where $m$ is the number of arcs in the graph upon its initialization. We also consider earliest-arrival queries with an arbitrary departure-time threshold and develop an incremental algorithm with $O(n+Δ_s m\log m)$ total update time, $O(\log m)$ query time, and $O(n+m)$ space, where $Δ_s$ is the number of distinct departure times of arcs leaving the source. All of our algorithms are also capable of reporting an earliest arrival path from the source to the queried vertex $v$ in constant time per edge once the earliest arrival time at $v$ is known. We complement our positive results with conditional lower bounds based on the Online Boolean Matrix-Vector Multiplication conjecture (a.k.a. OMv conjecture). For both the incremental and the decremental scenarios, we show the non-existence of an algorithm with $O(n^{1-\varepsilon})$ amortized update time and $O(n^{2-\varepsilon})$ amortized query time, even if the algorithm is randomized and latencies on the arcs are uniform. For arbitrary departure-time queries, we also establish an OMv-based conditional lower bound showing that our incremental algorithm is optimal up to logarithmic factors on dense temporal graphs. Thus, efficient total running time is essentially the best outcome we can get. Our conditional lower bounds hold also for the case of undirected temporal graphs.

0.29

Stable Movement for Nondual Lipschitz Convex Optimization: Efficiency and Nearly Optimal Oracle Rates

cs.LG math.OC ·2026-09-17 ·David Martínez-Rubio, Cristóbal Guzmán
similarity 0.54
Abstract · polished writing, added a few more general results (such as a better lower bound, and a more general potential-energy center)

We study efficient algorithms for realizing the first-order oracle complexity of optimization of $G$-Lipschitz convex functions with respect to the $\ell_q$-norm over an $\ell_p$-ball of radius $R$, where $1\leq p,q\leq\infty$. For $p<q$, we obtain error $\widetilde{O}_{p,q}(GR/T^{1/p-(1/q-1/2)_{+}})$ after $T$ oracle queries, attaining the lower bounds in a COLT 2015 open problem (Guz15b) with efficient algorithms. In particular, the rate is $\widetilde{O}(GR/T)$ for Euclidean Lipschitzness with an $\ell_1$-ball domain of radius $R$ ($p=1,q=2$). Our solution consists of reducing convex Lipschitz optimization to the chasing nested convex sets problem (BBE+20) in sublevel sets of an evolving maximum of affine lower bounds, that is, the bundle (LNN95): at each query we either find a point with low function value or we produce a deep cut in the current sublevel of the bundle that we chase. The dichotomy between stability of selectors and forced movement by deep cuts bounds the number of iterations of the algorithm nearly optimally. For nested convex subsets of the $\ell_p$ ball $R B_p^d$, we introduce novel stable selectors whose movement is nearly optimal in high dimensions. A Monte Carlo average of the proposed selector achieves near-optimal rates with high probability and can be implemented for our optimization algorithm in polynomial time in the real-arithmetic model.

0.54

Searching the Plane in the Segment Visibility Model

cs.DM cs.DC ·2026-11-02 ·Evangelos Kranakis
theory similarity 0.54
Abstract

We study deterministic search by $n \geq 2$ unit-speed robots starting at the origin of the Euclidean plane. We introduce the concept of \emph{segment visibility} whereby a stationary target $x$ at distance $d=\|x\|>0$ is discovered at the first instant $t$ when $x$ belongs to the segment joining a pair of robots at time $t$. Discovery time is compared with the omniscient optimum $d$. We distinguish two knowledge models according to whether the robots know $d$ in advance. For $n=2$ robots, in the \emph{known-$d$} model, we give a symmetric four-phase algorithm and prove that its competitive ratio is optimal: $1+\sqrt3+π/6$; the matching lower bound follows from the known-distance two-robot shoreline-search theorem through an explicit reduction to segment detection. For $n=2$ robots, in the \emph{unknown-$d$} model, a three-circle construction and a quantitative initial-path estimate yield the stronger lower bound $\sqrt3+π/6+\sqrt{17}/4 \approx3.286425990$, giving an explicit positive cost for not knowing the radius; we also analyze a feasible antipodal-diameter logarithmic-spiral algorithm with optimized ratio $8.928516954\ldots$, thus proving that the competitive ratio when $d$ is unknown is at least $ \sqrt3+π/6+\sqrt{17}/4 $ and at most $8.928516954\ldots.$ For $n \geq 3$ robots, the competitive ratio of finding the target is exactly $\sec (π/n)$ regardless of whether or not $d$ is known to the robots.

0.19

Optimal Planar $k$ Nearest Neighbors Queries for Additively Weighted Euclidean Distances and Convex Metrics

cs.CG ·2026-10-12 ·Chih-Hung Liu
top venuetheory similarity 0.54
Abstract · 78 pages. A conference version will appear in the Proceedings of the ACM-SIAM Symposium on Discrete Algorithms (SODA 2027)

Given a set $P$ of $n$ point sites in the plane, the $k$ nearest neighbors problem is to build a data structure that, for a query point $v$ and a query integer $k$, reports the $k$ nearest point sites of $v$ in $P$ efficiently. For the Euclidean metric, after four decades of efforts, an optimal data structure has been developed with $O(n)$ space, $O(\log n+k)$ query time and $O(n\log n)$ preprocessing time [Mat92b, Cha00, AC09, CT16]. In contrast, for a family of distance functions, the state-of-the-art data structure [AES99, KMR+20, Liu22] attains $O(n\log\log n)$ space, $O(\log n+k)$ query time and expected $O(n\log n)$ preprocessing time. An open question is the existence of an optimal data structure with $O(n)$ space and $O(\log n + k)$ query time for distance functions more general than the Euclidean metric. Such an optimal data structure also remains unknown for non-point sites in the Euclidean metric, even for disk sites or, more generally, additively weighted Euclidean distances. We develop an optimal $k$-nearest-neighbors data structure for additively weighted Euclidean distances with $O(n)$ space, $O(\log n + k)$ query time and expected $O(n\log n)$ preprocessing time. Since this data structure can be adjusted to disk sites, it serves as an initial result toward optimality for non-point sites. We also adapt our data structure to point sites under a family of convex metrics, including commonly used $L_p$ metrics and uniform orientation metrics. The data structure can be further extended to distance functions that satisfy certain axioms. Thus, we demonstrate the existence of optimal $k$-nearest-neighbors data structures for distance functions more general than point sites in the Euclidean metric. Our main technical advance is to generalize Matoušek's shallow partition theorem for hyperplanes [Mat92b] to these settings, while achieving a logarithmic crossing number.

0.42

Improved Approximation Algorithms for Multi-Path TSP and Ordered TSP

cs.DS ·2026-11-22 ·Morteza Alimi, Michael Ruderer
similarity 0.54
Abstract

In Multi-Path TSP, given a metric and $k$ pairs of vertices $(s_i,t_i)$, where $k$ is part of the input, we seek $s_i$--$t_i$ paths of minimum total length that together visit all vertices. Ratios below $2$ were known only for graphic metrics and special cases such as multiple depots ($s_i=t_i$); in general metrics, the best ratio was $1+2e^{-1/2}\approx2.213$, by a randomized algorithm of Böhm, Friggstad, Mömke and Spoerhase [SODA 2025]. We give a deterministic algorithm with ratio $\frac{5e-2}{3e-2}<1.8833$ relative to a restriction of their LP relaxation, bounding its integrality gap by the same constant. For Ordered TSP, where a tour must visit $k$ given vertices in a prescribed cyclic order, we compute tours within $1+\frac{e}{2(e-1)}<1.7910$ times the value of the LP relaxation of Armbruster, Mnich and Nägele [APPROX 2024], improving $\frac32+\frac1e\approx1.868$ on both the ratio and the integrality gap. Our algorithms sample a tree for every pair (for Ordered TSP, every two consecutive given vertices) from an LP solution, but keep only the path between the two endpoints. Our main lemma shows that, for arbitrary nonnegative edge weights, a cheapest forest connecting all vertices to these paths has expected weight at most $1/e$ times that of a cheapest forest rooted at the endpoints plus $(1-1/e)$ times the expected weight of the discarded branches. For Multi-Path TSP, we use the weights of a primal--dual growth process that Zhao, Liu and Xiao [arXiv 2026] designed for multiple depots; in these weights, the connecting forest also pays for part of correcting its degree parities.

0.08

Reading between the levels: new tools for the Thorup-Zwick hierarchy and their applications

cs.DS ·2026-10-31 ·Shiri Chechik, Gur Lifshitz, Avi Kadria, Liam Roditty
similarity 0.54
Abstract

In this paper, we develop three new analytical tools for the Thorup-Zwick hierarchy: the Mixed-Level Growth, Two-Level Growth, and Long-Short Growth lemmas. Using these tools, we obtain improved approximate distance oracles (ADOs), and algorithms for $n$-pairs shortest paths ($n$-PSP), multiple-source shortest paths (MSSP), and $ST$-shortest paths, as well as new hopsets. One of our main results is a $(\frac 65 k+O(1))$-stretch ADO with $\tilde O(mn^{1/k})$ preprocessing time and space (where $\tilde O$ hides polylogarithmic factors), and $\tilde O(n^{1/k})$ query time, breaking, for sparse graphs, the $(2k-O(1))$-stretch barrier for ADOs with $\tilde O(n^{1+1/k})$ space and $\tilde O(n^{1/k})$ query time. In unweighted graphs, we also obtain a $(\frac 65 k+O(1),O(k))$-approximate ADO with $\tilde O(n^{1+1/k})$ space and $\tilde O(n^{1/k})$ query time. This also yields a $(\frac 65 k+O(1))$-approximation algorithm for $m$-pairs shortest paths ($m$-PSP) in $\tilde O(mn^{1/k})$ time, answering the question of Chechik, Hoch, and Lifshitz [SODA'25] of whether the $2k-O(1)$ barrier for $n$-PSP in $\tilde O(mn^{1/k})$ time can be broken. For unweighted graphs, we give a new analysis of the existing $\tilde O(mn^{1/k}+n^{1+2/k})$-time $n$-PSP algorithm of [Chechik et al., SODA'25], and show that, without any modification, it is a $(k,k-1)$-approximation, i.e., $d(u,v)\le\hat d(u,v)\le k\cdot d(u,v)+k-1$ for every queried pair. This improves its multiplicative factor from $\frac 43 k+O(1)$ to $k$, and the leading coefficient $k$ is tight for this algorithm. Moreover, for graphs with $m=Ω(n^{1+1/k})$, this answers the question of Dalirrooyfard et al. [FOCS'22] up to the additive $k-1$.

0.21

Constant Approximation of Fréchet Distance in Near-Linear Time

cs.CG ·2026-10-30 ·Haoqiang Huang, Zihe Wang, Shuo Zhang
similarity 0.54
Abstract

We give the first constant-factor approximation for the Fréchet distance in near-linear time. Given two polygonal curves in $\mathbb{R}^d$ with $n$ and $m$ vertices, respectively, where $m\le n$, our deterministic algorithm runs in $O(n^{1+\varepsilon})$ time for every fixed $\varepsilon>0$ and $d$, with an approximation factor depending only on $\varepsilon$ and $d$. The same result holds for the discrete Fréchet distance. Our result extends the line of work initiated by Cheng, Huang, and Zhang (STOC 2025) from strongly subquadratic to near-linear time. Our algorithm recursively balances preprocessing and query time. An index for comparing subcurves of a single curve supports faster queries between different curves. We obtain this speedup by replacing one curve with surrogates assembled from indexed subcurves of the other and shared across starting points of matchings. Faster queries then reduce the cost of building the next index. Compact boundary reachability summaries allow the answers to be reused in later recursive calls. After a number of rounds depending only on $\varepsilon$, both preprocessing and query time are near-linear.

0.15