Skip to main content
Log in

A faster implementation of EQ and SE queries for switch-list representations

  • Published:
Annals of Mathematics and Artificial Intelligence Aims and scope Submit manuscript

Abstract

A switch-list representation (SLR) of a Boolean function is a compressed truth table representation of a Boolean function in which only (i) the function value of the first row in the truth table and (ii) a list of switches are stored. A switch is a Boolean vector whose function value differs from the value of the preceding Boolean vector in the truth table. The paper Čepek and Chromý (JAIR 2020) systematically studies the properties of SLRs and among other results gives polynomial-time algorithms for all standard queries investigated in the Knowledge Compilation Map introduced in Darwiche and Marquis (JAIR 2002). These queries include consistency check, validity check, clausal entailment check, implicant check, equivalence check, sentential entailment check, model counting, and model enumeration. The most difficult query supported in polynomial time by the smallest number of representation languages considered in the Knowledge Compilation Map is the sentential entailment check (of which the equivalence check is a special case). This query can be answered in polynomial time for SLRs, as shown in Čepek and Chromý (JAIR 2020). However, the query-answering algorithm is an indirect one: it first compiles both input SLRs into OBDDs (changing the order of variables for one of them if necessary) and then runs the sentential entailment check on the constructed OBDDs (both respecting the same order of variables) using an algorithm from the monograph by Wegener (2000). In this paper we present algorithms that answer both the equivalence and the sentential entailment query directly by manipulating the input SLRs (hence eliminating the compilation step into OBDD), which in both cases improves the time complexity of answering the query by a factor of n for input SLRs on n variables.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

Data availability statement

Data sharing is not relevant to this article as no datasets were generated or analyzed during this study.

References

  1. Le Berre, D., Marquis, P., Mengel, S., Wallon, R.: Pseudo-Boolean constraints from a knowledge representation perspective. In: Proceedings of the 27th International Joint Conference on Artificial Intelligence, pp. 1891–1897. IJCAI, https://www.ijcai.org/ (2018)

  2. Čepek, O., Chromý, M.: Properties of switch-list representations of boolean functions. J. Artif. Intel. Res. 69, 451–479 (2020)

    MathSciNet  Google Scholar 

  3. Čepek, O., Chromý, M.: Switch-List Representations in a Knowledge Compilation Map. In: Proceedings of the 29th International Joint Conference on Artificial Intelligence, pp. 1651–1657. IJCAI, https://www.ijcai.org/ (2020)

  4. Čepek, O., Hušek, R.: Recognition of tractable DNFs representable by a constant number of intervals. Discret. Optim. 23, 1–19 (2017)

    Article  MathSciNet  Google Scholar 

  5. Darwiche, A., Marquis, P.: A Knowledge Compilation Map. J. Artif. Intel. Res. 17, 229–264 (2002)

    MathSciNet  Google Scholar 

  6. Čepek,O.; Weigle,J.: A direct equivalence-testing algorithm for SLRs. Proceedings of the International Symposium on Artificial Intelligence and Mathematics (ISAIM 2022), Fort Lauderdale, USA, January 3-5, 2022

  7. Mengel, S.: No efficient disjunction or conjunction of switch-lists. J. Satisfiability Boolean Model. Comput. 13, 1–4 (2022)

    Article  MathSciNet  Google Scholar 

  8. Schieber, B., Geist, D., Zaks, A.: Computing the minimum DNF representation of Boolean functions defined by intervals. Discret. Appl. Math. 149, 154–173 (2005)

    Article  MathSciNet  Google Scholar 

  9. Wegener, I.: Branching programs and binary decision diagrams: Theory and Applications. Society for Industrial and Applied Mathematics, Philadelphia, PA, USA (2000)

    Book  Google Scholar 

Download references

Acknowledgements

The authors would like to thank the two anonymous referees for their detailed work and many suggestions, which led us to make several modifications that (hopefully) improved the readability of the paper.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Ondřej Čepek.

Ethics declarations

Conflicts of interest

The authors have no conflicts of interest to declare.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

This research was partially supported by TAILOR, a project funded by EU Horizon 2020 research and innovation programme under GA No 952215.

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Čepek, O., Weigle, J. A faster implementation of EQ and SE queries for switch-list representations. Ann Math Artif Intell (2023). https://doi.org/10.1007/s10472-023-09915-5

Download citation

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1007/s10472-023-09915-5

Keywords

Navigation