Toward a Model for Backtracking and Dynamic Programming
Ý Þ ÞÜß
Michael Alekhnovich £ Allan Borodin Joshua Buresh-Oppenheim Russell Impagliazzo
Ýß Avner Magen Ý Toniann Pitassi
Abstract This second direction has recently attracted the attention of many researchers. Khanna, Motwani, Sudan and Vazi- We consider a model (BT) for backtracking algorithms. rani [25] formalize various types of local search paradigms, Our model generalizes both the priority model of Borodin, and in doing so, provide a more precise understanding of Nielson and Rackoff, as well as a simple dynamic program- local search algorithms. Woeginger [30] defines a class ming model due to Woeginger, and hence spans a wide of simple dynamic programming algorithms and provides spectrum of algorithms. After witnessing the strength of conditions for when a dynamic programming solution can the model, we then show its limitations by providing lower be used to derive a FPTAS for an optimization problem. bounds for algorithms in this model for several classical Borodin, Nielsen and Rackoff [11] introduce priority algo- problems such as interval scheduling, knapsack and satisfi- rithms as a model of greedy-like algorithms. Arora, Bol- ability. lob´as and Lov´asz [8] study wide classes of LP formula- tions, and prove integrality gaps for vertex cover within these classes. The most popular methods for solving SAT 1. Introduction are DPLL algorithms—a family of backtracking algorithms whose complexity has been characterized in terms of reso- lution proof complexity (see for example [16, 17, 14, 21]). Proving unconditional lower bounds for computing ex- Finally, Chv´atal [13] proves a lower bound for Knapsack in plicit functions remains one of the most challenging prob- an algorithmic model that involves elements of branch-and- lems in computational complexity. Since 1949, when Shan- bound and dynamic programming. non showed that a random function has large circuit com- plexity [29], little progress has been made toward proving We continue in this direction by presenting a hierarchy lower bounds for the size of unrestricted Boolean circuits of models for backtracking algorithms for general search that compute explicit functions. One explanation for this and optimization problems. Many well-known algorithms phenomenon was given by the Natural Proofs approach of and algorithmic techniques can be simulated within these Razborov and Rudich [27] who showed that most of the models, both those that are usually considered backtrack- existing lower bound techniques are incapable of proving ing and some that would normally be classified as greedy or such lower bounds. One way to investigate the complexity dynamic programming. We prove several upper and lower of explicit functions in spite of these difficulties is to study bounds on the capabilities of algorithms in this model, in reductions between problems, e.g. to identify a canonical some cases proving that the known algorithms are essen- problem (like an NP-complete problem) and show that a tially the best possible within the model. given computational task is “not easier” than solving this The starting point for the BT model is the priority algo- problem. Another approach would be to restrict the model rithm model [11]. We assume that the input is represented to avoid the inherent Natural Proof limitations, while pre- as a set of data items, where each data item is a small piece serving a model strong enough to incorporate many “natu- of information about the problem; it may be a time interval ral” algorithms. representing a job to be scheduled, a vertex with its list of
the neighbours in a graph, a propositional variable with all £ Institute for Advanced Study, Princeton, US. Supported by CCR grant clauses containing it in a CNF. Priority algorithms consider
Æ CCR-0324906.
Ý Department of Computer Science, University of Toronto, one item at a time and maintain a single partial solution bor,avner,[email protected] (based on the items considered thus far) that it continues to Þ CSE Department, University of California San Diego, bureshop, rus- extend. What is the order in which items are considered? A [email protected].
Ü fixed order algorithm orders the items up front according to Research partially supported by NSF Award CCR-0098197.
ß Some of this research was performed at the Institute for Advanced some criterion (e.g., in the case of knapsack, sort the items Study in Princeton, NJ supported by the State of New Jersey. by their weight-to-value ratio). A more general (adaptive
1 Proceedings of the Twentieth Annual IEEE Conference on Computational Complexity (CCC’05) 1093-0159/05 $20.00 © 2005 IEEE order) approach would be to change the ordering accord- efficiently approximated by any fixed BT algorithm. We ing to the items seen so far. For example, in the greedy set then show that 3-SAT requires exponential width and expo- cover algorithm, in every iteration we order the sets accord- nential depth first size in the fully adaptive BT model. This ing to the number of yet uncovered elements they contain lower bound in turn gives us an exponential bound on the (the distinction between fixed and adaptive orderings has width of fully adaptive BT algorithms for knapsack by “BT also been recently studied in [19]). Rather than imposing reduction” (but gives no inapproximation result). complexity constraints on the allowable orders, we simply Wherever proofs are omitted, please see the full version of require them to be oblivious to the actual content of those the paper: [3]. input items not yet considered. By introducing branching, a backtracking algorithm (BT) can pursue a number of dif- ferent partial solutions. Given a specific input, a BT al- 2. The Backtracking Model and its Relatives gorithm then induces a computation tree. Of course, it is
possible to solve any properly formulated search or opti- Let be an arbitrary data domain that contains objects À mization problem in this manner: simply branch on every called data items.Let be a set, representing the set possible decision for every input item. In other words, there of allowable decisions for a data item. For example, for the
is a tradeoff between the quality of a solution and the com- knapsack problem, a natural choice for would be the set
Ü Ôµ Ü Ô
plexity of the BT-algorithm. We view the maximum width of all pairs ´ where is a weight and is a profit; the
¼ ½ of a BT program as the number of partial solutions that need natural choice for À is where 0 is the decision to to be maintained in parallel in the worst case. As we will reject an item and 1 is the decision to accept an item.
see, this extension allows us to model the simple dynamic A Backtracking search/optimization problem È is