https://github.com/zkhan93/k-map
four variable K-Map solution in Sum Of Product form
https://github.com/zkhan93/k-map
Last synced: over 1 year ago
JSON representation
four variable K-Map solution in Sum Of Product form
- Host: GitHub
- URL: https://github.com/zkhan93/k-map
- Owner: zkhan93
- License: mit
- Created: 2014-11-26T02:42:52.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-11-14T19:15:18.000Z (over 9 years ago)
- Last Synced: 2024-01-31T18:41:03.966Z (over 2 years ago)
- Language: C
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# K-Map
this is source code to a program in C that solve a four variable K-Map problem and return the optimal solution in sum of product(SOP) form
this is a highschool project so don't expect much
##Compilation
to compile this you need a gcc compiler
`gcc k-map.c -o k-map`
##Running
to execite this program after compilation type this in terminal/console/command promt (in the same folder where compiled)
`./k-map`
##Demo
K-Map Minimizer by- Zeeshan Khan
Enter the number of min terms: 4
Enter the number of don't care terms: 2
Enter all the min terms with a single spaces between them..
F( A,B,C,D ) = 1 5 9 14
Enter all the don't care terms with a single spaces between them..
d( A,B,C,D ) = 3 2
K-map created...Successfully
C'D' C'D CD CD'
A'B' 0 1 x x
A'B 0 1 0 0
AB 0 0 0 1
AB' 0 1 0 0
Y = A'C'D + B'C'D + ABCD' +
Program Ended
To Restart Program press 1 and hit Enter
To Exit press 0 and hit Enter
0
##To-Dos
* create executable.
* translate in JS for webapps
* create a webapp