GithubHelp home page GithubHelp logo

0110g / quinemccluskey-minimization Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 1.0 5 KB

Minimization of boolean expressions is one of the fundamental aspects of Digital Design. This task was revolutionized by the QuineMccluskey technique. This repo contains C++ code used to minimize boolean functions through this technique. The implementation has been designed only for non Don't care type expressions.

C++ 100.00%
digital-design minimization boolean-expression boolean-logic quine-mccluskey-algorithm

quinemccluskey-minimization's Issues

Subscript out of range

when debugged with VisualStudio an assertion failure on "subscript out of range" in

trackRecord[i] = true;

I've changed the main because I couldn't be bothered to use the command-line.

	int main() {
		const int numberOfBits = 4;
		std::vector<int> minTerms;
		minTerms.push_back(0b0000);
		minTerms.push_back(0b0010);
		minTerms.push_back(0b0011);
		minTerms.push_back(0b0100);
		minTerms.push_back(0b0101);
		minTerms.push_back(0b0110);
		minTerms.push_back(0b0111);
		minTerms.push_back(0b1000);
		minTerms.push_back(0b1001);
		minTerms.push_back(0b1010);
		minTerms.push_back(0b1011);
		minTerms.push_back(0b1100);
		minTerms.push_back(0b1101);

		numberOfMinTerms = minTerms.size();

		sort(minTerms.begin(), minTerms.end());		// Sorting neccessary for -	
						// ImplicantTable() to work
	[rest unchanged]

Question: this this bug also occur on your setup?

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.