Skip to content

mnahm5/Karnaugh-Map-Solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Karnaugh Map Solver

This program uses the Quine-McCluskey Method to solve Karnaugh Maps (a common math problem for electrical engineers). Please feel free you use the code in your own projects and improve upon it if possible. Hope you like it.

For more information on Karnaugh Maps please click here

For more information on Quine-McCluskey Method please click here

Tutorial

The image below shows the page that is shown when you open the application. It mainly consists of 3 main blue buttons.

alt text

When the 'Sum of Products Notation' button is clicked a dialouge box appears. This is shown in the figure below. alt text

Then you have to input the values into the input boxes and click on the 'Calculate' button. Then the solution will be calculated and displayed above the buttons as shown below. alt text

When the 'Product of Sums Notation' button is clicked a dialouge box appears. This is shown in the figure below. alt text

Then you have to input the values into the input boxes and click on the 'Calculate' button. Then the solution will be calculated and displayed above the buttons as shown below. alt text

When the 'Enter Truth Table' button is clicked a dialouge box appears. This is shown in the figure below. alt text

To input values into a truth table first you have to first input the size of the truth table and then clicking the 'Create Truth Table' button. For example entering 3 will give the result shown in the figure below. alt text

The default values in the truth table is 0. You change it to 1 or X (i.e. don't care) using the dropdown menu. You then have to choose between using the 'Product of Sums Notation' or the 'Sum of Products Notation'. Selecting the 'Get Min Terms' radio button will make the program calulcate using the 'Sum of Products Notation'. The solution will be calculated after you click on the 'Calculate' button. The solution will be provided below the truth table as shown below. alt text

Selecting the 'Get Max Terms' radio button will make the program calulcate using the 'Product of Sums Notation' as shown below. alt text

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published