Inferensys

Glossary

Space-Time A*

Space-Time A* is a search algorithm that extends the classic A* by explicitly including time as a dimension, enabling it to plan collision-free paths for an agent moving among other agents with known or predicted trajectories.
Developer reviewing multi-agent chat interface on laptop, agent conversation logs visible, casual coding session at WeWork desk.
REAL-TIME REPLANNING ENGINES

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.

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.

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.

REAL-TIME REPLANNING ENGINES

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.

01

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.

02

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.

03

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

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.

05

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

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

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.

ALGORITHM COMPARISON

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 / MetricSpace-Time A*A* / Lattice PlannerReactive 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

REAL-WORLD DEPLOYMENTS

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.

01

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.

>99.9%
Collision-Free Execution
< 1 sec
Replanning Latency
02

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.

03

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.

30%+
Throughput Increase
04

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.

05

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.

06

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.

SPACE-TIME A*

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.

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.