Nested Search versus Limited Discrepancy Search

Tristan CazenavearXiv 2022

Abstract

Limited Discrepancy Search (LDS) is a popular algorithm to search a state space with a heuristic to order the possible actions. Nested Search (NS) is another algorithm to search a state space with the same heuristic. NS spends more time on the move associated to the best heuristic playout while LDS spends more time on the best heuristic move. They both use similar times for the same level of search. We advocate in this paper that it is often better to follow the best heuristic playout as in NS than to follow the heuristic as in LDS.

Introduction

Combinatorial Optimization (CO) involves finding the optimal solution from a finite but massive set of possibilities, such as in the Traveling Salesman Problem or complex scheduling tasks. Because these problems are typically NP-hard, researchers rely on heuristics to guide the search. A fundamental challenge in heuristic search is determining how to deviate from the heuristic when it is likely to be incorrect. This paper compares two powerful strategies: the widely used Limited Discrepancy Search (LDS) and the recursive Nested Search (NS).

Search Strategies: LDS vs. NS

Limited Discrepancy Search (LDS) operates on the assumption that the heuristic is mostly correct. It systematic explores the search space by allowing a small, increasing number of "discrepancies" (deviations) from the heuristic path. However, LDS often spends a disproportionate amount of its computational budget backtracking near the "bottom" of the search tree.

In contrast, Nested Search (NS) is a recursive approach rooted in Monte Carlo Search. To decide on a move at the current node, NS executes a "level $n-1$" search for every possible option and selects the one that results in the best complete simulated solution (playout). This allows NS to make more informed, intensified decisions at the "top" of the search tree, where decisions often have the greatest impact.

A search tree visualization where LDS explores specific branches based on a limited number of heuristic deviations.

Experimental Evaluation

The performance of LDS and NS was evaluated across four distinct combinatorial benchmarks: the Traveling Salesman Problem with Time Windows (TSPTW), RNA Inverse Folding (Eterna100), Snake-in-the-Box graph problems, and Graeco-Latin Squares.

Key Results

Experimental results consistently favored Nested Search as the search depth (level) increased. In the RNA Folding benchmark at level 3, NS solved 75 out of 100 puzzles, significantly outperforming LDS, which solved only 39. For the Snake-in-the-Box problem in dimension 11, NS achieved a score of 570.00 compared to 532.00 for LDS.

Performance comparison on TSPTW instances showing Nested Search (NS) outperforming LDS as the search level increases.

As shown in the TSPTW results, at level 3, NS was strictly better than LDS in 17 out of 25 instances, while LDS was superior in only 2. Furthermore, in Graeco-Latin Squares, NS solved the most difficult instances (Dimension 11) immediately, whereas LDS required additional algorithmic support like Arc Consistency to remain competitive.

Discussion and Conclusion

The primary advantage of Nested Search lies in its "top-down" intensification. While heuristics are often easier to design for the leaves of a tree, they are frequently less reliable at the root. By using playout scores to guide early decisions, NS effectively "sees" further into the state space.

While both algorithms face exponential scaling challenges and depend on the quality of the underlying base heuristic, NS proves to be a more robust strategy for difficult combinatorial problems. Its ability to refine choices at every node makes it a promising candidate for integration with modern techniques such as Deep Reinforcement Learning.

Summary updated

BibTeX
@misc{cazenave2022nested,
  author = {Tristan Cazenave},
  title = {{Nested Search versus Limited Discrepancy Search}},
  year = {2022},
  eprint = {2210.00216},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.00216},
}
Figure