Dynamic Combination of Search and Variable Elimination in CSP and Max-CSP

Variable elimination is the basic step of Adaptive Consis-tency8]. It transforms the problem into an equivalent one, having one less variable. Unfortunately, there are many classes of problems for which it is infeasible, due to its exponential space and time complexity. However , by restricting variable elimination so that only low arity constraints are processed and recorded, it can be eeectively combined with search, because the elimination of variables, reduces the search tree size. In this paper we introduce VarElimSearch(S;k), a hybrid meta-algorithm that combines search and variable elimination. The parameter S names the particular search procedure and k controls the tradeoo between the two strategies. The algorithm is space exponential in k. Regarding time, we show that its complexity is bounded by k and a structural parameter from the constraint graph. We also provide experimental evidence that the hybrid algorithm can outperform state-of-the-art algorithms in binary sparse problems. Experiments cover the tasks of nding one solution and the best solution (Max-CSP). Specially in the Max-CSP case, the advantage of our approach can be overwhelming.