Skip to main content
QUICK REVIEW

[Paper Review] Programing implementation of the Quine-McCluskey method for minimization of Boolean expression

Jiangbo Huang|arXiv (Cornell University)|Oct 4, 2014
Formal Methods in VerificationComputer Science2 references4 citations
TL;DR

This paper presents a C-based programming implementation of the Quine-McCluskey (QM) method for minimizing Boolean expressions, supporting any number of variables and explicitly handling 'don't-care' conditions. The approach systematically groups minterms, performs prime implicant generation through pairwise comparison, and uses a selection algorithm to find minimal cover sets, offering a robust, scalable, and extensible solution for automated logic minimization in circuit design and algorithm optimization.

ABSTRACT

A Boolean function is a function that produces a Boolean value output by logical calculation of Boolean inputs. It plays key roles in programing algorithms and design of circuits. Minimization of Boolean function is able to optimize the algorithms and circuits. Quine-McCluskey (QM) method is one of the most powerful techniques to simplify Boolean expressions. Compared to other techniques, QM method is more executable and can handle more variables. In addition, QM method is easier to be implemented in computer programs, which makes it an efficient technique. There are several versions of QM simulation codes online, whereas some of them appear to have limitations of variables numbers or lack the consideration of Dont-Care conditions. Here a QM simulation code based on C programing is introduced. Theoretically it is able to handle any number of variables and has taken the Dont-Care conditions into account.

Motivation & Objective

  • To develop a scalable, programmatic implementation of the Quine-McCluskey method for Boolean expression minimization.
  • To address limitations in existing QM simulation codes, such as restricted variable counts and lack of don't-care condition handling.
  • To provide a reliable, extensible, and efficient C-based solution suitable for integration into larger design and verification tools.
  • To ensure correctness and completeness in prime implicant generation and minimal cover selection across all input configurations.

Proposed method

  • The method begins by grouping minterms based on the number of 1s in their binary representation.
  • It performs pairwise comparison between minterms in adjacent groups to identify and merge terms differing by a single bit, generating prime implicants.
  • The process continues iteratively until no further merging is possible, resulting in a complete set of prime implicants.
  • Don't-care conditions are incorporated during the initial grouping and merging stages to improve minimization efficiency.
  • A selection algorithm is applied to identify the minimal set of prime implicants that cover all minterms.
  • The final output is a minimized sum-of-products Boolean expression with optimal term count.

Experimental results

Research questions

  • RQ1Can a C-based implementation of the Quine-McCluskey method be designed to handle any number of input variables without hardcoding limits?
  • RQ2How can don't-care conditions be effectively integrated into the QM algorithm to improve minimization results?
  • RQ3What are the key implementation challenges in ensuring correctness and completeness in prime implicant generation and selection?
  • RQ4How does the proposed implementation compare in performance and reliability to existing online QM simulators?

Key findings

  • The implementation successfully supports an arbitrary number of input variables, overcoming a common limitation in existing QM simulators.
  • The inclusion of don't-care conditions during the merging process leads to more compact and optimized Boolean expressions.
  • The algorithm correctly generates all prime implicants and identifies a minimal cover set through systematic selection.
  • The solution is robust and scalable, suitable for integration into automated logic design and verification pipelines.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.