Preprocessing Search Spaces for Branch and Bound Search

Qiang Yang, Dana S. Nau

Abstract

Heuristic search procedures are useful in a large number of problems of practical importance. Such procedures operate by searching several paths in a search space at the same time, expanding some paths more quickly than others depending on which paths look most promising. Often large amounts of time are required in keeping track of the control knowledge.

For some problems, this overhead can be greatly reduced by preprocessing the problem in appropriate ways. In particular, we discuss a data structure called a threaded decision graph, which can be created by preprocessing the search space for some problems, and which captures the control knowledge for problem solving. We show how this can be done, and we present an analysis showing that by using such a method, a great deal of time can be saved during problem solving processes.

Introduction

Heuristic search algorithms—such as A, Branch-and-Bound, or SSS—are fundamental to AI planning and optimization. However, these algorithms often face a "hidden tax" known as agenda management overhead. Every time a node is expanded, the algorithm must generate new partial solutions, calculate their estimated costs, and insert them into a sorted "open list" or priority queue. In complex domains, the time spent maintaining this list can become a significant bottleneck.

This paper by Qiang Yang and Dana S. Nau proposes that for many practical domains, we solve structurally similar problems repeatedly. By preprocessing the search space, we can "compile" the search strategy, effectively eliminating the need for dynamic agenda management at runtime.

Methods: The Threaded Decision Graph (TDG)

The authors introduce the Threaded Decision Graph (TDG) as a means to pre-calculate the optimal search strategy. Instead of relying on a dynamic priority queue, the search space is augmented with "threads" that dictate the next node to visit based on the outcome of the current node evaluation.

  • Success Thread: If a node is found to be feasible, the thread points to the next most promising node in a best-first search.
  • Failure Thread: If a node is infeasible, the thread points to the alternative node the search would have pivoted to if it were using a standard open list.
A Threaded Decision Graph (TDG) illustrating success and failure pointers that bypass runtime agenda management.

For this approach to be valid, the problem domain must satisfy Structural Invariance (the search tree shape remains constant across instances) and Cost Monotonicity (the relative order of action costs must remain consistent, even if absolute values change).

Applications and Key Results

The concept was evaluated using two primary domains: SIPS (Generative Process Planning) for manufacturing machined parts and Robotic Route Planning. In these domains, the connectivity of the search space is often constant, while the feasibility of specific nodes (e.g., whether a specific machine is available or a path is blocked) varies between tasks.

The complexity analysis reveals significant gains:

  • In standard search, list manipulation overhead ranges from $O(km \log m)$ to $O(m^k \log m^k)$, where $m$ is the branching factor and $k$ is the depth.
  • With a TDG, this overhead is reduced to $O(1)$ per node transition. The search becomes a simple pointer-following exercise, making the planning process faster and more predictable.

Limitations and Future Work

While powerful, the TDG approach has constraints. The requirement for constant relative costs is strict and may not hold in dynamic environments like traffic-sensitive navigation. Furthermore, when applied to AND/OR graphs—where multiple sub-conditions must be satisfied—the number of nodes in the threaded graph can grow exponentially in the worst case.

An AND/OR search space; such structures can lead to exponential growth in the threaded graph.

Future research directions include "on-the-job" learning, where the threaded graph is constructed incrementally as the solver encounters new regions of the search space, potentially mitigating the memory footprint required for storing threads for the entire space.

Summary updated

Abstract

Heuristic search procedures are useful in a large number of problems of practical importance. Such procedures operate by searching several paths in a search space at the same time, expanding some paths more quickly than others depending on which paths look most promising. Often large amounts of time are required in keeping track of the control knowledge. For some problems, this overhead can be greatly reduced by preprocessing the problem in appropriate ways. In particular, we discuss a data structure called a threaded decision graph, which can be created by preprocessing the search space for some problems, and winch captures the control knowledge for prob lern solving We show how this can be done, and we present an analysis showing that by us ing such a method, a great deal of time can be saved during problem solving processes.
BibTeX
@inproceedings{yang1989preprocessing,
  author = {Qiang Yang and Dana S. Nau},
  title = {{Preprocessing Search Spaces for Branch and Bound Search}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {1989},
}
Figure