English

DenseQMC: an efficient bit-slice implementation of the Quine-McCluskey algorithm

Data Structures and Algorithms 2023-02-21 v1

Abstract

This note describes a new efficient bit-slice implementation DenseQMC of the Quine-McCluskey algorithm for finding all prime implicants of a Boolean function in the dense case. It is practically feasible for n <= 23 when run on a common laptop or for n <= 27 when run on a server with 1 TiB RAM. This note also outlines a very common mistake in the implementations of the Quine-McCluskey algorithm, leading to a quadratic slowdown. An optimized corrected implementation of the classic approach is also given (called SparseQMC). The implementation is freely available at https://github.com/hellman/Quine-McCluskey .

Keywords

Cite

@article{arxiv.2302.10083,
  title  = {DenseQMC: an efficient bit-slice implementation of the Quine-McCluskey algorithm},
  author = {Aleksei Udovenko},
  journal= {arXiv preprint arXiv:2302.10083},
  year   = {2023}
}

Comments

14 pages, 2 figures, 1 table, 4 algorithms, 2 footnotes

R2 v1 2026-06-28T08:44:42.125Z