GithubHelp home page GithubHelp logo

bcanseco / quine-mccluskey Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 1.0 322 KB

:bulb: The Quine-McCluskey algorithm implemented in C# 7 (.NET Core)

License: MIT License

C# 100.00%
quine-mccluskey quine-mccluskey-technique quine-mccluskey-algorithm

quine-mccluskey's Introduction

Quine-McCluskey.NET

A C# implementation of the Quine-McCluskey algorithm for boolean expression minimization.

Includes a class library for the algorithm, unit tests, and a console application for testing expressions via stdin.

Limitations

This implementation is based on pages 1 through 8 of the QM Document by Dr. Nicholas Outram.
It does not include:

  • Simplification of 'dont-care' terms from the beginning
  • Simplifications with multiple solutions
  • Prime implicant charts or coverage tables

Running the CLI

  1. git clone [email protected]:bcanseco/quine-mccluskey.git qm
  2. cd qm/Algorithm.CLI
  3. dotnet restore
  4. dotnet run

Running the Tests

  1. cd ../Algorithm.Tests
  2. dotnet restore
  3. dotnet test

ToDo

The main thing I see that could be improved is refactoring Expression and Composite Minterm to be one class. Pull requests are welcome! I have put both inline comments and XML documentation throughout the solution to assist with development.

License

MIT

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.