An implementation of the Quine-McCluskey algorithm to simpily a DNF written in C
- Parse the input (the sum of products) into a format we can use, nested structs
- Create the simplification table of minterms
- Merge minterms if possible, marking them if merged
- Keep merging until we can't any more
- Get what we couldn't merge, the 'Prime Implicants'- this is the output
./quineMcCluskey -C-B-A + -CB-A + C-B-A + CB-A + CBA
-A + CB
(Alternative output format:)
A v (C ∧ B)