Quine-McCluskey Algorithm implemented in C++
- List all minterms (and don't care terms)
- Step by step merging one layer at a time (note that only two minimum terms with a distance of 1 can be merged), and pay attention to removing duplicates
- Find the essential prime implication through the prime implication table
*When merging, there can be optimization (by grouping implication terms by the number of 1 to avoid invalid comparisons)
GitHub: Quine-McCluskey
Divide by space, enter the smallest item expressed in decimal digits in sequence, and enter - 1 after input to indicate completion
After that, the program will automatically give the prime implication term and the prime implication term