Font Size: a A A

Ordered Binary Decision Diagram With Implied Literals

Posted on:2014-02-22Degree:DoctorType:Dissertation
Country:ChinaCandidate:Y LaiFull Text:PDF
GTID:1228330395496897Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
Knowledge representation and reasoning is one of the most important sub-fields ofartificial intelligence. General reasoning problems are intractable from the viewpoint ofcomputational complexity. Knowledge compilation has emerged as a key direction of researchfor dealing with such kind of intractability. The target language is one of the key aspects forany compilation approach. So far, dozens of target languages have been proposed for differentinference tasks, and have been evaluated according their properties, including canonicity,succinctness and tractability. Among them, ordered binary decision diagram (OBDD) is acanonical and highly tractable language, and proved quite influential in a wide range ofpractical areas, including model checking, logic synthesis, diagnosis, product configuration,system design and automated planning.We generalize OBDD by associating some implied literals with each node to propose a newlanguage called OBDD with implied literals (OBDD-L). By restricting the implied literals oneach node to be the first i (0≤i≤∞) literals (according to the linear order of variables) in allpotential implied literals, we get a subset of OBDD-L called OBDD-Li. It is obvious thatOBDD-L0is isomorphic to OBDD. By imposing reducedness, we further get a subset ofOBDD-Li called ROBDD-Li. We show thatgiven any formula, there is exactly oneROBDD-Liover a fixed variable order, where ROBDD-L0(resp. ROBDD-L) have theminimum size among all equivalent ROBDD-L0’s (resp. ROBDD-L’s). We design analgorithm which can generate an ROBDD-L0(resp. ROBDD-L) from an equivalentOBDD-L0(resp. OBDD-L) in linear time.We propose an algorithm called L2Infty which can transform an OBDD-L into the equivalentROBDD-Lin O(n m), where n is the number of nodes in OBDD-L and m is the number ofvariables in OBDD-L. Given i <j, we find a class of knowledge bases such that the sizes ofthe corresponding ROBDD-Li’s are exponential butthe sizes of the correspondingROBDD-Li+1’s are linear. Accordingly,ROBDD-Liis not as less succinct as ROBDD-Lj;in particular, ROBDD-Lis not as less succinct as ROBDD-Li. In addition, we comparethe succinctness relation between OBDD-L and some previous languages.We design the following algorithms which perform logical operations on OBDD-L or itssubsets: An algorithm which can check the consistency of OBDD-L in O(1);An algorithm which can check the validity of OBDD-L in O(n), and an algorithmwhich can check the validity of ROBDD-Li(0≤i≤∞) in O(1), where n is the numberof nodes in OBDD-L;An algorithm which can check whether an OBDD-L implies a clause in O(n1n2+n3), where n1is the number of nodes in OBDD-L, n2is the number of variables inOBDD-L, and n3is the number of literals in the clause;An algorithm which can check whether a term implies an OBDD-L in O(n1n2+n3), where n1is the number of nodes in the OBDD-L, n2is the number of variables inOBDD-L, and n3is the number of literals in the term;An algorithm which can count the models of OBDD-L in O(n), where n is thenumber of nodes in OBDD-L;An algorithm which can enumerate the models of OBDD-L in O(n1n2n3), wheren1, n2and n3are the numbers of nodes, variables and models in OBDD-L, respectively;An algorithm which can check the equivalence relation between two OBDD-L’s inO(n1n2+n3n4), where n1and n2are the numbers of nodes and variables in anOBDD-L, respectively, and n3and n4are the numbers of nodes and variables in the otherOBDD-L, respectively;An algorithm which can condition an OBDD-L on a partial assignment in O(n1n2+n3), where n1and n2are the numbers of nodes and variables in the OBDD-L,respectively, and n3is the number of variables in the assignment;An algorithm which can compute the minimum cardinality of OBDD-L in O(n),where n is the number of nodes in OBDD-L;An algorithm which can minimize OBDD-L in O(n), and another algorithm whichcan minimize ROBDD-Lin O(n m), where n is the number of nodes in OBDD-L(resp. ROBDD-L), and m is the number of variables in the ROBDD-L;Two algorithms which can forget OBDD-L and ROBDD-Lin O(n m2) on thelast variable, where n is the number of nodes in OBDD-L (resp. ROBDD-L), and m isthe number of variables in the OBDD-L (resp. ROBDD-L);Moreover, we prove the co-NP-completeness of deciding the entailment between twoOBDD-L’s (resp. ROBDD-L’s). According to the above analysis, we evaluate thetractability of OBDD-L and ROBDD-Li(0≤i≤∞) up to the criterion in the knowledgecompilation map. We show that given any logical operation ROBDD-L0supports in polytime,ROBDD-Lcan also support it in time polynomial in the sizes of the equivalent ROBDD-L0’s, and we propose a conjoining algorithm for ROBDD-L, whose efficiency issometimes exponentially higher than the conjoining algorithm of ROBDD-L0.We propose an ROBDD-Li(0≤i≤∞) compilation algorithm and an ROBDD-Lcompilation algorithm, and then we implement an OBDD-L package called BDDjLu. Ourpreliminary experimental results indicate that:(a) the compilation results of ROBDD-Laresignificantly smaller than those of ROBDD;(b) the standard d-DNNF compiler c2d and ourROBDD-Lcompiler do not dominate the other, yet ROBDD-Lhas canonicity andsupports more querying requirements and relatively efficient logical operations; and (c) themethod that first compiles knowledge base into ROBDD-Land then converts ROBDD-Linto ROBDD outperforms other ROBDD compilers on most instances.
Keywords/Search Tags:Knowledge Compilation Language, Ordered Binary Decision Diagram with ImpliedL_iterals, Succinctness, Logical Operation, Compiling Algorithm
PDF Full Text Request
Related items