Code Monkey home page Code Monkey logo

quine_mccluskey's Introduction

Quine McCluskey Circuit Minimizer.

A robust ๐Ÿ”จ, insanely fast โšก and stupidly easy to use ๐Ÿ˜ด CLI tool for minimizing sum of products via the Quine Mccluskey minimization technique.

Features ๐Ÿ’Ž

  • Written in uncomplicated python ๐Ÿ˜‡
  • Supports don't cares and variables for representing expression
  • Display of all steps leading to solution ๐Ÿ’ง
  • Works on Mac, Linux and Windows
  • Provides all other alternative solutions to the minimization problem

Installation ๐Ÿ“ฆ

  1. Clone the repo
   git clone https://github.com/Kumbong/quine_mccluskey.git
   cd quine_mccluskey
  1. Install dependencies
   pip install -r requirements.txt

Usage ๐Ÿ’ป

You can use the following optional arguments according to your needs:

  • -d, --dcares (list of numbers): list of dont't cares (default=[ ])
  • -v, --variables (list of chars): list of characters for representing result (default = [ ])
  • -s, --show_steps (yes|no): show steps leading to solution (default=yes)
  • -p, --show_step (sum of products): sum of products are used to be reduce the function
  • -m, --show_step (minterms): sum of minterms are used to be reduce the function

Example

    python -m qmccluskey -m 0,1,3,7,8,9,11,15 -d 12  -v a,b,c,d
    python -m qmccluskey -p a'b'c'+b'cd'+a'bcd'+ab'c' -v a,b,c,d

Demo ๐ŸŽฅ

Solution for the the Example above

Contributing ๐ŸŽ contributions welcome

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate.

Want to talk more??

If you are interested in helping or have something to suggest or just want to chat with me, you can reach me through the following media .

References ๐Ÿ“–

Todos ๐Ÿ“

  • Automate build
  • Improve code quality to A+
  • Complete GUI module
  • Write tests
  • Include steps for petrick's method

License ๐Ÿ”‘

MIT ยฉ Kumbong Hermann

quine_mccluskey's People

Contributors

kumbong avatar m-javadheydarpour 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.