Improving the performance of maxRPC

  • Authors:
  • Thanasis Balafoutis;Anastasia Paparrizou;Kostas Stergiou;Toby Walsh

  • Affiliations:
  • Department of Information and Communication Systems Engineering, University of the Aegean, Greece;Department of Informatics and Telecommunications Engineering, University of Western Macedonia, Greece;Department of Information and Communication Systems Engineering, University of the Aegean, Greece and Department of Informatics and Telecommunications Engineering, University of Western Macedonia, ...;NICTA, University of New South Wales, Australia

  • Venue:
  • CP'10 Proceedings of the 16th international conference on Principles and practice of constraint programming
  • Year:
  • 2010

Quantified Score

Hi-index 0.00

Visualization

Abstract

Max Restricted Path Consistency (maxRPC) is a local consistency for binary constraints that can achieve considerably stronger pruning than arc consistency. However, existing maxRPC algorithms suffer from overheads and redundancies as they can repeatedly perform many constraint checks without triggering any value deletions. In this paper we propose techniques that can boost the performance of maxRPC algorithms. These include the combined use of two data structures to avoid many redundant constraint checks, and heuristics for the efficient ordering and execution of certain operations. Based on these, we propose two closely related maxRPC algorithms. The first one has optimal O(end3) time complexity, displays good performance when used stand-alone, but is expensive to apply during search. The second one has O(en2d4) time complexity, but a restricted version with O(end4) complexity can be very efficient when used during search. Both algorithms have O(ed) space complexity when used stand-alone. However, the first algorithm has O(end) space complexity when used during search, while the second retains the O(ed) complexity. Experimental results demonstrate that the resulting methods constantly outperform previous algorithms for maxRPC, often by large margins, and constitute a more than viable alternative to arc consistency.