项目作者: rafaelfigueredog

项目描述 :
Simplifier of Boolean Expressions
高级语言: Python
项目地址: git://github.com/rafaelfigueredog/Quine-McCluskey.git
创建时间: 2018-07-15T04:35:27Z
项目社区:https://github.com/rafaelfigueredog/Quine-McCluskey

开源协议:

下载


Quine-McCluskey

The Quine-McCluskey algorithm is a method used to simplify boolean expressions. This is an implementation of the algorithm using Python.

Installation

  1. Clone the repository: git clone https://github.com/rafaelfigueredog/Quine-McCluskey.git
  2. Change to the project directory: cd Quine-McCluskey

Usage

  1. python main.py

Example Usage

  1. Simplificador de Expressões Booleanas:
  2. Versão 2.1
  3. Digite um numero inteiro entre 1 e 10:
  4. Nº Variáveis: 3 # Number of outputs on truth table.
  5. Vamos lá! voce selecionu 3 variáveis.
  6. Digite entre espaços as 8 saídas da tabela verdade.
  7. Saídas: 0 1 0 1 0 1 0 1 # Outputs of truth table from 0 to 7.
  8. Implicantes (Ordem 0):
  9. ('1', '001')
  10. ('3', '011')
  11. ('5', '101')
  12. ('7', '111')
  13. Implicantes (Ordem 1):
  14. ('1,3', '0-1')
  15. ('1,5', '-01')
  16. ('3,7', '-11')
  17. ('5,7', '1-1')
  18. Implicantes (Ordem 2):
  19. ('1,3,5,7', '--1')
  20. Primos Implicantes
  21. ('1,3,5,7', '--1')
  22. Primos Implicantes Essenciais
  23. ('1,3,5,7', '--1')
  24. Expressão Bool. Simplificada
  25. S = C

How it Works

The Quine-McCluskey algorithm works by comparing the minterms of a boolean expression to each other and grouping those that differ by only one bit. It continues to group the resulting terms until no more grouping is possible. The resulting groups are used to generate the simplified boolean expression.

Contributing

Contributions are welcome! Please submit a pull request or open an issue.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgements

This project was completed as part of my university coursework. I would like to thank my professor and classmates for their help and support.