Abstract
In automated reasoning and constraint satisfaction, heuristics guide search through massive trees but are often least reliable at the top, where few variables are assigned. Early mistakes in standard Depth-First Search (DFS) can be devastating, leading to "exceptional hard problems" that require exploring massive subtrees. Depth-bounded Discrepancy Search (DDS) is an iterative strategy that prioritizes fixing these high-level blunders by allowing discrepancies only above an increasing depth bound. This paper describes the DDS algorithm and demonstrates its superior performance over DFS and Limited Discrepancy Search (LDS) on large, under-constrained benchmarks.
Introduction
Search heuristics are rarely perfect. While they become more reliable as they approach leaf nodes and more constraints are propagated, their initial decisions at the root of a search tree are often poorly informed. Standard Depth-First Search (DFS) is notoriously brittle in these scenarios; a single wrong choice at the root can force the search to explore a massive, fruitless subtree before backtracking. While Limited Discrepancy Search (LDS) attempts to mitigate this by limiting the total number of deviations from the heuristic, it treats all mistakes as equal. Depth-bounded Discrepancy Search (DDS) improves upon this by focusing search effort where it matters most: the top of the tree.
Methodology
DDS employs an iterative deepening approach centered on the concept of discrepancies—choosing a branch other than the one suggested by the heuristic.
The DDS Algorithm
The search proceeds in iterations, defined by a depth bound $k$:
- Iterative Depth Bound: Starting with $k=0$, each iteration allows discrepancies only at depth $k$ or less.
- Heuristic Following: Below the depth bound $k$, the search strictly follows the heuristic (always taking the "left" branch) until a leaf is reached.
- Redundancy Avoidance: To prevent re-visiting nodes, at depth $i$ during the $(i+1)$-th iteration, the search only takes the right branch (the discrepancy), as the left branch was already explored in the previous iteration.
Hybrid Approaches and Dynamic Discovery
The authors also introduce DDS-BBS, a hybrid combining DDS with Bounded Backtrack Search (BBS). While DDS addresses high-level heuristic failures, BBS provides a "safety net" by allowing small amounts of local backtracking near the leaves. Furthermore, unlike its predecessor ILDS, DDS does not require a pre-set maximum search depth; it computes the depth dynamically during the probe, making it more effective for unbalanced trees.
Experimental Evaluation
DDS was evaluated against two primary benchmarks:
- Constant Probability Model: 10,000 satisfiable instances with 200 variables. This model frequently generates "Exceptional Hard Problems" (EHPs) where early heuristic mistakes are catastrophic for DFS.
- Random 3-SAT: 10,000 satisfiable problems in the under-constrained region ($L/N = 3.5$), with variables ($N$) ranging from 50 to 250.
Key Results
The experimental results highlight DDS's ability to "tame the tail" of search distributions. On the 200-variable constant probability model, DFS failed to solve several instances even after 200 million branches. In contrast, DDS solved these same problems with a mean of only 7.54 branches and a 99.99th percentile of 7,581 branches.
In the $N=250$ 3-SAT tests, DDS significantly outperformed both DFS and Improved LDS (ILDS):
- DFS: 21,816.87 mean branches
- ILDS: 239.49 mean branches
- DDS: 198.30 mean branches
These results confirm the "Heuristic Maturity" insight: as search progresses, the heuristic becomes more reliable. By biasing exploration toward the top of the tree, DDS reaches solutions faster in under-constrained spaces.
Conclusion
Depth-bounded Discrepancy Search offers a robust alternative to DFS and LDS for large, under-constrained problems. By dynamically discovering search depth and prioritizing early corrections, it avoids the pitfalls of early heuristic failures. While it offers no advantage for insoluble problems—where the entire tree must be traversed—it represents a significant advancement in heuristic-guided search for satisfiable instances. Future work may focus on reducing interior node overhead and extending the method to trees with higher branching factors.
Summary updated