Multi-Agent A (MAA)** is a centralized, optimal search algorithm that extends the classic A* to the joint state space of all agents. It finds a set of paths that minimizes a global cost metric, such as sum of costs or makespan, while guaranteeing no vertex conflicts or edge conflicts. The algorithm searches a graph where each node represents the combined positions of all agents, applying a heuristic to estimate the remaining cost to the joint goal state.
Glossary
Multi-Agent A* (MAA*)

What is Multi-Agent A* (MAA*)?
Multi-Agent A* (MAA*) is a foundational, optimal search algorithm for the Multi-Agent Path Finding (MAPF) problem, which plans collision-free paths for an entire fleet by searching their combined state space.
While MAA* provides an optimality guarantee, its primary limitation is combinatorial explosion: the joint state space grows exponentially with the number of agents, making it intractable for large fleets. It serves as a benchmark for optimal MAPF and is the conceptual foundation for more scalable algorithms like Conflict-Based Search (CBS), which avoids searching the full joint space by resolving conflicts iteratively. MAA* is typically applied in offline planning for small, critical fleets where solution optimality is paramount.
Key Characteristics of Multi-Agent A* (MAA*)
Multi-Agent A* (MAA*) is a centralized, optimal search algorithm that plans in the joint state space of all agents, applying the A* algorithm to find a collision-free path for the entire fleet. The following cards detail its core operational principles and distinguishing features.
Centralized Joint State Space Search
MAA* operates by constructing and searching a joint state space, where each state represents the simultaneous positions of all agents. This is the Cartesian product of the individual agents' state spaces. The search applies the classic A algorithm* to this composite graph, using a heuristic function to estimate the remaining cost to the joint goal state. This approach guarantees finding an optimal solution (e.g., minimizing sum of costs or makespan) if one exists, as it explicitly considers all possible interactions between agents from the outset.
Optimality Guarantees
A defining feature of MAA* is its provision of optimality guarantees. By performing an exhaustive search in the joint space using an admissible heuristic (one that never overestimates cost), MAA* is guaranteed to find a solution that minimizes the chosen global cost function. Common optimality criteria include:
- Sum of Costs (SOC): Minimizing the total path length for all agents.
- Makespan: Minimizing the time until the last agent finishes. This formal guarantee is critical for applications in logistics and manufacturing where suboptimal paths can directly impact throughput and efficiency.
Exponential State Space Complexity
The primary limitation of MAA* is its computational complexity. The size of the joint state space grows exponentially with the number of agents. For N agents each with a state space of size S, the joint space has size S^N. This curse of dimensionality makes vanilla MAA* intractable for large fleets. Consequently, MAA* is typically applied to small, critical groups of agents (e.g., 2-10) or used as a benchmark for evaluating the optimality of more scalable, suboptimal algorithms like Conflict-Based Search (CBS) or Windowed Hierarchical Cooperative A (WHCA)**.
Heuristic Design for Multiple Agents
The efficiency of the A* search hinges on the quality of the heuristic function. For MAA*, effective heuristics are often derived by relaxing the multi-agent problem. Common relaxations include:
- Ignore Interactions: Summing the optimal individual path costs for each agent, ignoring inter-agent conflicts. This is admissible but often weak.
- Solve a Simplified Problem: Using the cost from a faster, possibly suboptimal MAPF algorithm as a heuristic. Designing a tight (close to the true cost) yet admissible heuristic is a key research challenge, as it directly controls the number of states explored before finding the optimal solution.
Explicit Collision Avoidance
Unlike decoupled or reactive approaches, MAA* bakes collision avoidance directly into the search process. The algorithm inherently avoids two types of conflicts:
- Vertex Conflicts: States where two agents occupy the same location at the same time.
- Edge Conflicts: States where two agents traverse the same edge in opposite directions simultaneously. By never generating these conflicting states as successors in the search graph, MAA* produces plans that are collision-free by construction, requiring no post-hoc resolution. This contrasts with algorithms like CBS, which first find conflicting individual paths and then resolve them.
Relation to Other MAPF Algorithms
MAA* sits at one end of the spectrum in Multi-Agent Path Finding (MAPF). It is a foundational, optimal, centralized algorithm. Its relation to other key algorithms includes:
- Conflict-Based Search (CBS): A more scalable optimal algorithm that searches a tree of constraints rather than the full joint state space. CBS often outperforms MAA* in practice.
- Increasing Cost Tree Search (ICTS): Another optimal algorithm that searches over cost combinations.
- Priority Planning: A decoupled, suboptimal method where agents plan sequentially.
- Windowed Hierarchical Cooperative A (WHCA)**: A suboptimal, scalable algorithm that plans in a short time window. MAA* provides the optimal baseline against which these algorithms are compared.
MAA* vs. Other MAPF Algorithms
A feature and performance comparison of Multi-Agent A* (MAA*) against other prominent centralized and decentralized algorithms for Multi-Agent Path Finding (MAPF).
| Feature / Metric | Multi-Agent A* (MAA*) | Conflict-Based Search (CBS) | Windowed Hierarchical Cooperative A* (WHCA*) | Optimal Reciprocal Collision Avoidance (ORCA) |
|---|---|---|---|---|
Algorithmic Paradigm | Centralized, Optimal | Centralized, Optimal | Centralized, Suboptimal & Windowed | Decentralized, Reactive |
Search Space | Full Joint State Space | Constraint Tree (High-Level) & Individual State Spaces (Low-Level) | Individual State Spaces with a Reservation Table | Continuous Velocity Space |
Solution Guarantee | Optimal (for Sum of Costs) | Optimal (for Sum of Costs) | None (But complete with sufficient replanning) | Probabilistic (No completeness guarantee) |
Primary Use Case | Small fleets (<10 agents) where optimality is critical | Medium fleets where optimality is required | Large fleets (>50 agents) requiring real-time performance | Continuous, dense environments with dynamic obstacles |
Handles Kinematic Constraints | ||||
Online Replanning Capability | Limited (requires full replan from root) | |||
Scalability (Agent Count) | Very Low | Medium | High | Very High |
Typical Performance Metric | Sum of Costs (SOC) | Sum of Costs (SOC) | Makespan, Success Rate | Collision Rate, Average Speed |
Conflict Resolution Method | Implicit in joint search | Explicit constraints & replanning | Reservation table & periodic replanning | Reciprocal velocity selection |
Practical Applications of MAA*
Multi-Agent A* (MAA*) is a foundational algorithm for centralized, optimal path planning in multi-agent systems. Its primary applications are in domains requiring guaranteed collision-free coordination for a fixed set of agents with known start and goal states.
Semiconductor Wafer Fab Intrabay Automation
In cleanroom environments, MAA* coordinates overhead hoist transport systems and rail-guided vehicles moving wafer cassettes between processing tools. The high value of the payloads and strict contamination controls mandate optimal, predictable, and collision-free routing.
- Key Function: Ensures maximum throughput and zero physical contact between vehicles.
- Challenge: The environment is highly structured (grid-like) but requires precise timing. MAA*'s optimality guarantees help minimize total travel time (Sum of Costs).
- Integration: Often used as a baseline planner, with reactive algorithms like ORCA handling minor execution deviations.
Air Traffic Management (Simplified Models)
In academic and simulation studies, MAA* is applied to ground taxiing of aircraft or the routing of drones in low-altitude corridors. It finds optimal schedules for a set of vehicles to reach destinations (gates or holding points) without spatial conflicts.
- Key Function: Demonstrates centralized, optimal conflict resolution in structured networks (e.g., taxiways).
- Model: Uses a time-expanded graph where nodes represent intersections at specific times, and MAA* searches the joint space of all aircraft.
- Real-World Note: Full-scale air traffic control uses more scalable, decentralized, and regulatory-compliant protocols, but MAA* provides a benchmark for optimal solutions.
Video Game AI for Squad Movement
In real-time strategy (RTS) games or tactical simulations, MAA* can plan the coordinated movement of a small squad of units (e.g., soldiers, tanks) around static obstacles to flank a position. It provides perfectly synchronized, optimal group paths for pre-scripted sequences.
- Key Function: Creates cinematic, perfectly coordinated group maneuvers for non-player characters (NPCs).
- Practical Consideration: The computational cost limits squad size. Game engines often use faster, suboptimal algorithms like WHCA* for runtime dynamics, saving MAA* for critical, pre-computed story moments.
- Output: A set of perfectly timed paths that avoid vertex conflicts and edge conflicts.
Frequently Asked Questions
Multi-Agent A* (MAA*) is a foundational, optimal algorithm for centralized path planning in multi-agent systems. This FAQ addresses its core mechanisms, trade-offs, and practical applications in heterogeneous fleet orchestration.
Multi-Agent A (MAA)** is a centralized, optimal search algorithm that plans collision-free paths for multiple agents by applying the classic A* algorithm to their joint state space. It works by treating the entire fleet as a single composite agent. The algorithm searches a graph where each node represents a joint state—a tuple containing the location of every agent (e.g., (agent1_pos, agent2_pos, ..., agentN_pos)). It uses a heuristic function, typically the sum of each agent's individual heuristic cost to its goal, to guide the search toward the optimal joint plan that minimizes a global cost metric like Sum of Costs (SOC) or Makespan. The search explicitly avoids expanding into joint states where agents collide (vertex or edge conflicts), guaranteeing a provably optimal solution if one exists.
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
Multi-Agent A* (MAA*) is a foundational algorithm within the broader field of Multi-Agent Path Finding (MAPF). These related concepts define the problem space, alternative algorithms, and key metrics used to evaluate fleet coordination solutions.
Multi-Agent Path Finding (MAPF)
Multi-Agent Path Finding (MAPF) is the core computational problem that MAA* solves. It involves finding collision-free paths for a set of agents from their start positions to their goal positions in a shared, typically discretized, environment. The problem is defined by key constraints:
- Vertex Conflict: Two agents cannot occupy the same location at the same time.
- Edge Conflict: Two agents cannot traverse the same edge in opposite directions simultaneously.
- Objective Functions: Solutions are evaluated by metrics like Makespan (total time until the last agent finishes) and Sum of Costs (SOC) (total combined path length).
Conflict-Based Search (CBS)
Conflict-Based Search (CBS) is a leading optimal algorithm for MAPF, using a two-level search paradigm distinct from MAA*'s joint space search. Its mechanism involves:
- High-Level Constraint Tree: A tree where each node contains a set of constraints (e.g., "Agent A cannot be at vertex X at time T") and a solution that respects them.
- Low-Level Planner: Each agent's path is planned individually (e.g., with A*) subject to the current constraints.
- Conflict Resolution: When a conflict (vertex or edge) is found in the current solution, the node is split, generating child nodes with new constraints added for each involved agent. CBS is often more memory-efficient than MAA* for many agents but can be slower on problems with many conflicts.
Increasing Cost Tree Search (ICTS)
Increasing Cost Tree Search (ICTS) is another optimal MAPF algorithm that takes a cost-based approach. Instead of searching the full joint state space like MAA*, it operates by:
- Establishing a Cost Budget: First, find the optimal individual path cost for each agent using A*. The sum of these costs forms the initial Sum of Costs (SOC) budget.
- Searching a Cost Tree: The algorithm searches a tree where each node represents a vector of individual agent costs. It systematically explores combinations of costs that sum to the current budget.
- MDD Validation: For each cost combination, it builds a Multi-Valued Decision Diagram (MDD) for each agent—a compact representation of all paths for that agent at that exact cost—and checks for a non-conflicting combination of paths. ICTS prunes large parts of the search space by focusing on cost vectors.
Space-Time A*
Space-Time A* is a critical extension of the A* algorithm used within many MAPF algorithms, including low-level planners in CBS. It explicitly incorporates time as a third dimension:
- State Representation: A search node is defined as
(x, y, t), representing a spatial coordinate at a specific timestep. - Dynamic Obstacle Handling: Other agents' planned paths are treated as moving obstacles within this space-time continuum, allowing the planner to find paths that wait or take detours to avoid collisions.
- Foundation for Centralized Search: MAA* effectively applies A* search over a joint space-time state space, where the state is
(pos_agent1, pos_agent2, ..., t). This makes the search space exponentially large but guarantees optimality.
Priority Planning
Priority Planning is a decoupled and suboptimal strategy that contrasts sharply with the centralized, optimal approach of MAA*. It scales well to large fleets by simplifying the problem:
- Fixed Order: Agents are assigned a static priority ordering (e.g., by task urgency or agent ID).
- Sequential Planning: The highest-priority agent plans its optimal path first. The next agent plans its path, treating the higher-priority agent's planned path as a moving obstacle in a space-time sense.
- Efficiency vs. Quality: This method is computationally efficient but can lead to priority inversion, where lower-priority agents are forced into long detours. It cannot guarantee optimality or sometimes even completeness (finding a solution if one exists).
Optimal Reciprocal Collision Avoidance (ORCA)
Optimal Reciprocal Collision Avoidance (ORCA) represents a fundamentally different, distributed and reactive paradigm compared to the centralized and precomputed plans of MAA*. Used for continuous velocity-based navigation, its principles are:
- Velocity Obstacles (VO): Each agent calculates a set of velocities that would cause a collision with a nearby agent within a time horizon.
- Reciprocal Responsibility: Agents assume others will also avoid collisions. Each agent selects a new velocity from the set of collision-free velocities that is closest to its preferred velocity.
- Real-Time Execution: ORCA operates in a continuous control loop, making instantaneous decisions without a long-term plan. It is highly scalable and handles dynamic environments well but provides no global optimality guarantees and can suffer from oscillatory behaviors or deadlocks.

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