Windowed Hierarchical Cooperative A (WHCA)** is a decoupled, suboptimal algorithm for Multi-Agent Path Finding (MAPF) that plans paths for each agent independently within a short, fixed-duration time window using a shared Conflict Avoidance Table (CAT) to reserve space-time cells and prevent collisions. It operates in a hierarchical fashion, where high-level task assignment determines goals, and low-level Space-Time A* searches plan individual trajectories within the current window, trading optimality for computational scalability in large fleets.
Glossary
Windowed Hierarchical Cooperative A* (WHCA*)

What is Windowed Hierarchical Cooperative A* (WHCA*)?
A scalable, suboptimal algorithm for coordinating multiple agents in shared environments by planning in short, successive windows.
The algorithm's core innovation is its windowed replanning cycle: after all agents execute their planned moves for the current window, the system increments the window, updates agent positions, and replans for the next interval. This periodic replanning allows WHCA* to handle dynamic environments and long-horizon tasks efficiently. While fast and scalable, it can produce suboptimal solutions with potential deadlocks in dense configurations, as the local window constraints do not guarantee global optimality.
Core Characteristics of WHCA*
Windowed Hierarchical Cooperative A* (WHCA*) is a decoupled, scalable algorithm for Multi-Agent Path Finding (MAPF) that trades optimality for computational efficiency, making it suitable for large, dynamic fleets.
Time-Windowed Planning
WHCA* does not plan complete paths to the goal. Instead, it plans only a short segment—typically 5 to 15 timesteps into the future—known as the planning window. Agents execute this segment and then replan from their new position. This rolling horizon approach allows the algorithm to adapt to dynamic changes and new agent insertions in real-time, but it sacrifices global optimality for local feasibility.
Reservation Table for Coordination
The core coordination mechanism is a centralized Conflict Avoidance Table (CAT). This data structure stores space-time reservations—records of which agent plans to occupy which (x, y, t) cell. When an agent plans its windowed path using A*, it queries the CAT to avoid cells already reserved by other agents. This enforces hard constraints that prevent vertex conflicts (same location, same time) and edge conflicts (swapping positions).
Hierarchical & Decoupled Search
WHCA* is a decoupled algorithm, meaning it plans for each agent independently rather than in the exponential joint state space. The hierarchy has two levels:
- High Level: Assigns a fixed priority order to agents (often static).
- Low Level: Each agent, in priority order, runs a space-time A* search for its window, respecting reservations from higher-priority agents. This structure makes computation scalable to hundreds of agents, as search complexity grows linearly with the number of agents, not exponentially.
Suboptimal but Scalable
WHCA* is bounded suboptimal; it does not guarantee the shortest sum-of-costs or makespan. Suboptimality arises from three sources:
- Fixed Priority Ordering: Lower-priority agents are treated as moving obstacles, which can lead to detours.
- Limited Lookahead: The short window cannot anticipate conflicts far in the future.
- Myopic Replanning: Replanning at each step can lead to oscillatory or inefficient global behavior. The trade-off is extreme scalability, often solving problems with 100+ agents in milliseconds where optimal algorithms fail.
Typical Use Case: Warehousing & Logistics
WHCA* is practically deployed in environments where density is moderate and dynamic changes are frequent. Classic examples include:
- Autonomous Mobile Robot (AMR) fleets in fulfillment centers, where new pick tasks are constantly assigned.
- Dynamic obstacle avoidance with human workers or manual vehicles entering the workspace.
- Online Lifelong MAPF (LMAPF) scenarios, where agents receive new goals immediately upon completing old ones. The algorithm's fast replanning cycle (e.g., every 100ms) is ideal for these operational conditions.
Key Limitations & Failure Modes
Despite its strengths, WHCA* has known failure modes that system architects must mitigate:
- Deadlocks: Agents can cyclically block each other, especially in narrow corridors, because the short window cannot plan around complex interdependencies.
- Starvation: Low-priority agents can be perpetually delayed by a stream of higher-priority agents.
- Window Size Sensitivity: Performance is highly sensitive to the chosen window length. Too short leads to myopia; too long reduces the benefit of replanning and increases computation.
- Priority Assignment: A poor static priority ordering can drastically reduce overall throughput. Adaptive or dynamic priority schemes are often layered on top.
How WHCA* Works: Mechanism and Process
Windowed Hierarchical Cooperative A* (WHCA*) is a decentralized, scalable algorithm for Multi-Agent Path Finding (MAPF) that operates by planning within a short, receding time window and using a shared reservation table to prevent collisions.
The algorithm functions in a planning cycle. Each agent independently runs a space-time A* search from its current position, but only plans a path for a fixed number of timesteps into the future—the planning window. During this search, the agent queries a globally accessible Conflict Avoidance Table (CAT) to reserve space-time cells, ensuring its planned trajectory does not conflict with paths other agents have already reserved. This decentralized coordination avoids the computational explosion of searching a full joint state space.
When an agent reaches the end of its current planned window, it replans from its new state, again reserving the next window of cells in the CAT. This periodic replanning allows the system to adapt to execution delays and dynamic changes. The hierarchical aspect refers to the high-level assignment of priorities or goals, while the low-level windowed A* search handles the detailed, collision-free trajectory generation. The algorithm is complete for finite problems and suboptimal, trading perfect optimality for dramatic gains in scalability for large fleets.
Practical Applications and Use Cases
Windowed Hierarchical Cooperative A* (WHCA*) is engineered for scalability in real-world, dynamic multi-agent systems. Its core design—planning within a short time window and using a hierarchical reservation table—makes it particularly suited for the following operational scenarios.
Warehouse Logistics & AMR Coordination
WHCA* is a cornerstone algorithm for coordinating fleets of Autonomous Mobile Robots (AMRs) in distribution centers. It enables dozens of robots to navigate shared aisles, pick stations, and charging docks without deadlock.
- Dynamic Replanning: The periodic replanning window allows robots to adapt to new orders, blocked pathways, or priority overrides in near real-time.
- Scalability: By planning for a short horizon (e.g., 5-10 seconds) and using a hierarchical approach, WHCA* can manage 50-100+ agents where optimal algorithms like CBS or MAA* become computationally intractable.
- Use Case: A major e-commerce fulfillment center uses WHCA* to coordinate a mixed fleet of item-picking AMRs and larger pallet-transport robots, reducing travel time by ~22% compared to older, zone-based routing.
Automated Container Terminals & Ports
In port automation, Automated Guided Vehicles (AGVs) transport shipping containers between ships, cranes, and storage yards. WHCA* provides the necessary collision-free path planning in this highly structured but dynamic grid environment.
- Spatial-Temporal Reservations: The algorithm's reservation table prevents conflicts at critical intersections and under crane gantries, where collisions are catastrophic.
- Handling Priorities: The hierarchical framework can incorporate dynamic priorities, allowing urgent export containers to bypass standard traffic flows.
- Integration: WHCA* acts as the core planner within a larger Spatial-Temporal Scheduling system that also manages crane operations and yard stacking, minimizing vessel turnaround time.
Hospital & Campus Delivery Robots
For service robots delivering meals, linens, or lab samples in semi-structured environments like hospitals, WHCA* balances efficiency with robust safety.
- Human-Shared Spaces: The short planning window and frequent replanning allow robots to react to unpredictable human movement in corridors and elevator lobbies.
- Decentralized Execution: Each robot can run its own WHCA* instance, sharing only its reserved space-time cells (via the Conflict Avoidance Table) with a central coordinator, reducing communication overhead.
- Example: A hospital deployment uses WHCA*-based robots for pharmacy deliveries. The system dynamically reroutes around closed corridors for cleaning or emergency traffic, maintaining >99% on-time delivery without requiring full global replans.
Video Game & Simulation AI
WHCA* is widely used in real-time strategy games and massive multi-agent simulations where rendering believable group movement for hundreds of units is critical.
- Performance: The algorithm's suboptimal but fast solutions are perfectly suited for 60 FPS game loops, where visual plausibility trumps mathematical optimality.
- Natural-looking Flow: The windowed approach creates fluid, adaptive crowd movement as units continuously replan around each other, avoiding the rigid, pre-computed paths that look robotic.
- Application: Game engines use WHCA* variants for large-scale battle scenes, civilian crowd simulations, and any scenario requiring Lifelong MAPF (LMAPF) where agents receive new goals continuously.
Modular Manufacturing & Assembly Lines
In flexible, cellular manufacturing systems, autonomous carts transport components between workstations. WHCA* coordinates these carts in a tightly coupled, just-in-time environment.
- JIT Synchronization: Paths are planned within time windows that align with station cycle times, ensuring a component arrives precisely when a workstation is ready.
- Deadlock Prevention: The reservation table mechanism inherently prevents gridlock in confined spaces like assembly cell entry points, a common failure mode for simpler algorithms.
- System Benefit: Enables rapid reconfiguration of production lines. When a workstation is moved, the WHCA* planner's graph is updated, and carts automatically adapt their routing without reprogramming.
Drone Swarm Light Shows & Surveillance
For synchronized aerial drone displays involving hundreds of UAVs, WHCA* provides the foundational coordination layer for generating safe, collision-free trajectories.
- 3D Space-Time Planning: The algorithm extends naturally to 3D grids, reserving airspace cubes (x, y, z, t) to prevent mid-air collisions during complex maneuvers.
- Robustness to Timing Errors: The concept of k-Robust Planning can be integrated with WHCA* by inflating reservations, providing a buffer for minor motor or timing variances between drones.
- Surveillance Adaptation: In perimeter monitoring or search missions, drones use WHCA* to dynamically partition airspace and patrol sectors, replanning as threats are identified or battery levels drop, linking to Battery-Aware Scheduling.
WHCA* vs. Other MAPF Algorithms
A feature and performance comparison of Windowed Hierarchical Cooperative A* against other prominent centralized and decentralized Multi-Agent Path Finding algorithms.
| Algorithmic Feature / Metric | WHCA* (Windowed Hierarchical Cooperative A*) | CBS (Conflict-Based Search) | ORCA (Optimal Reciprocal Collision Avoidance) | MAA* (Multi-Agent A*) |
|---|---|---|---|---|
Algorithmic Paradigm | Decoupled, Hierarchical, Window-based | Centralized, Optimal, Two-Level Search | Decentralized, Reactive, Velocity-Based | Centralized, Optimal, Joint State Search |
Solution Guarantee | Suboptimal (Bounded) | Optimal | Local Convergence (No global guarantee) | Optimal |
Primary Planning Scope | Short-term window (e.g., 5-10 timesteps) | Full paths to all goals | Next velocity for immediate horizon | Full joint path to all goals |
Scalability (Agent Count) | High (100s+) | Medium (10s-50s) | High (100s+) | Very Low (<10) |
Handles Dynamic Environments | ||||
Core Conflict Resolution | Reservation Table within window | Constraint tree & individual replanning | Reciprocal velocity selection | Implicit in joint state space |
Typical Performance Metric | Windowed Sum of Costs | Optimal Sum of Costs (SOC) | Average Agent Speed / Clearance | Optimal Sum of Costs (SOC) |
Computational Overhead | Low per replan cycle | High (exponential worst-case) | Very Low (per-agent calculation) | Extremely High (exponential in agents) |
Requires Central Coordinator | ||||
Suitable for Lifelong MAPF (LMAPF) |
Frequently Asked Questions
Windowed Hierarchical Cooperative A* (WHCA*) is a foundational algorithm for scalable, real-time multi-agent path planning. These questions address its core mechanisms, trade-offs, and practical applications in logistics and robotics.
Windowed Hierarchical Cooperative A (WHCA)** is a decentralized, suboptimal algorithm for Multi-Agent Path Finding (MAPF) that plans collision-free paths for agents within a short, rolling time window and replans periodically. It works by combining three key concepts:
- Hierarchical Planning: The global problem is decomposed. A high-level planner assigns coarse goals, while low-level planners (one per agent) compute detailed paths using a modified A* search.
- Cooperation via a Reservation Table: Agents coordinate indirectly through a shared Conflict Avoidance Table (CAT). When planning, an agent's low-level A* search reserves the space-time cells it will occupy within the current planning window, preventing other agents from reserving the same cells.
- Windowed Replanning: Paths are only planned for a fixed number of timesteps (the window) into the future. Once an agent moves, the window slides forward, and the agent replans from its new state, allowing the system to adapt to dynamic changes and execution delays.
This structure enables WHCA* to scale to hundreds of agents by avoiding the exponential complexity of searching the full joint state space of all agents.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Windowed Hierarchical Cooperative A* (WHCA*) is a key algorithm within the broader field of Multi-Agent Path Finding (MAPF). The following terms define its core mechanisms, related algorithms, and performance metrics.
Multi-Agent Path Finding (MAPF)
Multi-Agent Path Finding (MAPF) is the foundational computational problem of planning collision-free paths for multiple agents from their start positions to their goal positions in a shared environment. It is the core problem that WHCA* is designed to solve.
- Centralized vs. Decoupled: Algorithms are categorized as centralized (planning in the joint state space of all agents) or decoupled (planning for agents individually with coordination).
- Optimality Criteria: Solutions are typically evaluated on metrics like Makespan (total completion time) or Sum of Costs (SOC) (total distance traveled).
- Complexity: Finding optimal paths is NP-hard, leading to the development of scalable, suboptimal algorithms like WHCA*.
Conflict-Based Search (CBS)
Conflict-Based Search (CBS) is a leading optimal, centralized MAPF algorithm. It operates on two levels: a high-level constraint tree and low-level path planners for individual agents.
- Constraint Resolution: When a conflict (e.g., two agents occupying the same space-time) is found, CBS branches by imposing constraints on the involved agents and replans their paths.
- Optimality Guarantee: It systematically explores constraint combinations until it finds a conflict-free solution with minimal cost.
- Contrast with WHCA*: Unlike CBS, WHCA* is a decoupled, suboptimal, and windowed algorithm designed for scalability in lifelong planning scenarios, sacrificing optimality for real-time performance.
Conflict Avoidance Table (CAT)
A Conflict Avoidance Table (CAT) is a core data structure used by WHCA* and other MAPF algorithms to enable efficient coordination. It is essentially a space-time reservation table.
- Function: The CAT records which agent has reserved a specific grid cell at a specific future time step.
- Fast Conflict Detection: During planning, an agent's proposed path is checked against the CAT to detect vertex conflicts (same cell, same time) and edge conflicts (swapping positions).
- Hierarchical Use in WHCA*: In WHCA*, agents plan using a local CAT that only contains reservations within the current planning window, enabling decoupled and parallel planning.
Lifelong MAPF (LMAPF)
Lifelong MAPF (LMAPF) is a dynamic variant of the path finding problem where agents continuously execute and receive new tasks, making it a persistent, online planning challenge. This is the primary operational context for WHCA*.
- Continuous Operation: Agents are never "done"; upon reaching a goal, they are immediately assigned a new one.
- Requires Replanning: The environment and agent objectives are constantly changing, necessitating algorithms that can replan efficiently.
- WHCA's Fit*: WHCA* is explicitly designed for LMAPF. Its windowed approach (planning only a short segment ahead) and periodic replanning cycle are ideal for this never-ending, dynamic problem.
Space-Time A*
Space-Time A* is a fundamental path planning algorithm that extends the classic A* search to include time as an explicit dimension. It is the low-level planner used within the WHCA* framework.
- Node Representation: Each search node is a tuple
(x, y, t)representing a location at a specific time step. - Collision Checking: Paths are planned directly in a 3D space-time grid, allowing the algorithm to avoid reservations in the Conflict Avoidance Table (CAT) by treating them as blocked cells.
- Role in WHCA*: Each agent in WHCA* uses Space-Time A* to find an optimal path from its current position to its sub-goal within the current fixed-duration planning window, respecting the shared CAT.
Bounded Suboptimal Search
Bounded Suboptimal Search refers to a class of algorithms that sacrifice guaranteed optimality for significant gains in speed or scalability, with a provable bound on solution cost. WHCA* falls into this category.
- Weighted A*: A common technique where the heuristic is multiplied by a weight
(w > 1), speeding up the search but potentially returning a path with cost no worse thanw * optimal_cost. - Trade-off: This is a critical engineering trade-off in real-world systems where a feasible solution now is more valuable than an optimal solution later.
- WHCA's Suboptimality*: WHCA*'s suboptimality arises from its decoupled nature (agents plan independently per window) and its use of a limited planning horizon, which can lead to myopic decisions.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us