Space-Time A (STA)** is a graph search algorithm that plans a path for a single agent within a time-expanded graph, where each node represents a unique (x, y, t) coordinate—a specific location at a specific time. By explicitly searching through this combined space-time domain, the algorithm can find trajectories that avoid collisions with dynamic obstacles whose future positions are known or predicted, making it a core technique for multi-agent path finding (MAPF) and robotics in shared workspaces.
Glossary
Space-Time A*

What is Space-Time A*?
Space-Time A* is a foundational path planning algorithm that extends the classic A* search to include time as an explicit dimension, enabling collision-free trajectory planning in dynamic environments with moving obstacles.
The algorithm operates by treating time as a third spatial dimension, applying the standard A* heuristic search to minimize a cost function, typically travel time or path length. To ensure collision avoidance, the search prohibits states where the agent would occupy a cell reserved by another agent or obstacle at that time. This explicit temporal reasoning allows STA* to find optimal, deadlock-free paths but scales poorly as the time horizon or number of agents increases, leading to the development of more efficient variants like Safe Interval Path Planning (SIPP).
Core Characteristics of Space-Time A*
Space-Time A* is a deterministic search algorithm that extends classical A* by explicitly incorporating time as a search dimension, enabling collision-free path planning in environments with dynamic, moving obstacles.
Time as an Explicit Dimension
The fundamental extension of Space-Time A* is the representation of the search space as a time-expanded graph. Each node is not just a spatial location (x, y) but a space-time coordinate (x, y, t). This allows the algorithm to reason directly about when an agent will occupy a cell, enabling it to plan around obstacle trajectories that are known a priori. Searching in this 3D space (2D + time) transforms a dynamic problem into a static graph search, where a 'collision' is simply an occupied node in the expanded graph.
Optimality for Single-Agent Planning
For a single agent with a known start time, Space-Time A* is provably optimal with an admissible heuristic. It finds the shortest possible path in terms of a combined metric (e.g., time or distance) that is collision-free with all predicted moving obstacles. The heuristic function, typically the Euclidean distance or Manhattan distance divided by maximum velocity, must only consider the spatial component and ignore time to remain admissible, as time can only increase along a path.
Centralized vs. Decoupled Planning
Space-Time A* is inherently a centralized planning approach when applied to multi-agent problems. It plans in the joint space-time state space of all agents, where a state is defined by the location and time of every agent. This guarantees optimality and completeness for the entire fleet but leads to exponential state explosion. It is often used as a subroutine within decoupled or hybrid approaches (like Priority Planning), where agents plan sequentially using Space-Time A*, treating higher-priority agents as dynamic obstacles.
Conflict Detection via Reservation Table
A core data structure is the reservation table or space-time occupancy grid. This table records which space-time cell (x, y, t) is occupied by which agent or obstacle. Before expanding to a new node (x, y, t), the algorithm performs a lookup in this table. If the cell is reserved, that path branch is pruned. This provides an efficient, O(1) method for collision detection against both static obstacles and the planned paths of other agents, which is more efficient than checking against a list of obstacle trajectories during each node expansion.
Computational Complexity and Scalability
The primary limitation is scalability. The search space grows as O((V)^T), where V is the number of spatial vertices and T is the time horizon. For long horizons or fine time discretization, this becomes intractable. Performance is highly dependent on:
- Time discretization (Δt): Finer resolution increases search depth.
- Planning horizon: Infinite horizons require a stopping criterion.
- Obstacle density: More dynamic obstacles prune the search tree faster but also increase reservation table checks. It is therefore typically applied to short-horizon planning or as part of a replanning cycle in a larger architecture.
Applications in Fleet Orchestration
In heterogeneous fleet orchestration, Space-Time A* is used for high-fidelity trajectory planning for critical agents, such as Autonomous Mobile Robots (AMRs) navigating through areas with predictable pedestrian traffic or other vehicles. It enables:
- Scheduling wait actions explicitly to avoid collisions.
- Integrating with temporal schedules, ensuring an agent arrives at a pickup point at the exact required time.
- Providing a baseline for more scalable, suboptimal multi-agent algorithms (e.g., WHCA*). Its deterministic output is valuable for auditing and validation of safer, reactive collision avoidance systems like ORCA.
How Space-Time A* Works: A Step-by-Step Mechanism
Space-Time A* is a path planning algorithm that extends the classic A* search to include time as an explicit dimension, enabling the planning of collision-free trajectories in dynamic environments with moving obstacles.
The algorithm operates on a time-expanded graph, where each node represents a unique (x, y, t) coordinate—a specific location at a specific time. The search begins at the agent's start state (start location, time=0) and uses a priority queue to explore states, ordered by a cost function f(n) = g(n) + h(n). The g(n) cost is the actual travel time from the start, while h(n) is an admissible heuristic, like the Manhattan distance to the goal, which estimates the remaining travel time ignoring obstacles.
During expansion, the algorithm generates successor states by applying motion primitives (e.g., wait, move north, move east). It checks each candidate (x', y', t+1) against a conflict avoidance table that records all space-time reservations by other agents and dynamic obstacles. A state is only valid if the cell is free at that time and does not create a vertex conflict (two agents in same cell) or edge conflict (swapping positions). The search terminates when the goal location is reached at any time, yielding a complete, collision-free space-time path.
Practical Applications of Space-Time A*
Space-Time A* is a foundational algorithm for planning collision-free trajectories in dynamic environments. Its explicit modeling of time makes it critical for real-world systems where agents and obstacles are in motion.
Warehouse & Logistics Robotics
Space-Time A* is the core algorithm for coordinating fleets of Autonomous Mobile Robots (AMRs) in distribution centers. It plans paths that avoid:
- Static obstacles like shelves and workstations.
- Dynamic obstacles including other robots, human-operated forklifts, and temporary pallets.
- Time-dependent constraints such as closed zones during shift changes. By searching in the space-time domain, it guarantees that each robot's reservation of a location is exclusive for a specific time window, preventing deadlocks and collisions in high-traffic aisles.
Automated Valet Parking Systems
In automated parking garages, Space-Time A* plans trajectories for customer vehicles being transported by robotic platforms. The algorithm must account for:
- The kinematic constraints of the vehicle carriers.
- The precise timing required to slot vehicles into tight spaces.
- The dynamic flow of other carriers and occasional human pedestrians. The time-expanded graph representation allows the system to schedule movements to maximize throughput, ensuring a vehicle is moved to the retrieval point exactly when the customer returns.
Air Traffic Control Simulation
For simulating and managing airport ground operations, Space-Time A* plans taxi routes for aircraft from gates to runways. This application highlights its ability to handle:
- Agents with vastly different dynamics (e.g., a jumbo jet vs. a baggage tug).
- Strict safety margins requiring large separation distances modeled as time buffers.
- Shared, high-value resources like runway crossings and tight taxiway intersections. Planners use the algorithm to stress-test schedules, identify potential conflicts, and deconflict routes before issuing real-world instructions to pilots.
Video Game & Crowd Simulation
In strategy games and realistic crowd simulators, Space-Time A* enables hundreds of units to navigate complex, changing battlefields. Its utility here includes:
- Creating believable, collision-free movement for armies or civilian crowds.
- Reacting to dynamic terrain like collapsing bridges or newly created barriers.
- Predictable performance due to its systematic A* search, which is crucial for consistent game simulation ticks. While often used in a suboptimal or windowed form (like WHCA*) for scalability, the core space-time reservation principle ensures visual coherence and prevents units from phasing through each other.
Multi-Robot Search & Rescue
For coordinating UAVs or ground robots in disaster response, Space-Time A* plans exploration paths that ensure coverage while maintaining safe separation. Key considerations are:
- Unstructured and partially unknown environments requiring integration with real-time replanning.
- Communication constraints that may necessitate decentralized versions of the algorithm.
- Critical battery life (energy) constraints, which can be incorporated as an additional cost dimension. The space-time path ensures robots do not collide while simultaneously mapping different sectors of a collapsed structure, maximizing operational efficiency under time pressure.
Manufacturing Cell Coordination
In flexible manufacturing systems, Space-Time A* schedules the movement of parts between workstations via autonomous carts or overhead conveyors. It solves:
- Just-in-Time sequencing where a part must arrive at a machine precisely as it finishes its previous operation.
- Avoiding interference with stationary robotic arms whose workspaces periodically intrude into travel lanes.
- Optimizing for makespan (total production time) by minimizing idle time for high-value machines. This application directly ties path planning to production scheduling, treating time as a first-class resource to be optimized.
Space-Time A* vs. Related Path Planning Methods
A technical comparison of Space-Time A* against other key algorithms for multi-agent and dynamic environment path planning, highlighting core mechanisms and suitability for heterogeneous fleet orchestration.
| Feature / Mechanism | Space-Time A* | Classical A* | Multi-Agent A* (MAA*) | Conflict-Based Search (CBS) |
|---|---|---|---|---|
Core Search Space | Space-time (x, y, t) | Spatial (x, y) only | Joint state-space of all agents | Individual agent paths with constraint tree |
Explicit Time Dimension | ||||
Handles Dynamic Obstacles | ||||
Planning Paradigm | Centralized, single-agent with temporal obstacles | Centralized, single-agent | Centralized, joint-state | Centralized, two-level (constraint & path) |
Primary Use Case | Single agent with moving obstacles / reservations | Static graph search | Optimal, small-scale MAPF | Optimal, scalable MAPF |
Scalability (Agent Count) | 1 (or treated sequentially) | 1 | Low (<10 agents) | Medium-High (10-100+ agents) |
Conflict Resolution Method | Implicit via space-time reservation table | Not applicable | Implicit in joint-state search | Explicit via constraint nodes |
Optimality Guarantee | Optimal for given reservations | Optimal for graph | Optimal (joint plan) | Optimal (sum of costs or makespan) |
Typical Performance (Solution Time) | < 1 sec for single agent | < 100 ms | Seconds to minutes | Seconds to hours |
Key Data Structure | Time-expanded graph or safe interval list | Priority queue (open list) | Priority queue in joint state-space | Constraint tree (CT) & conflict avoidance table (CAT) |
Integration with Fleet Orchestration | Used for individual agent planning within a scheduled fleet | Base component for spatial planning | Theoretical benchmark for small fleets | Core optimal solver for coordinated fleet routing |
Frequently Asked Questions
Space-Time A* is a foundational algorithm for planning collision-free paths in dynamic environments. These FAQs address its core mechanisms, applications, and relationship to other multi-agent planning techniques.
Space-Time A* is a path planning algorithm that extends the classic A* search to include time as an explicit dimension, enabling the planning of collision-free trajectories in dynamic environments with moving obstacles. It works by searching a time-expanded graph, where each node represents a unique (x, y, t) coordinate—a specific location at a specific time. The algorithm uses a cost function, typically f(n) = g(n) + h(n), where g(n) is the cost from the start to node n, and h(n) is a heuristic (like Euclidean distance) estimating the cost to the goal. It expands nodes with the lowest f(n) first, checking for collisions by ensuring no other agent's planned path occupies the same (x, y, t) cell. This explicit time dimension allows it to find paths that avoid predicted obstacle positions by introducing wait actions (staying in place for a timestep).
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 foundational algorithm within a broader ecosystem of techniques for coordinating multiple agents. These related concepts define the search spaces, conflict types, and alternative strategies used in multi-agent path planning.
Time-Expanded Graph
A Time-Expanded Graph is a modeling technique that transforms a dynamic environment into a static graph search problem. Each node represents a unique (location, time) pair, and edges represent feasible movements between locations across one time step. This explicit representation of time allows planners like Space-Time A* to find paths that avoid moving obstacles by treating their future positions as blocked nodes in the graph.
- Core Mechanism: Creates a layered graph where each layer is a snapshot of the environment at a discrete time step.
- Advantage: Converts temporal planning into a standard graph search.
- Disadvantage: Search space grows linearly with the planning horizon, which can be computationally expensive for long-term plans.
Conflict Avoidance Table (CAT)
A Conflict Avoidance Table is a core data structure used to efficiently detect collisions in multi-agent plans. It stores the reservations of space-time cells—recording which agent plans to occupy which location at which time. Algorithms like Space-Time A* or CBS query the CAT during planning to ensure a new path does not conflict with already-planned agent trajectories.
- Function: Acts as a centralized booking system for space and time.
- Query:
is_cell_free(location, time)returns a boolean. - Usage: Enables fast, incremental conflict checking without recomparing all agent paths pairwise.
Safe Interval Path Planning (SIPP)
Safe Interval Path Planning is an algorithm designed for dynamic environments with moving obstacles. Instead of expanding every time step (like a Time-Expanded Graph), SIPP groups time into safe intervals—continuous periods where a location is free of obstacles. The planner then searches over these intervals, dramatically reducing the state space.
- Key Innovation: Plans over intervals of time rather than individual timesteps.
- Efficiency: Often more efficient than Space-Time A* in environments with sparse, predictable dynamic obstacles.
- Relation to Space-Time A*: Both handle time explicitly, but SIPP uses a more compact representation.
Vertex & Edge Conflicts
These are the two fundamental types of spatial conflicts that Space-Time A* and other MAPF algorithms must resolve.
- Vertex Conflict: Occurs when two agents are planned to occupy the same location (vertex) at the same time. This is a direct collision.
- Edge Conflict: Occurs when two agents are planned to traverse the same edge (i.e., move between the same two vertices) in opposite directions during the same time step. This represents a head-on collision in a narrow corridor.
Resolving these conflicts typically involves adding constraints that force one agent to wait or take a different route, which is the central challenge in cooperative path finding.
Multi-Agent Path Finding (MAPF)
Multi-Agent Path Finding is the overarching computational problem that Space-Time A* addresses. The objective is to find collision-free paths for multiple agents from their start locations to their goal locations in a shared environment. MAPF solutions can be optimal (minimizing makespan or sum-of-costs) or suboptimal for scalability.
- Centralized vs. Decoupled: Space-Time A* is typically a centralized approach, planning in the joint space-time state space.
- Standard Input: A graph, agent start/goal positions, and a definition of conflicts.
- Standard Output: A set of timed paths for all agents with no vertex or edge conflicts.
Kinodynamic Planning
While Space-Time A* plans discrete paths in (x, y, time) space, Kinodynamic Planning addresses the continuous motion constraints of physical robots. It finds trajectories that are not only collision-free but also satisfy the agent's kinematic (e.g., turning radius) and dynamic (e.g., acceleration, velocity) limits.
- Beyond Discretization: Plans in a continuous state space (e.g., position, velocity, orientation).
- State Lattices: A common discretization method using motion primitives that obey dynamics.
- Relation: Space-Time A* can be a high-level planner whose output is refined by a kinodynamic planner to generate executable, smooth trajectories for real robots.

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