Simplify boolean expression algorithm

后端 未结 6 992
无人及你
无人及你 2020-12-18 20:59

Anybody knows of an algorithm to simplify boolean expressions?

I remember the boolean algebra and Karnaught maps, but this is meant for digital hardware where EVERIT

6条回答
  •  爱一瞬间的悲伤
    2020-12-18 21:30

    There are two parts to this problem, logical simplification and representation simplification.

    For logical simplification, Quine-McCluskey. For simplification of the representation, recursively extract terms using the distribution identity (0&1|0&2) == 0&(1|2).

    I detailed the process here. That gives the explanation using only & and |, but it can be modified to include all boolean operators.

提交回复
热议问题