Simplify boolean expression algorithm

后端 未结 6 971
无人及你
无人及你 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:15

    First shot using Google found this paper:

    http://hopper.unco.edu/KARNAUGH/Algorithm.html

    Of course, that does not deal with non-boolean subexpressions. But this latter part in its general form is really hard, since there is definitely no algorithm to check if an arbitrary arithmetic expression is true, false or whatever. What you are asking for goes deeply into the field of compiler optimization.

提交回复
热议问题