Giter Site home page Giter Site logo

rafaelfigueredog / quine-mccluskey Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 100 KB

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

Python 100.00%
python3 quine-mccluskey boolean-expression simplifier petrick-method

quine-mccluskey's Introduction

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

python main.py

Example Usage

Simplificador de Expressões Booleanas:
Versão 2.1

Digite um numero inteiro entre 1 e 10:
Nº Variáveis: 3 # Number of outputs on truth table. 
Vamos lá! voce selecionu 3 variáveis. 
Digite entre espaços as 8 saídas da tabela verdade.
Saídas: 0 1 0 1 0 1 0 1 # Outputs of truth table from 0 to 7.

Implicantes (Ordem 0):
('1', '001')
('3', '011')
('5', '101')
('7', '111')

Implicantes (Ordem 1):
('1,3', '0-1')
('1,5', '-01')
('3,7', '-11')
('5,7', '1-1')

Implicantes (Ordem 2):
('1,3,5,7', '--1')

Primos Implicantes 
('1,3,5,7', '--1')

Primos Implicantes Essenciais
('1,3,5,7', '--1')

Expressão Bool. Simplificada 

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.

quine-mccluskey's People

Contributors

rafaelfigueredog avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.