Code Monkey home page Code Monkey logo

quinemccluskey's Introduction

QuineMcCluskey

Table of Contents

Introduction
Requirements
Usage
Resources
License

Quine–McCluskey Algorithm Python Library

Welcome to the Quine–McCluskey Python library – a powerful tool for minimizing Boolean functions with ease! Developed by Willard V. Quine and extended by Edward J. McCluskey, this algorithm is your go-to method for simplifying Boolean expressions efficiently.

Installation

Now you can install the Quine–McCluskey Python library using pip. Just run the following command:

pip install simpliqm

Getting Started

Once installed, you can leverage the library's public API directly from Python. Two essential functions are at your disposal:

  1. minimize: Minimize Boolean functions with the provided minterms and optional don't care terms.
  2. format_minimized_expression: Format the minimized expression for clearer representation.

Command Line Interface

Additionally, the library provides a convenient command-line interface. After installation, you can use the 'qm' entry point directly from the terminal:

qm

Requirements

Ensure you have Python version 3.6 or higher installed to use this library.

Usage

From Python:

from simpliqm import minimize, format_minimized_expression

n_bits = 4
minterms = [0, 1, 2, 4, 8, 10, 12, 15]
xterms = [5, 6]

minimized_result = minimize(n_bits, minterms, xterms)
formatted_result = format_minimized_expression(minimized_result)

print(f"Minimized Expression: {formatted_result}")

From the Terminal:

qm

Follow the prompts to input your Boolean function details.

Minimization Gif

Resources

License

This project is licensed under the GNU General Public License v3.0.

quinemccluskey's People

Contributors

djcopley avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

quinemccluskey's Issues

Update unit tests

Unit tests need to be updated to account for fully simplified functions

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.