Inferensys

Glossary

Windowed Hierarchical Cooperative A* (WHCA*)

WHCA* is a scalable, suboptimal Multi-Agent Path Finding algorithm that plans collision-free paths within a short time window using a reservation table and periodically replans to adapt to dynamic environments.
Developer demonstrating multi-agent tool use, agent tool selection interface on laptop, casual tech demo moment.
MULTI-AGENT PATH PLANNING

What is Windowed Hierarchical Cooperative A* (WHCA*)?

A scalable, suboptimal algorithm for coordinating multiple agents in shared environments by planning in short, successive windows.

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.

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.

ALGORITHM ARCHITECTURE

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.

01

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.

02

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).

03

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.
04

Suboptimal but Scalable

WHCA* is bounded suboptimal; it does not guarantee the shortest sum-of-costs or makespan. Suboptimality arises from three sources:

  1. Fixed Priority Ordering: Lower-priority agents are treated as moving obstacles, which can lead to detours.
  2. Limited Lookahead: The short window cannot anticipate conflicts far in the future.
  3. 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.
05

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.
06

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.
MECHANISM

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.

WHCA* IN ACTION

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.

01

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.
02

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.
03

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.
04

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.
05

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.
06

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.
ALGORITHM COMPARISON

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 / MetricWHCA* (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)

WINDOWED HIERARCHICAL COOPERATIVE A* (WHCA*)

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:

  1. 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.
  2. 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.
  3. 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.

Prasad Kumkar

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.