No Efficient Disjunction or Conjunction of Switch-Lists
Abstract
It is shown that disjunction of two switch-lists can blow up the representation size exponentially. Since switch-lists can be negated without any increase in size, this shows that conjunction of switch-lists also leads to an exponential blow-up in general.
1.Introduction
Switch-lists are a representation language for Boolean functions introduced in [1], strongly related to interval representations [7]. The idea is to write the values of a Boolean function f on all lexicographically ordered inputs in a value table. Then, to encode f, it suffices to remember the value of f on the first input and the inputs at which the value of f changes from that of its predecessor. The resulting data structure is called a switch-list representation of f. Clearly switch list representations can be far more succinct than truth tables, e.g. for constant functions.
To systematically understand the properties of switch-lists beyond this, Chromý and Čepek [2] analyzed them in the context of the so-called knowledge compilation map. This framework, introduced in the ground-breaking work of Darwiche and Marquis [3] gives a list of standard properties which should be analyzed for languages used in the area of knowledge compilation along different axes: succinctness, queries and transformations. The idea of the knowledge compilation map has had a huge influence and the approach of [3] is widely applied in knowledge compilation, see e.g. [4–6] for a very small sample.
Chromý and Čepek [2] analyzed switch-lists along the properties of the knowledge compilation map and got a nearly complete picture. It turns out that switch-lists, while being generally much more succinct than truth tables, have many of their good properties. In particular, all of the queries in [3] (e.g. consistency, entailement and counting) can be answered in polynomial time on switch-lists and nearly all of the transformation can be performed efficiently. The only exception is that [2] leaves open if switch-lists are closed under bounded disjunction and bounded conjunction, i.e., given two Boolean functions
2.Preliminaries
Let f be a Boolean function in the n variables
A switch of the function f with respect to π is a number
The size of a switch-list representation is defined as n times the number of switches which corresponds roughly to the natural encoding size.11 Note that the size depends strongly on the order π.
Following Darwiche and Marquis [3], switch-lists are said to satisfy bounded disjunction (resp. bounded conjunction) if there is a polynomial-time algorithm that, given two switch-list representations of functions
3.The Proof
Let
Observation 1.
There are switch-list representations for
Proof: Only give the argument for
Proposition 1.
The function
Proof: Let
For every assignment a to
Now let
The main result of this paper follows directly.
Theorem 1.
Switch-lists satisfy neither bounded disjunction nor bounded conjunction. This remains true when the functions to be disjoined (resp. conjoined) are on the same set of variables.
Proof: For disjunction, this follows directly from Observation 1 and Proposition 1 since the outcome of any polynomial-time algorithm would in particular be of polynomial size.
For conjunction, let us define
4.Conclusion
I was shown that switch-lists neither satisfy bounded disjunction nor bounded conjunction. This even remains true if both inputs depend on the same set of variables. This completes the analysis of switch-lists in the framework of the knowledge compilation map.
Let us remark that for practical applicability of switch-lists, this is rather bad news. Many classical approaches to practical knowledge compilation use so-called bottom-up compilation: given a conjunction of clauses, or more generally constraints,
To better understand when switch-lists are useful, it would be interesting to find classes of functions for which small switch-list representations can be computed efficiently, either theoretically or with heuristic approaches.
Notes
1 We do not take into account the size of an encoding of π in this since it is the same for all switchlists in n variables and thus would only complicate the notion without giving any insights.
Acknowledgements
This work has been partly supported by the PING/ACK project of the French National Agency for Research (ANR-18-CE40-0011).
References
[1] | O. Čepek and R. Hušek, Recognition of tractable DNFs representable by a constant number of intervals, Discret. Optim. 23: ((2017) ), 1–19. doi:10.1016/j.disopt.2016.11.002. |
[2] | M. Chromý and O. Čepek, Properties of switch-list representations of Boolean functions, J. Artif. Intell. Res. 69: ((2020) ), 501–529. doi:10.1613/jair.1.12199. |
[3] | A. Darwiche and P. Marquis, A knowledge compilation map, J. Artif. Intell. Res. 17: ((2002) ), 229–264. doi:10.1613/jair.989. |
[4] | H. Fargier and P. Marquis, Disjunctive closures for knowledge compilation, Artif. Intell. 216: ((2014) ), 129–162. doi:10.1016/j.artint.2014.07.004. |
[5] | H. Fargier, P. Marquis and A. Niveau, Towards a knowledge compilation map for heterogeneous representation languages, in: IJCAI 2013, Proceedings of the 23rd International Joint Conference on Artificial Intelligence, Beijing, China, August 3–9, 2013, F. Rossi, ed., IJCAI/AAAI, (2013) , pp. 877–883, https://www.ijcai.org/Proceedings/13/Papers/135.pdf. |
[6] | K. Pipatsrisawat and A. Darwiche, New compilation languages based on structured decomposability, in: Proceedings of the Twenty-Third AAAI Conference on Artificial Intelligence, AAAI 2008, Chicago, Illinois, USA, July 13–17, 2008, D. Fox and C.P. Gomes, eds, AAAI Press, pp. 517–522, http://www.aaai.org/Library/AAAI/2008/aaai08-082.php. |
[7] | B. Schieber, D. Geist and A. Zaks, Computing the minimum DNF representation of Boolean functions defined by intervals, Discret. Appl. Math. 149: (1–3) ((2005) ), 154–173. doi:10.1016/j.dam.2004.08.009. |