Space-Time A* operates on a state-space graph where each node represents a unique (x, y, t) coordinate—a specific location at a specific time. The search finds a path from a start state to a goal state while respecting spatio-temporal constraints, primarily avoiding reservations where other agents will occupy a given cell at a given future time. This makes it a cornerstone algorithm for Multi-Agent Path Finding (MAPF) in structured, discretized environments like warehouses.
Glossary
Space-Time A*

What is Space-Time A*?
Space-Time A* is a search algorithm that extends the classic A* pathfinder by explicitly incorporating time as a search dimension, enabling collision-free trajectory planning for an agent moving among other agents with known or predicted trajectories.
The algorithm's key advantage is its completeness for static obstacle maps with known dynamic agent paths; if a collision-free path exists within the searched space-time volume, Space-Time A* will find it. However, its computational cost grows with the time horizon and environmental complexity, often requiring optimizations like heuristic functions that estimate time-to-goal and pruning techniques to manage the expanded search space. It is frequently used as a single-agent planner within larger Conflict-Based Search (CBS) frameworks.
Core Characteristics of Space-Time A*
Space-Time A* is a search algorithm that extends A* by including time as an explicit dimension, allowing it to plan collision-free paths for an agent moving among other agents with known trajectories. The following cards detail its defining mechanisms and applications.
Time as a Search Dimension
The fundamental extension of Space-Time A* is the explicit inclusion of time as a dimension in the search space. While classical A* searches a graph of spatial states (x, y), Space-Time A* searches a graph of space-time states (x, y, t). This allows the algorithm to reason directly about when an agent will occupy a specific location, which is essential for planning among moving obstacles with known or predicted trajectories. The search expands nodes not just through space, but forward in time, evaluating the safety of each state at its specific timestamp.
Collision Checking with Dynamic Obstacles
A core function is evaluating potential collisions with other agents. For each candidate state (x, y, t), the algorithm checks against a timeline of obstacle reservations. This is often represented as a 4D collision map or a set of space-time obstacles. If an obstacle (another robot, a person) is predicted to occupy (x, y) at time t, that state is marked invalid. This enables the planner to find paths that wait for obstacles to pass or navigate around their future positions, producing provably collision-free trajectories in dynamic environments.
Optimality and the Space-Time Heuristic
Like A*, Space-Time A* aims for optimality. It uses a cost function f(n) = g(n) + h(n), where:
- g(n) is the actual cost from the start to node n (e.g., elapsed time, energy).
- h(n) is an admissible heuristic estimating cost to the goal. A common heuristic is the Euclidean distance to the goal divided by maximum speed, ignoring obstacles. This must not overestimate the true remaining time-cost to guarantee optimality. The search explores the space-time graph, prioritizing nodes with the lowest f(n), ultimately finding the shortest-time, collision-free path.
Applications in Multi-Agent Coordination
Space-Time A* is a cornerstone for Multi-Agent Path Finding (MAPF) in structured environments like warehouses. In a centralized approach, a single planner uses Space-Time A* to find paths for all agents simultaneously, treating other agents as dynamic obstacles. In a decoupled or prioritized approach, paths are planned sequentially; higher-priority agents use standard A*, while lower-priority agents use Space-Time A*, treating the higher-priority agents' planned paths as dynamic obstacles. This enables scalable coordination for heterogeneous fleets of robots and manual vehicles.
Limitations and Computational Complexity
The primary limitation is exponential state explosion. Adding time discretely increases the search space dimensionally. Planning horizons of even a few minutes can be prohibitive. Key constraints include:
- Time discretization granularity: Finer resolution increases accuracy but also node count.
- Long planning horizons: Searching far into the future is computationally expensive.
- Uncertainty: The algorithm assumes perfect knowledge of obstacle trajectories, which is often unrealistic. This makes it most suitable for environments with high predictability or where agents broadcast their intentions via an orchestration middleware.
Relation to Other Replanning Engines
Space-Time A* sits within a spectrum of real-time planners:
- Vs. LPA/D Lite**: These are incremental graph replanners for changing spatial costs. Space-Time A* plans in a static but higher-dimensional space-time graph.
- Vs. Reactive Methods (DWA, ORCA): Those are local, collision-avoidance controllers with no long-term plan. Space-Time A* provides a global, optimal plan.
- Vs. SIPP: Safe Interval Path Planning is a more efficient variant that groups safe time intervals at each spatial cell, reducing the effective search space compared to naive Space-Time A*. It is often used to generate an initial global plan, which is then tracked and locally adjusted by a reactive controller.
How Space-Time A* Works: A Step-by-Step Mechanism
Space-Time A* is a search algorithm that extends A* by including time as an explicit dimension, allowing it to plan collision-free paths for an agent moving among other agents with known trajectories.
The algorithm operates on a state-space graph where each node represents a unique (x, y, t) coordinate—a spatial position at a specific time. The search begins from the agent's start state and expands nodes by applying motion primitives, which define possible transitions (e.g., wait, move north) to neighboring spatial cells at the next timestep. A heuristic function, typically the Manhattan distance to the goal, guides the search towards the objective while a cost function accumulates travel time or other penalties.
Collision avoidance is enforced by checking each candidate state against a reservation table that records the planned positions of all other agents over time. A state is only valid if it is not occupied and does not violate a spatial-temporal constraint. The search terminates when it reaches the goal position, with the time dimension free, producing a collision-free trajectory defined as a sequence of (x, y, t) states. This explicit time representation guarantees avoidance of dynamic obstacles with predictable paths.
Space-Time A* vs. Other Path Planners
A technical comparison of Space-Time A* against other key path planning and collision avoidance algorithms used in heterogeneous fleet orchestration.
| Feature / Metric | Space-Time A* | A* / Lattice Planner | Reactive Avoidance (DWA, ORCA) | Sampling-Based (RRT*, PRM) |
|---|---|---|---|---|
Core Planning Dimension | Explicit time dimension (state = [x, y, t]) | Spatial only (state = [x, y]) or spatial-kinematic | Velocity space (no explicit path) | Configuration space (C-space) |
Handles Dynamic Obstacles | ||||
Handles Static Obstacles | ||||
Optimality Guarantee | Optimal w.r.t. time-expanded graph | Optimal w.r.t. spatial graph | Local optimality (no global guarantee) | Probabilistic completeness, asymptotic optimality (RRT*) |
Planning Output | A timed path (sequence of [x, y, t]) | A geometric path or trajectory | Instantaneous velocity commands | A geometric path |
Replanning Efficiency | Moderate (full re-search in time-space) | High (spatial graph search) | Very High (reactive, no search) | Low to Moderate (rebuilds tree/roadmap) |
Multi-Agent Coordination Method | Reservation table (agents as moving obstacles) | None (single-agent) | Reciprocal velocity adjustment | Typically single-agent; multi-agent requires extension |
Computational Complexity | O(b^d) in time-expanded graph (high) | O(b^d) in spatial graph (moderate) | O(n) for n obstacles (low) | O(n log n) for n samples (varies) |
Typical Use Case | Pre-planned, coordinated multi-agent schedules in structured environments | Single-agent global path planning in static maps | Local, reactive collision avoidance in dense crowds | High-DOF manipulator planning or complex, unstructured environments |
Practical Applications of Space-Time A*
Space-Time A* is a foundational algorithm for real-time replanning in multi-agent systems. Its explicit modeling of time enables deterministic, collision-free coordination in dynamic environments.
Automated Warehouse Logistics
Space-Time A* is the core pathfinding engine in modern automated storage and retrieval systems (AS/RS) and goods-to-person fulfillment centers. It coordinates fleets of autonomous mobile robots (AMRs) and automated guided vehicles (AGVs) moving among static racks, human pickers, and other robots. By planning in the space-time domain, the algorithm guarantees that each agent's reserved path does not intersect with others at the same time, preventing deadlocks in high-density zones. This enables throughput optimization by allowing robots to move in close, predictable formations.
Multi-Robot Assembly Lines
In flexible manufacturing systems, multiple robotic arms and transport carts must share workspace to assemble products. Space-Time A* plans trajectories where each robot's end-effector path and the movement of part carriers are treated as agents with known kinematics. The algorithm schedules the use of shared fixtures and tools across time, ensuring no two agents require the same physical resource simultaneously. This application is critical for just-in-time manufacturing, where the sequence of operations is dynamically adjusted based on part availability and order priority.
Autonomous Port Container Handling
Port terminals use Space-Time A* to orchestrate autonomous straddle carriers and container trucks moving between ships, storage yards, and rail heads. The algorithm plans routes across the vast, grid-like yard, accounting for the slow, constrained turning radii of large vehicles and the precise timing required for crane interactions. It resolves complex crossing conflicts at intersections and ensures containers meet their scheduled loading times. This application maximizes the utilization of multi-million dollar assets and minimizes vessel turnaround time.
Hospital Delivery Robot Fleets
Fleets of hospital service robots use Space-Time A* to navigate crowded corridors, elevators, and doorways while transporting lab samples, medications, and supplies. The algorithm incorporates the predictable trajectories of humans (e.g., staff following regular rounds) and other agents as dynamic obstacles. It plans polite, predictable paths that minimize disruption and explicitly reserves elevator call times and door-opening sequences. This ensures sterile items are delivered on schedule and robots do not block critical pathways during emergencies.
Video Game & Simulation AI
In real-time strategy games and crowd simulation software, Space-Time A* is used to plan believable, collision-free movement for hundreds of non-player characters (NPCs). Each unit's path is planned with respect to the known future positions of other moving units. This creates complex, flowing group behaviors like flanking maneuvers, formations, and coordinated raids without the unrealistic clipping or deadlock seen in simpler methods. The algorithm's deterministic output is also crucial for game replay and network synchronization in multiplayer environments.
Aircraft Taxiway Routing
At busy airports, decision support systems for air traffic controllers use variants of Space-Time A* to plan optimal, conflict-free taxi routes for aircraft from gate to runway and vice-versa. The algorithm treats each aircraft as an agent with a known push-back time, slow acceleration/deceleration profile, and large wingspan clearance requirement. It schedules the use of taxiway intersections as shared resources over time, preventing bottlenecks and minimizing fuel burn from idle waiting. This application requires extreme reliability and foresight to handle rare but critical scenarios.
Frequently Asked Questions
Space-Time A* is a foundational algorithm for planning collision-free paths for agents moving among other agents with known trajectories. These questions address its core mechanics, applications, and relationship to other planning methods.
Space-Time A* is a search algorithm that extends the classic A* algorithm by including time as an explicit dimension in its search space, allowing it to plan collision-free paths for an agent moving among other agents with known trajectories. It works by searching a state-space graph where each node represents a unique (x, y, t) coordinate—a specific location at a specific time. The algorithm uses a heuristic to guide the search from a start state to a goal state, expanding nodes while checking for collisions against a timeline of reserved positions occupied by other moving agents or dynamic obstacles. By finding a path through this expanded space-time continuum, it guarantees the agent reaches its goal without spatial or temporal conflicts, provided the other agents' paths are perfectly known and static.
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
Space-Time A* is a core algorithm within the broader ecosystem of real-time replanning and multi-agent coordination. These related concepts define the frameworks, constraints, and complementary methods used to navigate dynamic environments.
Velocity Obstacles (VO) & ORCA
Velocity Obstacles and Optimal Reciprocal Collision Avoidance represent the reactive, continuous-time counterpart to the deliberative, discrete-time planning of Space-Time A*.
- VO: A geometric framework that, given the current positions and velocities of the robot and an obstacle, defines the set of relative velocities that would cause a collision within a specified time horizon. The robot selects a velocity outside this set.
- ORCA: A decentralized, reciprocal version of VO where each agent assumes others will also cooperate to avoid collisions. Each agent independently computes a half-plane of permissible velocities and selects the new velocity closest to its preferred one. While Space-Time A* plans a full trajectory assuming known future motions, VO/ORCA agents react instantaneously to local sensor data, making them robust to unpredictable deviations.
Kinodynamic Planning
Kinodynamic planning is the problem of finding trajectories that satisfy both kinematic constraints (e.g., non-holonomic constraints like a car's turning radius) and dynamic constraints (e.g., acceleration, torque limits). Space-Time A* typically operates on a simplified kinematic model (e.g., 4 or 8-connected grid movement).
Advanced kinodynamic planners use:
- State Lattices: A discretization of the state space (x, y, heading, velocity) using motion primitives.
- Search-based algorithms like A* over the lattice.
- Optimization-based methods like Model Predictive Control to refine the trajectory. Space-Time A* can be extended to a space-time lattice to handle basic dynamic constraints while avoiding moving obstacles, bridging the gap between pure geometric planning and full kinodynamic planning.
Execution Monitoring & Replanning Triggers
For Space-Time A* to be effective in real-world systems, it must be embedded within a closed-loop execution framework.
- Execution Monitoring: The continuous process of comparing the agent's actual state (from sensors) against the planned state from the Space-Time A* trajectory. Discrepancies arise from actuation errors, unmodeled dynamics, or unpredicted obstacles.
- Replanning Trigger: A condition that initiates a new call to Space-Time A*. Common triggers include:
- The agent deviates beyond a positional or temporal threshold.
- A new dynamic obstacle enters the sensor field of view.
- A tracked obstacle deviates significantly from its predicted trajectory. This creates a sense-plan-act cycle, where Space-Time A* is the core deliberative "plan" component, invoked as needed by the monitoring system.

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