Skip to main content
QUICK REVIEW

[Paper Review] Combinatorial Search With Picat

Neng‐Fa Zhou|arXiv (Cornell University)|May 11, 2014
Logic, Reasoning, and KnowledgeComputer Science27 references5 citations
TL;DR

This paper presents Picat, a logic-based multi-paradigm language designed for combinatorial search, integrating constraint programming (CP), SAT, MIP solvers, tabling for dynamic programming, and a planner module. Picat's planner, powered by term-sharing and resource-bounded tabled search, outperforms state-of-the-art ASP and PDDL planners on standard benchmarks, achieving up to 3x speedup on Ricochet Robots and solving all 30 instances in under 2.2 seconds with a heuristic.

ABSTRACT

Picat, a new member of the logic programming family, follows a different doctrine than Prolog in offering the core logic programming concepts: arrays and maps as built-in data types; implicit pattern matching with explicit unification and explicit non-determinism; functions for deterministic computations; and loops for convenient scripting and modeling purposes. Picat provides facilities for solving combinatorial search problems, including a common interface with CP, SAT, and MIP solvers, tabling for dynamic programming, and a module for planning. Picat's planner module, which is implemented by the use of tabling, has produced surprising and encouraging results. Thanks to term-sharing and resource-bounded tabled search, Picat overwhelmingly outperforms the cutting-edge ASP and PDDL planners on the planning benchmarks used in recent ASP competitions.

Motivation & Objective

  • To design a general-purpose logic programming language that combines the expressiveness of Python with the modeling power of OPL and MiniZinc for combinatorial problems.
  • To overcome limitations in Prolog, such as undeterministic default backtracking and lack of native arrays and loops, by introducing explicit non-determinism and first-class data structures.
  • To enable high-performance solving of combinatorial problems through a unified interface to CP, SAT, and MIP solvers, and to support dynamic programming via tabling.
  • To develop a planner module that leverages tabling and term-sharing to efficiently solve state-space search problems, especially in planning domains.
  • To demonstrate that Picat can outperform leading ASP and PDDL planners on real-world benchmarks through efficient representation and search techniques.

Proposed method

  • Picat uses pattern-matching instead of unification for rule selection, enabling faster, fully indexed rule resolution and improved scalability over Prolog.
  • It supports explicit non-determinism via backtrackable rules, eliminating the need for the cut operator and improving code clarity and correctness.
  • The language provides functions for deterministic computation, arrays, maps, and loops, enabling concise and readable modeling of combinatorial problems.
  • Picat offers a common interface to CP, SAT, and MIP solvers, allowing seamless switching between solvers and supporting mixed-integer and constraint-based modeling.
  • The planner module uses tabling to cache and reuse state results, with term-sharing and hash-consing to reduce memory usage and accelerate equality checks.
  • Resource-bounded tabled search is employed to prune unproductive search paths, and heuristics can be integrated via resource checks to guide search efficiently.

Experimental results

Research questions

  • RQ1Can a logic programming language be designed to combine the expressiveness of functional and imperative programming with the modeling power of constraint and optimization languages?
  • RQ2How can term-sharing and efficient data representation improve the performance of state-space search in planning problems?
  • RQ3To what extent can tabling and resource-bounded search outperform traditional ASP and PDDL planners in combinatorial planning benchmarks?
  • RQ4Can a unified interface to CP, SAT, and MIP solvers enable flexible and high-performance modeling of constraint satisfaction problems?
  • RQ5How effective are heuristic integration and symmetry-breaking representations in accelerating search in complex planning domains?

Key findings

  • Picat’s planner outperforms Potassco, the winner of the ASP’13 competition, by a factor of 5.3 on average for the Ricochet Robots benchmark, solving all 30 instances in 9.3 seconds without heuristics.
  • With a simple heuristic, Picat reduces the average solving time on Ricochet Robots to 2.2 seconds, demonstrating the effectiveness of resource-aware search pruning.
  • Picat solves all 30 instances of the Ricochet Robots benchmark, while Potassco takes 49.5 seconds per instance on average, showing a significant performance advantage.
  • The planner’s use of term-sharing and hash-consing reduces memory usage and speeds up equality checks, enabling efficient reuse of shared state components.
  • The representation of states using sorted lists and structural sharing breaks symmetries and facilitates efficient state caching, contributing to performance gains.
  • Picat’s planner achieves superior performance not only on Ricochet Robots but also on other benchmarks like Nomystery, Sokoban, and Solitaire, consistently outperforming state-of-the-art ASP and PDDL planners.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.