On Solving Optimization Problems Using Boolean Satisfiability

Total Page:16

File Type:pdf, Size:1020Kb

On Solving Optimization Problems Using Boolean Satisfiability Proceeding of the First International Conference on Modeling, Simulation and Applied Optimization, Sharjah, U.A.E. February 1-3, 2005 ON SOLVING OPTIMIZATION PROBLEMS USING BOOLEAN SATISFIABILITY Fadi A. Aloul American University of Sharjah Department of Computer Engineering P.O. Box 26666, Sharjah, UAE [email protected] ABSTRACT SAT solvers require that the problem be represented in CNF form. The last few years have seen significant advances in Boolean sat- While this is applicable to some Engineering tasks, it poses a sig- isfiability (SAT) solving. This has lead to the successful deploy- nificant obstacle to many others. In particular to tasks that need to ment of SAT solvers in a wide range of problems in Engineering express “counting constraints” which impose a lower or upper and Computer Science. In general, most SAT solvers are applied to bound on a certain number of objects. Expressing such constraints Boolean decision problems that are expressed in conjunctive nor- in CNF cannot be efficiently done. Recently, SAT solvers were ex- mal form (CNF). While this input format is applicable to some en- tended to handle pseudo-Boolean (PB) constraints which can easi- gineering tasks, it poses a significant obstacle to others. One of the ly represent “counting constraints” [5, 6, 10, 16, 27]. PB main advances in SAT is generalizing SAT solvers to handle stron- constraints are more expressive and can replace an exponential ger representation of constraints. Specifically, pseudo-Boolean number of CNF constraints [5]. Besides expressing Boolean deci- (PB) constraints which are efficient in representing counting con- sion problems, a key advantage of using PB constraints is the abil- straints and can replace an exponential number of CNF constraints. ity to express Boolean optimization problems. These problems Another significant advantage of PB constraints is its ability to ex- were traditionally handled as instances of Integer Linear Program- press Boolean optimization problems. This allows for new applica- ming (ILP). They represent 0-1 ILP problems that call for the min- tions that were never handled by SAT solvers before. In this paper, imization or maximization of a linear objective function subject to we describe two methods to solve Boolean optimization problems a set of linear PB constraints. using SAT solvers. Both methods are implemented and evaluated In this paper, we describe two SAT-based approaches to solve using the SAT solver PBS. We develop an adaptive flow that ana- Boolean optimization problems. The algorithms we present can be lyzes a given Boolean optimization problem and selects the solving adapted to any SAT solver. The first approach is based on a linear method that best fits the problem characteristics. Empirical evi- sweep search and the second is based on a binary sweep search. dence on a variety of benchmarks shows that both methods are Both approaches are implemented on top of the SAT solver PBS competitive. The results also show that SAT-based methods tend [5]. Experiments are conducted on a variety of instances from to outperform generic integer linear programming (ILP) solvers. FPGA routing, N-queens, and graph coloring. The performance of both approaches is compared to the performance of the generic KEYWORDS commercial ILP solver CPLEX 7.0. We present experimental evi- dence showing that (i) SAT solvers can outperform generic ILP Optimization Algorithms, Boolean Satisfiability, CNF, pseudo- solvers and (ii) both linear and binary sweep search are competi- Boolean, backtrack search. tive. Therefore, we propose a flow that selects the type of search that is best suited to the problem in question. We perform an em- 1. INTRODUCTION pirical evaluation comparison of linear vs. binary sweep search and The Boolean Satisfiability (SAT) problem has been the topic of in- point out that the adaptive flow we propose picks the best config- tensive research over the past few decades. Given a set of Boolean uration in most cases. variables and a set of constraints expressed in product-of-sum form The paper is organized as follows. In Section 2 we review re- (also known as conjunctive normal form (CNF)), the goal is to find cent advances in Boolean satisfiability. Pseudo-Boolean con- a variable assignment that satisfies all constraints or prove that no straints are defined in Section 3. We then describe, in Section 4, the such assignment exists. Despite the SAT problem’s worst-case ex- two SAT-based approaches to solve Boolean optimization prob- ponential complexity [11], recent algorithmic advances along with lems. Both approaches are analyzed and compared against the per- highly efficient solver implementations [7, 17, 19, 21, 28] have en- formance of the generic ILP solver in Section 5. We conclude in abled the successful deployment of SAT solvers to a wide range of Section 6 with a summary of the paper’s main contributions. application domains. Such applications include formal verification [8], FPGA routing [22], global routing [5], power leakage estima- 2. BOOLEAN SATISFIABILITY tion [1], timing analysis [24], logic synthesis [20], and sequential The satisfiability problem involves finding an assignment to a set equivalence checking [9]. SAT has also been extended to a variety of binary variables that satisfies a given set of constraints. In gen- of applications in Artificial Intelligence including other well eral, these constraints are expressed in conjunctive normal form known NP-complete problems such as graph colorability [23], ver- (CNF) or as is commonly known as product-of-sum form. A CNF tex cover, hamiltonian path, and independent sets [13]. In general, formula ϕ on nx binary variables 1,,… xn consists of the con- ICMSAO/05-1 Proceeding of the First International Conference on Modeling, Simulation and Applied Optimization, Sharjah, U.A.E. February 1-3, 2005 junction (AND) of m clauses ω1,,…ωm each of which consists level, potentially pruning large portions of the search space. Signif- of the disjunction (OR) of kl literals. A literal is an occurrence of icant speedups have been achieved with the addition of conflict-in- a Boolean variable or its complement. We will refer to a CNF for- duced clauses, as they tend to effectively prune the search space. mula as a clause database. A variable x is said to be assigned when its logical value is set 2.2 Random Restarts to 0 or 1 and unassigned otherwise. A literal l is a true (false) lit- Besides conflict diagnosis, recent studies have shown that using eral if it evaluates to 1 (0) under the current assignment to its asso- random restarts can be very effective in solving hard SAT instanc- ciated variable, and a free literal if its associated variable is es [18, 21]. A SAT solver may often get stuck in a “bad” region of unassigned. A clause is said to be satisfied if at least one of its lit- the search space because of the sequence of decision assignments erals is true, unsatisfied if all of its literals are set to false, unit if all it had made. The restart process helps to extricate the solver from but a single literal are set to false, and unresolved otherwise. A for- such regions by periodically resetting all decision and implication mula is said to be satisfied if all its clauses are satisfied, and unsat- assignments and randomly selecting a new sequence of decisions, isfied if at least one of its clauses is unsatisfied. thus insuring that different subtrees are explored each time. Addi- As an example, a CNF instance f = ()ab∨ ()bc∨ consists tionally, all learned clauses in the various probes of the search of 3 variables, 2 clauses, and 4 literals. The assignment space are kept and help boost the effectiveness of subsequent re- {}a ===0, b 1, c 0 leads to a conflict, whereas the assignment starts. {}a ===0, b 1, c 1 satisfies f . Most modern SAT solvers [7, 17, 19, 21, 28] are based on the 2.3 Decision Heuristics original Davis-Putnam backtrack search algorithm [14]. The algo- rithm performs a search process that traverses the space of 2n vari- Intelligent decision heuristics also played an important role in en- able assignments until a satisfying assignment is found (the hancing SAT solvers performance. Several studies have proposed formula is satisfiable), or all combinations have been exhausted various decision heuristics that can be classified as static [3, 19] or (the formula is unsatisfiable). It maintains a decision tree to keep dynamic [19, 21, 28]. For example, the GRASP SAT solver [19] is track of variable assignments and can be viewed as consisting of typically used with the dynamic largest individual sum (DLIS) de- three main engines: Decision, Deduction, Diagnosis engines. cision heuristic which selects the literal that appears in the largest Originally, all variables are unassigned. The algorithm begins number of unresolved clauses. It also implements the dynamic by choosing a decision assignment to an unassigned variable. After largest combined sum (DLCS) decision heuristic which selects the each decision, the deduction engine determines the implications of variable that appears in the largest number of unresolved clauses. the assignment on other variables. This is obtained by forcing the A recent heuristic that has been found to be particularly effective assignment of the variable representing an unassigned literal in an in a variety of problems is the variable state independent decaying unresolved clause, whose all other literals are assigned to 0, to sat- sum (VSIDS) heuristic introduced in Chaff [21]. This heuristic isfy the clause. This is referred to as the unit clause rule and the re- maintains two counters for every variable that are incremented if a peated application of the unit clause rule over the given clause positive (respectively negative) literal is identified in a new con- database is known as Boolean constraint propagation (BCP).
Recommended publications
  • Studies on Enumeration of Acyclic Substructures in Graphs and Hypergraphs (グラフや超グラフに含まれる非巡回部分構造の列挙に関する研究)
    CORE Metadata, citation and similar papers at core.ac.uk Provided by Hokkaido University Collection of Scholarly and Academic Papers Studies on Enumeration of Acyclic Substructures in Graphs and Hypergraphs (グラフや超グラフに含まれる非巡回部分構造の列挙に関する研究) Kunihiro Wasa February 2016 Division of Computer Science Graduate School of Information Science and Technology Hokkaido University Abstract Recently, due to the improvement of the performance of computers, we can easily ob- tain a vast amount of data defined by graphs or hypergraphs. However, it is difficult to look over all the data by mortal powers. Moreover, it is impossible for us to extract useful knowledge or regularities hidden in the data. Thus, we address to overcome this situation by using computational techniques such as data mining and machine learning for the data. However, we still confront a matter that needs to be dealt with the expo- nentially many substructures in input data. That is, we have to consider the following problem: given an input graph or hypergraph and a constraint, output all substruc- tures belonging to the input and satisfying the constraint without duplicates. In this thesis, we focus on this kind of problems and address to develop efficient enumeration algorithms for them. Since 1950's, substructure enumeration problems are widely studied. In 1975, Read and Tarjan proposed enumeration algorithms that list spanning trees, paths, and cycles for evaluating the electrical networks and studying program flow. Moreover, due to the demands from application area, enumeration algorithms for cliques, subtrees, and subpaths are applied to data mining and machine learning. In addition, enumeration problems have been focused on due to not only the viewpoint of application but also of the theoretical interest.
    [Show full text]
  • Enumeration of Maximal Cliques from an Uncertain Graph
    1 Enumeration of Maximal Cliques from an Uncertain Graph Arko Provo Mukherjee #1, Pan Xu ∗2, Srikanta Tirthapura #3 # Department of Electrical and Computer Engineering, Iowa State University, Ames, IA, USA Coover Hall, Ames, IA, USA 1 [email protected] 3 [email protected] ∗ Department of Computer Science, University of Maryland A.V. Williams Building, College Park, MD, USA 2 [email protected] Abstract—We consider the enumeration of dense substructures (maximal cliques) from an uncertain graph. For parameter 0 < α < 1, we define the notion of an α-maximal clique in an uncertain graph. We present matching upper and lower bounds on the number of α-maximal cliques possible within a (uncertain) graph. We present an algorithm to enumerate α-maximal cliques whose worst-case runtime is near-optimal, and an experimental evaluation showing the practical utility of the algorithm. Index Terms—Graph Mining, Uncertain Graph, Maximal Clique, Dense Substructure F 1 INTRODUCTION of the most basic problems in graph mining, and has been applied in many settings, including in finding overlapping Large datasets often contain information that is uncertain communities from social networks [14, 17, 18, 19], finding in nature. For example, given people A and B, it may not overlapping multiple protein complexes [20], analysis of be possible to definitively assert a relation of the form “A email networks [21] and other problems in bioinformat- knows B” using available information. Our confidence in ics [22, 23, 24]. such relations are commonly quantified using probability, and we say that the relation exists with a probability of p, for While the notion of a dense substructure and methods some value p determined from the available information.
    [Show full text]
  • Matroid Enumeration for Incidence Geometry
    Discrete Comput Geom (2012) 47:17–43 DOI 10.1007/s00454-011-9388-y Matroid Enumeration for Incidence Geometry Yoshitake Matsumoto · Sonoko Moriyama · Hiroshi Imai · David Bremner Received: 30 August 2009 / Revised: 25 October 2011 / Accepted: 4 November 2011 / Published online: 30 November 2011 © Springer Science+Business Media, LLC 2011 Abstract Matroids are combinatorial abstractions for point configurations and hy- perplane arrangements, which are fundamental objects in discrete geometry. Matroids merely encode incidence information of geometric configurations such as collinear- ity or coplanarity, but they are still enough to describe many problems in discrete geometry, which are called incidence problems. We investigate two kinds of inci- dence problem, the points–lines–planes conjecture and the so-called Sylvester–Gallai type problems derived from the Sylvester–Gallai theorem, by developing a new algo- rithm for the enumeration of non-isomorphic matroids. We confirm the conjectures of Welsh–Seymour on ≤11 points in R3 and that of Motzkin on ≤12 lines in R2, extend- ing previous results. With respect to matroids, this algorithm succeeds to enumerate a complete list of the isomorph-free rank 4 matroids on 10 elements. When geometric configurations corresponding to specific matroids are of interest in some incidence problems, they should be analyzed on oriented matroids. Using an encoding of ori- ented matroid axioms as a boolean satisfiability (SAT) problem, we also enumerate oriented matroids from the matroids of rank 3 on n ≤ 12 elements and rank 4 on n ≤ 9 elements. We further list several new minimal non-orientable matroids. Y. Matsumoto · H. Imai Graduate School of Information Science and Technology, University of Tokyo, Tokyo, Japan Y.
    [Show full text]
  • Implementation Issues of Clique Enumeration Algorithm
    05 Progress in Informatics, No. 9, pp.25–30, (2012) 25 Special issue: Theoretical computer science and discrete mathematics Research Paper Implementation issues of clique enumeration algorithm Takeaki UNO1 1National Institute of Informatics ABSTRACT A clique is a subgraph in which any two vertices are connected. Clique represents a densely connected structure in the graph, thus used to capture the local related elements such as clus- tering, frequent patterns, community mining, and so on. In these applications, enumeration of cliques rather than optimization is frequently used. Recent applications have large scale very sparse graphs, thus efficient implementations for clique enumeration is necessary. In this paper, we describe the algorithm techniques (not coding techniques) for obtaining effi- cient clique enumeration implementations. KEYWORDS maximal clique, enumeration, community mining, cluster mining, polynomial time, reverse search 1 Introduction A maximum clique is hard to find in the sense of time A graph is an object, composed of vertices, and edges complexity, since the problem is NP-hard. Finding a such that each edge connects two vertices. The fol- maximal clique is easy, and can be done in O(Δ2) time lowing is an example of a graph, composed of vertices where Δ is the maximum degree of the graph. Cliques 0, 1, 2, 3, 4, 5 and edges connecting 0 and 1, 1 and 2, 0 can be considered as representatives of dense substruc- and 3, 1 and 3, 1 and 4, 3 and 4. tures of the graphs to be analyzed, the clique enumera- tion has many applications in real-world problems, such as cluster enumeration, community mining, classifica- 0 12 tion, and so on.
    [Show full text]
  • Parametrised Enumeration
    Parametrised Enumeration Arne Meier Februar 2020 color guide (the dark blue is the same with the Gottfried Wilhelm Leibnizuniversity Universität logo) Hannover c: 100 m: 70 Institut für y: 0 k: 0 Theoretische c: 35 m: 0 y: 10 Informatik k: 0 c: 0 m: 0 y: 0 k: 35 Fakultät für Elektrotechnik und Informatik Institut für Theoretische Informatik Fachgebiet TheoretischeWednesday, February 18, 15 Informatik Habilitationsschrift Parametrised Enumeration Arne Meier geboren am 6. Mai 1982 in Hannover Februar 2020 Gutachter Till Tantau Institut für Theoretische Informatik Universität zu Lübeck Gutachter Stefan Woltran Institut für Logic and Computation 192-02 Technische Universität Wien Arne Meier Parametrised Enumeration Habilitationsschrift, Datum der Annahme: 20.11.2019 Gutachter: Till Tantau, Stefan Woltran Gottfried Wilhelm Leibniz Universität Hannover Fachgebiet Theoretische Informatik Institut für Theoretische Informatik Fakultät für Elektrotechnik und Informatik Appelstrasse 4 30167 Hannover Dieses Werk ist lizenziert unter einer Creative Commons “Namensnennung-Nicht kommerziell 3.0 Deutschland” Lizenz. Für Julia, Jonas Heinrich und Leonie Anna. Ihr seid mein größtes Glück auf Erden. Danke für eure Geduld, euer Verständnis und eure Unterstützung. Euer Rückhalt bedeutet mir sehr viel. ♥ If I had an hour to solve a problem, I’d spend 55 minutes thinking about the problem and 5 min- “ utes thinking about solutions. ” — Albert Einstein Abstract In this thesis, we develop a framework of parametrised enumeration complexity. At first, we provide the reader with preliminary notions such as machine models and complexity classes besides proving them to be well-chosen. Then, we study the interplay and the landscape of these classes and present connections to classical enumeration classes.
    [Show full text]
  • Enumeration Algorithms for Conjunctive Queries with Projection
    Enumeration Algorithms for Conjunctive Queries with Projection Shaleen Deep ! Department of Computer Sciences, University of Wisconsin-Madison, Madison, Wisconsin, USA Xiao Hu ! Department of Computer Sciences, Duke University, Durham, North Carolina, USA Paraschos Koutris ! Department of Computer Sciences, University of Wisconsin-Madison, Madison, Wisconsin, USA Abstract We investigate the enumeration of query results for an important subset of CQs with projections, namely star and path queries. The task is to design data structures and algorithms that allow for efficient enumeration with delay guarantees after a preprocessing phase. Our main contribution isa series of results based on the idea of interleaving precomputed output with further join processing to maintain delay guarantees, which maybe of independent interest. In particular, for star queries, we design combinatorial algorithms that provide instance-specific delay guarantees in linear preprocessing time. These algorithms improve upon the currently best known results. Further, we show how existing results can be improved upon by using fast matrix multiplication. We also present new results involving tradeoff between preprocessing time and delay guarantees for enumeration ofpath queries that contain projections. CQs with projection where the join attribute is projected away is equivalent to boolean matrix multiplication. Our results can therefore also be interpreted as sparse, output-sensitive matrix multiplication with delay guarantees. 2012 ACM Subject Classification Theory of computation → Database theory Keywords and phrases Query result enumeration, joins Digital Object Identifier 10.4230/LIPIcs.ICDT.2021.3 Funding This research was supported in part by National Science Foundation grants CRII-1850348 and III-1910014 Acknowledgements We would like to thank the anonymous reviewers for their careful reading and valuable comments that contributed greatly in improving the manuscript.
    [Show full text]
  • Using Binary Decision Diagrams to Enumerate Inductive Logic Programming Solutions
    Using Binary Decision Diagrams to Enumerate Inductive Logic Programming Solutions Hikaru Shindo1, Masaaki Nishino2, and Akihiro Yamamoto1 1 Graduate School of Informatics, Kyoto University, Kyoto, Japan [email protected] 2 NTT Communication Science Laboratories, NTT Corporation, Kyoto, Japan Abstract. This paper proposes a method for efficiently enumerating all solutions of a given ILP problem. Inductive Logic Programming (ILP) is a machine learning technique that assumes that all data, background knowledge, and hypotheses can be represented by first-order logic. The solution of an ILP problem is called a hypothesis. Most ILP studies pro- pose methods that find only one hypothesis per problem. In contrast, the proposed method uses Binary Decision Diagrams (BDDs) to enumerate all hypotheses of a given ILP problem. A BDD yields a very compact graph representation of a Boolean function. Once all hypotheses are enu- merated, the user can select the preferred hypothesis or compare the hy- potheses using an evaluation function. We propose an efficient recursive algorithm for constructing a BDD that represents the set of all hypothe- ses. In addition, we propose an efficient method to get the best hypothesis given an evaluation function. We empirically show the practicality of our approach on ILP problems using real data. Keywords: Inductive Logic Programming · Binary Decision Diagram. 1 Introduction This paper proposes a method that can efficiently enumerate all solutions of a given ILP problem. Inductive Logic Programming (ILP) is a machine learning technique that assuming that each datum, background knowledge, and hypothe- sis can be represented by first-order logic. Our work is based on the foundation of ILP established by Plotkin [17] and Shapiro [21]: inductive inference with clausal logic.
    [Show full text]
  • An Optimal Key Enumeration Algorithm and Its Application to Side-Channel Attacks
    An Optimal Key Enumeration Algorithm and its Application to Side-Channel Attacks Nicolas Veyrat-Charvillon?, Beno^ıtG´erard??, Mathieu Renauld???, Fran¸cois-Xavier Standaerty UCL Crypto Group, Universit´ecatholique de Louvain. Place du Levant 3, B-1348, Louvain-la-Neuve, Belgium. Abstract. Methods for enumerating cryptographic keys based on par- tial information obtained on key bytes are important tools in crypt- analysis. This paper discusses two contributions related to the practical application and algorithmic improvement of such tools. On the one hand, we observe that modern computing platforms al- low performing very large amounts of cryptanalytic operations, approx- imately reaching 250 to 260 block cipher encryptions. As a result, cryp- tographic key sizes for such ciphers typically range between 80 and 128 bits. By contrast, the evaluation of leaking devices is generally based on distinguishers with very limited computational cost, such as Kocher's Differential Power Analysis. We bridge the gap between these cryptana- lytic contexts and show that giving side-channel adversaries some com- puting power has major consequences for the security of leaking devices. For this purpose, we first propose a Bayesian extension of non-profiled side-channel attacks that allows us to rate key candidates in function of their respective probabilities. Next, we investigate the impact of key enumeration taking advantage of this Bayesian formulation, and quantify the resulting reduction in the data complexity of the attacks. On the other hand, we observe that statistical cryptanalyses usually try to reduce the number and size of lists corresponding to partial informa- tion on key bytes, in order to limit the time and memory complexity of the key enumeration.
    [Show full text]
  • Measuring the Complexity of Join Enumeration in Query Optimization Kiyoshi Ono I, Guy M
    Measuring the Complexity of Join Enumeration in Query Optimization Kiyoshi Ono I, Guy M. Lehman IRM Almaden Research Center KS5/80 I, 650 Harry Road San ,Josc, CA 95120 A b&act Introduction Since relational database management systems typically A query optimizer in a relational DRMS translates support only diadic join operators as primitive opera- non-procedural queries into a pr0cedura.l plan for ex- tions, a query optimizer must choose the “best” sc- ecution, typically hy generating many alternative plans, quence of two-way joins to achieve the N-way join of estimating the execution cost of each, and choosing tables requested by a query. The computational com- the plan having the lowest estimated cost. Increasing plexity of this optimization process is dominated by this set offeasilile plans that it evaluates improves the the number of such possible sequences that must bc chances - but dots not guarantee! - that it will find evaluated by the optimizer. This paper describes and a bcttct plan, while increasing the (compile-time) cost measures the performance of the Starburst join enu- for it to optimize the query. A major challenge in the merator, which can parameterically adjust for each design of a query optimizer is to ensure that the set of query the space of join sequences that arc evaluated feasible plans contains cflicient plans without making by the optimizer to allow or disallow (I) composite the :set too big to he gcncratcd practically. tables (i.e., tables that are themselves the result of a join) as the inner operand of a join and (2) joins between two tables having no join predicate linking them (i.e., Cartesian products).
    [Show full text]
  • Enumerating Geometric and Combinatorial Objects by Reverse Search
    Enumerating geometric and combinatorial objects by reverse search Shin-ichi Tanigawa RIMS, Kyoto University November 10, 2011 1 Reverse search 1.1 How to design an enumeration algorithm Let V be a finite set V with n = jV j. We shall consider the problem of enumerating a family O of subsets of V which have a specified combinatorial structure. For example, V = f1; 2; : : : ; ng and O is the set of all permutations, or V is an edge set of a graph and O is a family of (edge sets of) spanning trees in the graph. Below we list the procedure for enumerating O by reverse search. Step 1: Define a connected search graph on O. Step 1.1: Define a flip operation, • that is, a (simple) operation which generates a new object o1 2 O from the current object o2 2 O. E.g., swap operations on permutations; diagonal flips on triangulations. • A flip operation is called a k-flip if the symmetric difference between o1 and o2 is at most 2k. Step 1.2: Define the search graph G = (O;E) • where vertices are corresponding to the objects and o1 and o2 are adjacent iff they can be converted to each other by a single flip. Step 1.3: Prove G is connected. Step 2: Define a search tree in G. Step 2.1: Define a unique root of G and the parent for each non-root node of G. • The parent should be defined by using only the local information. • The function which returns a parent is called a parent function.
    [Show full text]
  • Generalizing Boolean Satisfiability II
    Journal of Artificial Intelligence Research 22 (2004) 481-534 Submitted 08/04; published 12/04 Generalizing Boolean Satisfiability II: Theory Heidi E. Dixon [email protected] On Time Systems, Inc. 1850 Millrace, Suite 1 Eugene, OR 97403 USA Matthew L. Ginsberg [email protected] On Time Systems, Inc. 1850 Millrace, Suite 1 Eugene, OR 97403 USA Eugene M. Luks [email protected] Computer and Information Science University of Oregon Eugene, OR 97403 USA Andrew J. Parkes [email protected] CIRL 1269 University of Oregon Eugene, OR 97403 USA Abstract This is the second of three planned papers describing zap, a satisfiability engine that substantially generalizes existing tools while retaining the performance characteristics of modern high performance solvers. The fundamental idea underlying zap is that many problems passed to such engines contain rich internal structure that is obscured by the Boolean representation used; our goal is to define a representation in which this structure is apparent and can easily be exploited to improve computational performance. This paper presents the theoretical basis for the ideas underlying zap, arguing that existing ideas in this area exploit a single, recurring structure in that multiple database axioms can be obtained by operating on a single axiom using a subgroup of the group of permutations on the literals in the problem. We argue that the group structure precisely captures the general structure at which earlier approaches hinted, and give numerous examples of its use. We go on to extend the Davis-Putnam-Logemann-Loveland inference procedure to this broader setting, and show that earlier computational improvements are either subsumed or left intact by the new method.
    [Show full text]
  • Dynamic Enumeration of Similarity Joins
    1 Dynamic Enumeration of Similarity Joins 2 Pankaj K. Agarwal 3 Duke University, USA 4 Xiao Hu 5 Duke University, USA 6 Stavros Sintos 7 University of Chicago, USA 8 Jun Yang 9 Duke University, USA 10 Abstract 11 This paper considers enumerating answers to similarity-join queries under dynamic updates: Given d 12 two sets of points A, B in R , a metric ϕ(·), and a distance threshold r > 0, it asks to report all pairs 13 of points (a, b) ∈ A × B with ϕ(a, b) ≤ r. Our goal is to design a data structure that, whenever asked, 14 can enumerate all result pairs with worst-case delay guarantee, i.e., the time between enumerating 15 two consecutive pairs is bounded. Furthermore, it can be efficiently updated when an input point is 16 inserted or deleted. 17 We propose several efficient data structures for answering similarity joins in low dimension. For 18 exact enumeration of similarity join, we obtain near-linear-size data structures for ℓ1/ℓ∞ metrics O(1) 19 with log n update time and delay. We show that such a data structure is not feasible for the ℓ2 20 metric for d ≥ 4. For approximate enumeration of similarity join, where the distance threshold is O(1) 21 a soft constraint, we obtain a unified linear-size data structure for ℓp metric, with log n delay 22 and update time. In high dimensions, we present an efficient data structure toward a worst-case 23 delay-guarantee framework using locality sensitive hashing (LSH). 24 2012 ACM Subject Classification Theory of computation → Theory and algorithms for application 25 domains → Database theory → Data structures and algorithms for data management 26 Keywords and phrases dynamic enumeration, similarity joins, worst-case delay guarantee 27 Digital Object Identifier 10.4230/LIPIcs..
    [Show full text]