Manuscript Offprint
arXiv:2611.08139H-TRIP: Exact Many-to-Many Distance Index for Multi-Robot Exploration
Elif Altunay Özaslan
Department of Mathematics
Kastamonu University, Kastamonu, Türkiye
Tolga Özaslan
Department of Computer Engineering
Ankara Yıldırım Beyazıt University, Ankara, Türkiye
Abstract—Frontier-based exploration systems repeatedly evaluate geodesic travel costs between robot poses and candidate viewpoints, and tour-based planners consume the full pairwise distance matrix built from them. Recomputing these matrices with one graph search per source scales with the explored map size, whereas distance caches that refresh only locally affected or newly created frontiers can retain stale costs between surviving pairs when newly discovered free space creates a global shortcut. We present H-TRIP (Hierarchical Tropical Rank-one Incremental Propagation), an exact distance index grounded in Kleene algebra over the min-plus semiring for monotonically growing occupancy grids. H-TRIP partitions the known map into a spatial hierarchy with fixed boundary ports. Each unknown-to-free revelation is decomposed into efficient rank-one min-plus edge insertions at the affected leaf, and only decreased port-to-port summaries are propagated along its ancestor chain. A shared hierarchical lift evaluates the dense many-to-many matrix of shortest distances for all active query points on the occupancy map. We prove that sequential insertions preserve exact shortest-path distances on the grid. Benchmark experiments confirm exact agreement with reference searches on fully built maps and show that dense many-to-many queries at a few dozen viewpoints are up to two orders of magnitude faster than sequential BFS. On exploration runs with sixteen robots, in-loop queries on the growing occupancy graph are faster than co-scheduled BFS on maps with side 256, 512, and 1024 cells.
Index Terms—Multi-robot exploration, APSP, distance indexes, min-plus algebra, occupancy grids.
I. INTRODUCTION
Autonomous exploration is foundational in search and rescue, inspection, and reconnaissance. Mobile robot teams iteratively map free space, extract candidate frontier viewpoints, and coordinate assignments using travel cost, information gain, or both [1]. Tour-based planners repeatedly evaluate pairwise travel costs among candidate goals using geodesic distance as their spatial backbone, which can be combined with planner-specific kinematic or utility terms [2], [3], [4]. These geodesics are shortest paths on the free-space graph of an occupancy representation or an exploration roadmap. Under undirected traversal the geodesic distance matrix is symmetric, so filling among robot poses and candidate viewpoints with the distinct pairwise distances of requires substantial

Fig. 1. We tested H-TRIP in simulation, where lidar-equipped robot teams of different sizes explored occupancy grids of different side lengths. The panels show three representative frames from these runs. The yellow lattice is the leaf-tile partition, cyan markers are active frontiers, and colored polylines are assigned open tours.
computational effort as maps and candidate sets grow.
As sensors reveal free space, the traversable graph grows monotonically. Recomputing D from scratch with one graph search per source scales with both k and , and competes with the planning cycle. Newly revealed free cells can complete a doorway or corridor that shortens the true geodesic between two persisting viewpoints, making a previously cached distance stale. The challenge is to keep the geodesic distance matrix D exact without recomputing shortest paths over the full graph after every occupancy-map update. We therefore ask how a multi-robot system can maintain exact all-pairs geodesic distances among surviving viewpoints under online monotonic map growth while keeping many-to-many queries within a planning-cycle budget.
We present H-TRIP (Hierarchical Tropical Rank-one Incremental Propagation), an exact hierarchical distance index grounded in Kleene algebra over the min-plus semiring [5], [6] that maintains pairwise geodesic distances as occupancy grows and answers many-to-many queries for assignment and tour planners on online occupancy grids. H-TRIP organizes the workspace into a balanced spatial hierarchy over fixed leaf tiles whose boundary-port sets remain fixed throughout exploration. Sensor measurements that reveal previously unknown cells as free insert local edges in , including newly passable cross-tile seams, and only decreased boundary-distance summaries propagate upward along the affected ancestor chain.
H-TRIP builds this hierarchy so that many-to-many geodesic distances can be evaluated by lifting each of the k viewpoints all at once onto the boundary ports of their ancestor tiles and resolving pairwise distances as tropical products against stored boundary metrics. H-TRIP realizes its query advantage by amortizing each hierarchical lift across
This work has been supported by Ankara Yıldırım Beyazıt University Scientific Research Projects Coordination Unit under Multidisciplinary Research Project No. 3225. The source code is available at https://github.com/ozaslan/htrip.
the entire matrix. An isolated pair lookup pays that lift without sharing it, so batched many-to-many evaluation is the regime that reuses the work. Hence H-TRIP can serve as a metric backend for multi-robot assignment and tour planners that require geodesic distance.
In simulation, H-TRIP consistently preserved exact geodesic distances while reducing the cost of repeated many-to-many evaluation relative to conventional graph-search baselines. The advantage was most pronounced when multiple robot poses and frontier viewpoints were queried together, allowing hierarchical computations to be shared across the complete distance matrix.
The main contributions of this paper are: (i) an exact hierarchical distance index for monotonically growing occupancy grids based on fixed geometric interfaces and min-plus closure; (ii) a localized insertion-only maintenance procedure based on rank-one min-plus updates, with exactness established by Lemma 1 and Theorem 1; and (iii) a batched hierarchical query that recovers the complete geodesic distance matrix, with exactness established by Theorem 2.
Exploration planners and travel-cost maintenance: Frontier exploration guides robots toward boundaries between mapped free space and unmapped terrain, balancing travel distance against information gain [1]. Tour-based planners such as FUEL [2], TARE [3], and RACER [4] consume pairwise travel costs over robot poses and candidate goals (frontiers), which makes geodesic path length their spatial backbone. When a new frontier cluster appears, FUEL [2] searches paths from that cluster's candidate viewpoints and reuses cached costs for frontier clusters that did not change, so a pair of robot poses or frontier viewpoints that survive the update can retain a pre-opening length. TARE [3] localizes traveling salesperson (TSP) work through spatial partitions. As the map grows, a newly opened doorway or corridor can shorten the true geodesic between surviving viewpoints, which can cause cached surviving-pair geodesics to become stale. H-TRIP does not replace those assignment or tour layers. It supplies the geodesic distance matrix they consume and keeps that matrix exact as the map grows, so a surviving-pair shortcut is reflected without a global graph search at every update.
Incremental single-source replanning: In partially known environments, D* Lite [7] and LPA* [8] incrementally repair a single-source or goal-rooted search tree as edge costs change. A straightforward use of these single-source methods for k viewpoints requires maintaining or repairing multiple search states, typically one per source. H-TRIP is not a path replanner and does not maintain a previously found tree. It maintains one hierarchical metric shared by all queried viewpoints and fills the dense distance matrix by batched coordinate lifts and tropical products, leaving path construction to the tour layer that consumes those distances. Hierarchical distance indexes: Spatial hierarchies compress distance computation by storing summaries on region boundaries. HPA [9] partitions a grid into clusters, identifies data-dependent border entrances on traversable boundaries, and caches intra-cluster entrance distances for search on an abstract graph, which returns a near-optimal path rather than an exact stored distance. HiTi [10] is closer to H-TRIP because it recursively partitions road graphs, stores pre-computed minimum-cost paths among boundary nodes, and supports optimal shortest-path queries, with updates confined to ancestor path-view sets. However, in the online occupancy setting H-TRIP fixes ports geometrically before exploration, applies rank-one min-plus insertions on leaf and interface closures when cells open, propagates only decreased ancestor metrics, and evaluates the dense matrix with one batched hierarchical lift shared by all viewpoints.
On road networks and static graphs, Contraction Hierarchies [11] add vertex shortcuts, whereas Customizable Route Planning (CRP) [12] and Customizable Contraction Hierarchies [13] customize metric overlays on separator cliques or nested-dissection orders. Dynamic shortest-path indexes also admit streaming maintenance under weight updates [14]. Those methods assume a known topology whose weights change. Exploration instead changes topology: newly revealed free cells insert vertices and edges that were absent from the occupancy graph. H-TRIP still keeps the tile partition and port universe geometrically fixed, independent of current passability, so an opening does not resize overlays or churn entrances.
Dense distance graphs on recursive -divisions support exact distances among all boundary vertices of a region inside static planar algorithms [15]. On a static preprocessed road network whose topology is already known, many-to-many tables share hierarchical search work across a source set and a target set, so filling an table is cheaper than a separate query per pair [16], [17]. H-TRIP stores tile-local port summaries and lifts only the active viewpoints, such that , and the planner consumes a geodesic distance matrix produced by one batched hierarchical lift.
Dynamic APSP and closed-semiring algebra: Demetrescu and Italiano [18] maintain fully dynamic exact all-pairs shortest paths on general directed graphs with non-negative edge weights, covering both insertions and deletions. H-TRIP applies the same rank-one decrease [5], [19], [6] to leaf and interface closures along the affected ancestor chain. Its exactness theorem is insertion-only occupancy growth rather than fully dynamic APSP, and its query is a batched hierarchical lift rather than an pair lookup.
Ramalingam and Reps [20] repair incremental shortest paths on the affected region, and Górkiewicz and Karczmarz [21] study approximate incremental APSP on sparse directed graphs. In its insertion-only occupancy-grid setting, H-TRIP remains exact by confining dense min-plus updates to the affected ancestor chain, rather than an affected-region search or an approximate APSP.
Collectively, prior work provides incremental frontier-cost caching, single-source replanning, hierarchical shortest-path representations, and general dynamic distance maintenance. H-TRIP combines (i) fixed geometric interfaces, (ii) insertion-only exact min-plus updates, and (iii) localized hierarchical propagation into one index, and evaluates the geodesic distance matrix from that index, with for medium-to-large maps.
III. PROBLEM FORMULATION
A. Occupancy Grid and Monotonic Map Growth
Let be a planar workspace discretized into a uniform occupancy grid . Each cell is labeled unknown, free, or obstacle. Confirmed free cells induce an undirected graph , where is the set of currently free cells and is a discrete time index of successive occupancy graphs. By default joins 4-adjacent free cells with unit weight, so geodesics are integers. Non-unit nonnegative cell costs, when present, become incident edge weights, and the reference search is Dijkstra's algorithm rather than BFS. Let denote shortest-path length on , and if is unreachable from . Unknown cells retain geometric slots with infinite incident weight until they are revealed free, and obstacle cells remain blocked.
An opening is a set of cells that become free, together with the finite incident edges that those cells insert. Hence and , and distances can only decrease or stay the same. We consider exploration of a static workspace in which sensing monotonically reveals previously unknown space.
B. Robots, Frontiers, and the Geodesic Distance Matrix
A frontier cell is free and adjacent to unknown. Connected 4-adjacent frontier cells form clusters , each represented by a medoid cell [2], [3]. Each robot contributes a planar position , which Section VI snaps onto a free cell , so every finite entry of is a grid geodesic among cells of .
A planning cycle assembles the viewpoint list
with , which may change between cycles as clusters appear, vanish, or move. The geodesic distance matrix is
with blocks
for robot–robot, robot–frontier, and frontier–frontier distances. Traversal is undirected, so is symmetric. Without a distance index, filling requires k single-source searches on (BFS if unweighted, Dijkstra if weighted), or independent point-to-point A* searches.
In a typical multi-robot exploration system, assignment looks up robot–frontier costs in , and an open tour looks up frontier–frontier costs in . Together those stages consume the and blocks of the geodesic matrix. The same query returns the full symmetric

Fig. 2. Fixed-boundary spatial hierarchy. (a) Base tile ( ) stores intra-tile closure on all cells and exposes summary on perimeter . (b) Super-tile ( ) aggregates child boundaries into : interior cells are condensed into summaries , dark blue perimeter cells form exposed parent ports , and light blue cells are interior seams where gold arrows mark passable cross-child edges.
matrix, so is filled with the robot–robot geodesics. If an entry of or is stale, assignment or visit order can change after a doorway opens, which is why planner-facing entries of must remain exact on the occupancy graph after each absorbed opening.
C. The Surviving-Pair Shortcut Problem
After an opening that produces , the true geodesic between two query cells that remain in the planning list can become strictly shorter than the length that used to be correct on . A viewpoint persists in the cache only when its grid coordinate is unchanged. An incremental new-cluster-only cache recomputes pairwise distances only for newly appeared clusters and, for speed, leaves the remaining entries unchanged, which can leave those lengths stale after an opening [2].
Definition 1 (Surviving-Pair Shortcut): A surviving-pair shortcut occurs when two viewpoints occupy the same cells in and in and, after the edges of the opening, contains a path between them that is strictly shorter than the distance stored for that pair in .
Such a caching mechanism is the failure mode under study, because a retained entry of its matrix can satisfy even when both cells lie far from the newly free vertices .
D. Problem Statement
A distance index is a map whose input is an ordered list of cells of and whose output is the geodesic distance matrix on that list. Given a monotonically expanding occupancy graph and a viewpoint list , we ask for an index that meets one mathematical contract and two computational objectives: (1) exactness: after newly free cells have been absorbed, equals entrywise on that graph; (2) update locality: the work that absorbs an opening is confined to the affected leaf tiles and the union of their ancestor chains; (3) many-to-many output: a single query returns .
IV. MIN-PLUS SHORTEST PATHS
Shortest-path computation is expressed over the min-plus semiring , where selects the shorter alternative and concatenates consecutive path segments [5], [19], [6]. For matrices,
If is the weighted adjacency matrix of a graph with nonnegative edge weights, and is the min-plus identity with zeros on the diagonal and off it, then
is its all-pairs shortest-path matrix, since a shortest path can be chosen simple and therefore contains at most edges. The carrier of that algebra is . H-TRIP applies this algebra locally: tile closures, incremental decreases, hierarchical lifts, and boundary-to-boundary composition are min-plus operations on these matrices.
V. THE H-TRIP DISTANCE INDEX
A. Fixed-Boundary Spatial Hierarchy
The occupancy grid is a square array of cells, partitioned recursively into square base tiles of side and super-tiles of tile aggregation degree whose children form a block. The independent parameters are , , and , from which the depth and the root side follow,
and every cell of lies inside that root, so .
Definition 2 (Fixed Boundary): For a level- tile of side , the boundary-cell set is the perimeter cells of its geometric boundary, whether those cells are currently passable or not.
Because the boundary geometry is fixed, occupancy updates modify only stored metric values, and interface dimensions, matrix offsets, and child-to-parent index mappings remain unchanged.
Write T for a tile of any kind, whether a base tile of side b, a super-tile assembled from children, or the root that spans the workspace. A parent super-tile is denoted U and one of its children is denoted Q whenever both must be named together.
The matrix stored at a tile begins as an adjacency. On a base tile , is the weighted adjacency on the vertex set of all geometric cells of , including currently unknown or occupied slots, so a missing or blocked step is an infinite entry and a free adjacent step is a finite weight. On a super-tile , every path that leaves a child does so through that child's boundary, and is the weighted adjacency of the interface graph , whose vertices are those children's boundary cells placed side by side. The Kleene star of Section IV then turns either adjacency into pairwise distances on that same vertex set,
so A is a local adjacency and C is its Kleene-star closure at every level, while the vertex set of the matrix is on a base tile and on a super-tile.
A base tile therefore carries two cell sets (Fig. 2(a)). The closure lives on and answers tile-confined questions: each entry is the length of a shortest path that stays inside T, which can exceed the planner geodesic on when a globally shorter route leaves T and re-enters. The second set is the boundary , the 4b-4 perimeter cells. The parent of T reads only that perimeter, so the object sent upward is the summary , the restriction of to the Cartesian product of those perimeter indices. The stored tile matrices change with occupancy and would therefore carry the same index as . We omit that subscript on and , keeping on and , so the tile symbols stay uncluttered.
A super-tile has three cell sets (Fig. 2(b)). The first set is every geometric cell of the square of , and interior distances on that square are recovered from the two stored sets that follow. The second set is the interface vertex set
formed by the fixed map that plants each child's boundary at a contiguous offset inside . In other words, is the concatenated list of all child boundary cells used as the row and column indices of and , and storing the closure on that list is the compression that makes the hierarchy possible. The interface puts a weighted edge between every pair in whose weight is the matching entry of the child's summary, and seam edges join spatially adjacent perimeter cells of neighboring children when both cells are free. The closure on that interface is . The third set is , the geometric perimeter of . The cells where two children meet, the interior seams, stay in so that can route across children, and they stay out of , so the summary that a further parent would read lives only on the outer boundary. Thus lives on , and the parent-visible summary lives only on . The geometric cells that fill the square of are never stored at , neither as an adjacency nor as a closure making the hierarchy and compression possible. Fig. 2 takes and . A base tile then stores as a matrix on its 25 cells and exposes as a matrix on . The parent concatenates the four 16-cell child boundaries into the 64-index list , stores as a matrix on that list, and exposes the 36-cell outer boundary .
The root is a super-tile with an interface adjacency on the children's boundaries and a closure on that interface. The root stores on , and a query that is not finalized lower in the tree meets there. At initialization, each base-tile closure is the Kleene star Eq. (5) of the currently known occupancy adjacency, after which parent interface graphs are formed bottom-up from child summaries and seam edges and their closures are computed recursively until the root is reached.
B. Min-Plus Updates on Leaves and Ancestors
An opening of Section III is converted into local adjacency decreases, with the newly free cells and the incident pairs that become finite when those cells are revealed. Each such pair is written into the decrease set of the tile that owns it: an intra-tile edge into its base tile, a seam into the super-
Algorithm 1: AbsorbOpening
Input: Hierarchical index, opening
Output: Updated exact closures on all affected tiles
1 Add each newly enabled intra-tile edge of to of its base tile
2 Add each seam to of the smallest super-tile whose distinct immediate children contain the endpoints
3 foreach dirty base tile do
4 RepairClosure
5 entries of that decreased relative to stored
6 Write those new values into
7 Map every decreased pair to and add it to for
8 foreach dirty super-tile bottom-up do
9 RepairClosure
10 if is not the root then
11 entries of that decreased relative to stored
12 Write those new values into
13 Map every decreased pair to and add it to the parent's
tile whose immediate children first separate the endpoints. We represent as the set of those local edge-weight decreases , where and are the two endpoint cells and is the new finite weight. At a base tile, the decreases are physical grid edges revealed by sensing. At a super-tile , the same opening appears as decreased child summaries together with newly enabled seam edges, which together form . Whether is a base tile or a super-tile, a local adjacency decrease first updates that tile's closure . If this changes any boundary-to-boundary distance, only those changed distances are written into and mapped into the parent as , so that every tile follows .
H-TRIP restores the exactness of the stored closure after those decreases. The procedure that does this work is RepairClosure. That procedure takes an already exact closure and returns the exact closure of the updated graph. is the conceptual local adjacency of the tile. names the direct-edge decreases of that adjacency, and RepairClosure applies those decreases to the stored closure . RepairClosure first seeds every decreased undirected edge into by
and collects those endpoints into an internal set . It then performs the min-plus pivot update
for every , writing the result back into . A dirty tile is one whose local decrease set is nonempty. Algorithm 1 repairs every dirty base tile, then every dirty super-tile bottom-up. All decreases received by the same super-tile from its children, whether those children are base tiles or super-tiles, are first coalesced into one , after which that dirty parent is repaired once.
Algorithm 1 absorbs the opening by that assignment, and the single-cell case is (Fig. 3). If an exposed
summary entry decreases to a finite weight , the parent receives the edge decrease in . A seam edge is stored at the first super-tile at which its two endpoint cells belong to different immediate children. For neighboring base tiles this is their first common parent (Fig. 2(b)), so a seam and a child-summary decrease are both adjacency decreases of that parent. The root is repaired like every other super-tile, but propagation ends there because the root has no parent.
The stored closure is the Kleene star of the local adjacency. That star can be rebuilt from the updated adjacency by unfolding Eq. (5), by a Floyd–Warshall pass over every cell, or by a shortest-path search from every cell of the tile. Each of those reconstructions starts from the adjacency rather than from the already exact . Instead, one decreased edge updates the existing closure by the following rank-one identity,
The first term keeps the old distance, and the other two terms test paths that use the decreased undirected edge once in either direction. That identity restores one decreased edge, and a batch of decreased edges is restored by the equivalent endpoint-pivot sweep over that RepairClosure applies. A cubic all-pairs pass would treat every cell of a leaf as an intermediate vertex and would cost . A leaf has vertices, so that cubic cost is , whereas restricted pivots cost . The sweep uses only the endpoints in , so the live kernel costs on a leaf. On a 4-connected grid with , so that cost is . The same restriction at an ancestor replaces a cubic pass of cost by on dirty interfaces only.
Blockages. Free-to-obstacle changes can increase distances and therefore require rebuilding the affected leaf and ancestor interfaces, which places them outside the insertion-only update considered here.
C. Batched Query
A shortest path may leave a leaf and re-enter, so even two viewpoints in the same tile can require ancestor meets. A queried cell first records its distances to the boundary of its base tile, a lift converts those distances into distances to the boundary of a parent, and two queried cells meet when their lifted distances are joined through the stored closure of a common ancestor.
Write for the row of distances from to , with
on the leaf that contains , and write and only when a pair is formed. On Fig. 2(a) that row has 16 entries, and a lift through Fig. 2(b) produces a 36-entry row on . Suppose currently lies in child of super-tile . If has boundary cells and has exterior boundary cells, then is a row, the restriction of to is a matrix, and the product

Fig. 3. One occupancy opening climbs the hierarchy of Fig. 2, whose leaves have side and whose super-tiles aggregate children. (a) On child , a newly free cell decreases occupancy adjacency at its neighbors, and RepairClosure shortens paths to the perimeter so that those decreases leave as on . (b) Super-tile receives that summary through together with a newly passable seam, after which RepairClosure writes on . (c) Super-tile applies the same interface step to its children , where plants and RepairClosure writes on .
is a row. The corresponding rows of tell how to continue from the embedded child boundary to the outer boundary ,
The entries of are read in the same order after the fixed mapping , so they align with the rows indexed by . Because every stored closure is symmetric, the distances from to p are the transpose .
For an enclosing super-tile , let and be the children that contain and . The meet
has three factors that respectively represent travel from to the boundary of its child, travel across the parent interface, and travel from the target-child boundary to . It is the shortest path constrained to that envelope. At the root the same meet uses the two embedded child boundaries of . If and lie in different leaves and , the first possible meet is their lowest common ancestor. If they lie in the same leaf, is also a candidate, and a shorter path may still leave the leaf and meet at a higher ancestor. The query therefore takes
where the first minimum runs over every super-tile that contains both leaves and the inner minimum runs over every super-tile that strictly contains .
An isolated pair query may be slower than a single BFS because the hierarchical lift cannot be amortized, and H-TRIP's query advantage therefore comes from amortizing shared lifts over the complete matrix. A single pair costs with the largest boundary encountered by either query attachment. At a given level the children that contain query viewpoints share a uniform boundary size , and batched work at that level is , of which the first term is the shared lifting work and the second is the pairwise meet work.
Batched matrix. Algorithm 2 fills from in one bottom-up sweep. Cross-child meets share projections. Every level contributes additional
Algorithm 2: Batched query
Input: Hierarchy, viewpoint list of length k
Output: Matrix
1 Initialize ; set for every passable
2 Bucket each into its base tile and read from
3 For each pair with , set and likewise
4 foreach non-root super-tile U bottom-up do
5
8 At the root U, evaluate every still-relevant pair through
9 Set and likewise
path candidates, and no candidate is assumed final until all relevant ancestors have been considered. Each meet therefore improves the stored entry by taking the minimum of the incumbent value and the new candidate. Pairs in different children meet at a parent for the first time, and same-child pairs are reconsidered at that parent because they may leave the child and re-enter it. At every non-root super-tile the attachments are lifted onto the parent boundary before those meets. At the root U every still-relevant pair meets on the interface .
D. Exactness
Lemma 1 (Rank-one update): Let be undirected with nonnegative weights, and let be its metric closure. Inserting an undirected edge of weight , or decreasing an existing edge to , produces the new closure Eq. (9) for every pair of vertices. Sequential application of the rank-one update to every inserted or decreased edge yields the metric closure of the final graph, independent of insertion order. Equivalently, after seeding all decreased edges, a min-plus pivot sweep over their endpoint set yields the same updated closure.
Justification. An optimal simple path either avoids the decreased edge or uses it once, in which case the old closure already contains the prefix and suffix of Eq. (9). Every new shortest path decomposes into old shortest subpaths joined at vertices in , so the endpoint-pivot sweep yields the same closure.
Theorem 1 (Monotone update exactness): After Algorithm 1 absorbs an insertion-only opening, every stored tile closure remains exact.
Justification. Every dirty tile absorbs all decreases in its local by Lemma 1, so that tile's stored closure remains exact. If the tile is not the root and the exterior summary strictly decreases, those entries are written into the parent as together with new seams, while internal entries that do not change the exterior summary stay local. Induction along each touched ancestor chain, stopping at the root or at an empty , extends the claim to the tree.
Theorem 2 (Hierarchical query exactness): Given vertices , the hierarchical query of Algorithm 2 returns the exact grid geodesic .
Justification. The attachment of a queried cell to the boundary of its leaf and of every non-root ancestor equals the geodesic on the occupancy subgraph induced by that tile, because every exit is a perimeter cell and every child-summary edge of the interface adjacency realizes a child-internal path. Every true grid path compresses to an equal-length walk on the interface of the smallest ancestor region that contains the complete path, and every interface walk expands through stored child summaries to a realizable grid path, so the minimum of Eq. (13) is the geodesic and Algorithm 2 records for every queried pair. Consequently, any surviving-pair shortcut introduced by an opening is reflected in the next query after Algorithm 1 propagates the corresponding decreases.
Memory. A base tile stores closure entries and a boundary summary of entries. A level- tile has side and , so the parent interface has when each child is a level- tile. The corresponding super-tile closure therefore stores entries.
VI. EXPERIMENTAL EVALUATION
This section evaluates H-TRIP on two-dimensional occupancy maps from the MovingAI benchmark [22]. The evaluation covers numerical exactness, batched query performance, incremental update cost, and multi-robot exploration, which together characterize the regime in which the hierarchy is beneficial and the cost of maintaining it as free space is revealed.
A. Setup and Exactness: The evaluation uses two settings. To assess batched query performance, every ground-truth passable cell of each map is marked observed free, so those queries include all traversable cells. The second setting places sixteen unicycle robots with onboard two-dimensional lidars, which explore occupancy grids with 5 cm cells in the frontier-based explorer of Fig. 1. At each planning cycle the occupancy graph consists of the cells the fleet has explored, frontiers are extracted from that occupancy, and robot poses and frontier representatives snap onto free cells of . Each query is exact. Indexing uses a double buffer so that an update does not block queries. Table I names the maps used in both settings.
In that first setting, query points are selected homogeneously across each map. The timed batch uses twenty-five of those points, and each reported query time
Table I. Evaluation maps from the MovingAI open-source set [22]
| Map | Name | b, g | |V| | Map | Name | b, g | |V| |
|---|---|---|---|---|---|---|---|
| M1 | Boston_0.256 | 16,2 | 47,768 | M4 | maze512-16-0 | 16,2 | 246,016 |
| M2 | Boston_0.1024 | 32,2 | 796,896 | M5 | Paris_0.512 | 8,2 | 196,567 |
| M3 | maze512-1-0 | 16,2 | 131,071 | M6 | Berlin_0.1024 | 8,2 | 794,748 |
Table II. Median query time for 25 viewpoints on a fully revealed map. Index is the size of the H-TRIP index. Break-even is the number of batches that recover the full-build cost against BFS.
| Map | Index | Full build | k×BFS | H-TRIP | vs BFS | Break-even |
|---|---|---|---|---|---|---|
| M1 | 87 MB | 0.71 s | 32.7 ms | 3.3 ms | 9.9× | 24 |
| M2 | 3175 MB | 79.9 s | 554.2 ms | 49.8 ms | 11.1× | 158 |
| M3 | 404 MB | 1.07 s | 149.4 ms | 1.81 ms | 82.6× | 7 |
| M4 | 404 MB | 3.40 s | 207 ms | 18.0 ms | 11.5× | 18 |
| M5 | 351 MB | 6.33 s | 166 ms | 17.0 ms | 9.77× | 42 |
| M6 | 1629 MB | 63.0 s | 744 ms | 102 ms | 7.28× | 98 |
is the median of ten timed repeats after three cache warm-ups. Min-plus kernels use AVX2 on an Intel Core i7-8650U, and BFS is a scalar, single-threaded search on the same graph. Pairwise at is slower than that BFS fill on , and the query tables report BFS as the sequential-search baseline. Distances in the index are uint16 with sentinel INF = 60000, which is sufficient for the maps in this evaluation. Tables II and III time Algorithm 2 on those fully revealed maps, and Table V times the same fill on the occupancy graph as the robots explore. Across 178,708 logged matrix entries compared against BFS or Dijkstra, H-TRIP produced zero mismatches.
B. Batched Query Performance: H-TRIP is faster than BFS at on , and . is a one-cell-wide corridor maze whose query points lie thousands of cells apart, so each BFS walks a long unique path and the paired median ratio reaches . The full-build cost is amortized after twenty-four batches on and seven on .
On the one-cell corridors keep each BFS on a long unique path, so the ratios stay large across the sweep (Table III). On the street maps H-TRIP overtakes BFS once the batch shares hierarchical lifts, and the advantage then declines at very large because the lift has quadratic meet cost. The benefit is therefore workload dependent, because H-TRIP reuses hierarchical lifts when viewpoints are spatially distributed.
C. Incremental Update Performance: Local openings are cheap when propagation stops near the leaf, and they become expensive when decreases dirty several ancestors, which is map dependent (Table IV). A broad multi-leaf batch can exceed a BFS refill of , so the exploration experiment tests whether the cheap local regime occurs often enough as the fleet opens cells.
D. Multi-Robot Exploration: The runs in Table V place sixteen robots on the occupancy graph that the fleet has explored so far, and each paired sample fills at those viewpoints. A run stops earlier when free-cell coverage
Table III. Speedup of H-TRIP versus BFS on fully revealed maps for various k values. The large ratios on come from one-cell corridors.
| Map | k=2 | k=4 | k=16 | k=32 | k=64 | k=256 |
|---|---|---|---|---|---|---|
| 0.67 | 1.70 | 8.87 | 8.38 | 7.04 | 1.79 | |
| 0.51 | 2.41 | 13.7 | 8.97 | 7.41 | 2.00 | |
| 120 | 89.2 | 235 | 67.2 | 54.6 | 11.4 | |
| 1.50 | 3.98 | 24.6 | 8.26 | 13.0 | 2.92 | |
| 0.12 | 0.70 | 6.71 | 8.48 | 7.52 | 2.56 | |
| 0.10 | 0.66 | 5.94 | 7.24 | 2.31 | 1.82 |
Table IV. Index update after occupancy openings. Upd. is Algorithm 1, Upd.+query adds Algorithm 2, and BFS is a refill.
| Map | Pattern | m | Upd. | Upd.+query | BFS |
|---|---|---|---|---|---|
| same-leaf | 1 | 0.042 ms | 3.34 ms | 34.6 ms | |
| same-leaf | 16 | 74.8 ms | 78.1 ms | 33.3 ms | |
| multi-leaf | 64 | 242 ms | 245 ms | 36.2 ms | |
| multi-leaf | 64 | 154 ms | 156 ms | 174 ms | |
| same-leaf | 1 | 0.185 ms | 18.2 ms | 252 ms | |
| same-leaf | 16 | 3.44 ms | 21.4 ms | 258 ms |
Table V. Query times during exploration (N=16, K=50, 500 sim. steps) on map revealed so far. LiDAR is range, span, and ray count.
| Map | LiDAR | b | Cov. | H-TRIP | k BFS | vs BFS |
|---|---|---|---|---|---|---|
| 6 m/180°/45 | 16 | 93.3% | 14.2 ms | 122 ms | 8.59 | |
| 4 m/90°/30 | 16 | 27.1% | 6.08 ms | 16.7 ms | 2.75 | |
| 8 m/180°/60 | 16 | 39.1% | 6.37 ms | 23.0 ms | 3.61 | |
| 5 m/90°/30 | 8 | 68.7% | 56.9 ms | 239 ms | 4.20 | |
| 5 m/90°/30 | 32 | 69.5% | 63.2 ms | 212 ms | 3.35 | |
| 5 m/90°/30 | 8 | 50.2% | 216 ms | 478 ms | 2.21 |

Fig. 4. Free-cell coverage versus paired query time during exploration. Across the traces, BFS query time generally grows faster with coverage than H-TRIP.
reaches 95%. When coverage is still partial, BFS searches a smaller graph than the fully revealed maps of Table II, so the exploration speedup is smaller than the full-map figure. On coverage is nearly complete, so the ratio stays near that full-map speedup. On a wider lidar raises coverage, so BFS takes longer, and H-TRIP stays cheap because most of the maze is still unknown (Fig. 4). On a larger leaf reduces the paired speedup, and on occupancy is still partial while H-TRIP remains faster than BFS. Fig. 5 plots Algorithm 1 times against cells revealed in the same step, grouped by map side, and each curve pools in-loop updates at that resolution.
VII. CONCLUSION
This paper introduced H-TRIP, an exact hierarchical distance index for multi-robot exploration on monotonically growing occupancy grids. By combining fixed boundary ports, min-plus closure, and localized rank-one updates, H-TRIP maintains exact geodesic distances while supporting repeated many-to-many evaluation as the map expands. During multi-robot exploration, batched queries were faster than co-scheduled BFS while preserving exact agreement with reference searches. Update cost remains workload dependent, however, and openings that propagate through several hierarchy levels can exceed the cost of a BFS refill. The current formulation is limited to insertion-only changes in two-dimensional occupancy grids; future work will consider non-monotonic updates, lower-memory representations, and physical multi-robot validation.
REFERENCES
[1] W. Burgard, M. Moors, C. Stachniss, and F. E. Schneider, “Coordinated multi-robot exploration,” IEEE Trans. Robot., vol. 21, no. 3, pp. 376–386, 2005.
[2] B. Zhou, Y. Zhang, X. Chen, and S. Shen, “FUEL: Fast UAV exploration using incremental frontier structure and hierarchical planning,” IEEE Robot. Autom. Lett., vol. 6, no. 2, pp. 779–786, 2021.
[3] C. Cao, H. Zhu, H. Choset, and J. Zhang, “TARE: A hierarchical framework for efficiently exploring complex 3D environments,” in Proc. Robot.: Sci. Syst. (RSS), vol. XVII, 2021.
[4] B. Zhou, H. Xu, and S. Shen, “RACER: Rapid collaborative explo-
Fig. 5. H-TRIP update time versus cells revealed in the same exploration step, grouped by native map side. Markers are changed-step telemetry samples, and curves are log-spaced bin medians.
ration with a decentralized multi-UAV system," IEEE Trans. Robot., vol. 39, no. 3, pp. 1816–1835, 2023.
[5] J. H. Conway, Regular Algebra and Finite Machines. Chapman and Hall, 1971.
[6] G. Rote, “Path problems in graphs,” in Computational Graph Theory, ser. Computing Supplementum, G. Tinhofer, E. Mayr, H. Noltemeier, and M. M. Syslo, Eds. Springer, 1990, vol. 7, pp. 155–189.
[7] S. Koenig and M. Likhachev, “D* Lite,” in Proc. AAAI Conf. Artif. Intell. (AAAI), 2002, pp. 476–483.
[8] S. Koenig, M. Likhachev, and D. Furcy, “Lifelong planning A*,” Artif. Intell., vol. 155, no. 1–2, pp. 93–146, 2004.
[9] A. Botea, M. Müller, and J. Schaeffer, “Near optimal hierarchical path-finding,” J. Game Development, vol. 1, no. 1, pp. 7–28, 2004.
[10] S. Jung and S. Pramanik, “An efficient path computation model for hierarchically structured topographical road maps,” IEEE Trans. Knowl. Data Eng., vol. 14, no. 5, pp. 1029–1046, 2002.
[11] R. Geisberger, P. Sanders, D. Schultes, and C. Vetter, “Exact routing in large road networks using contraction hierarchies,” Transp. Sci., vol. 46, no. 3, pp. 388–404, 2012.
[12] D. Delling, A. V. Goldberg, T. Pajor, and R. F. Werneck, “Customizable route planning in road networks,” Transp. Sci., vol. 51, no. 2, pp. 566–591, 2017.
[13] J. Dibbelt, B. Strasser, and D. Wagner, “Customizable contraction hierarchies,” J. Exp. Algorithmics, vol. 21, 2016.
[14] D. Ouyang, L. Yuan, L. Qin, L. Chang, Y. Zhang, and X. Lin, “Efficient shortest path index maintenance on dynamic road networks with theoretical guarantees,” Proc. VLDB Endow., vol. 13, no. 5, pp. 602–615, 2020.
[15] J. Fakcharoenphol and S. Rao, “Planar graphs, negative weight edges, shortest paths, and near linear time,” J. Comput. Syst. Sci., vol. 72, no. 5, pp. 868–889, 2006.
[16] S. Knopp, P. Sanders, D. Schultes, F. Schulz, and D. Wagner, “Computing many-to-many shortest paths using highway hierarchies,” in Proc. Workshop Algorithm Eng. Exp. (ALENEX), 2007, pp. 36–45.
[17] D. Delling, A. V. Goldberg, and R. F. Werneck, “Faster batched shortest paths in road networks,” in Proc. Workshop Algorithmic Approaches Transp. Model. Optim. Syst. (ATMOS), ser. OASics, vol. 20, 2011, pp. 52–63.
[18] C. Demetrescu and G. F. Italiano, “A new approach to dynamic all pairs shortest paths,” J. ACM, vol. 51, no. 6, pp. 968–992, 2004.
[19] D. J. Lehmann, “Algebraic structures for transitive closure,” Theoret. Comput. Sci., vol. 4, no. 1, pp. 59–76, 1977.
[20] G. Ramalingam and T. Reps, “An incremental algorithm for a generalization of the shortest-path problem,” J. Algorithms, vol. 21, pp. 267–305, 1996.
[21] A. Górkiewicz and A. Karczmarz, “On incremental approximate shortest paths in directed graphs,” in Proc. Int. Colloq. Autom. Lang. Program. (ICALP), vol. 334, 2025, pp. 93:1–93:20.
[22] N. R. Sturtevant, “Benchmarks for grid-based pathfinding,” IEEE Trans. Comput. Intell. AI Games, vol. 4, no. 2, pp. 144–148, 2012.