-
Notifications
You must be signed in to change notification settings - Fork 420
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Higher dimension Karnaugh maps (5 and 6 variables) #536
Comments
I am unhappy with the quality of the code of the current K-Map implementation. So I don't want to complicate the code any further before I have cleaned it up. Unfortunately I don't really have the time to do this at the moment. |
Would also be nice to have an option to collect the zeros rather than the ones, in order to visualize minimal product-of-sums expressions too. |
See also 1127 |
The Karnaugh table concept can be extended with 5 and 6 variables, becoming some sort of Karnaugh cube. A cube isn't very practical for visualization though, so instead each layer can be shown in a separate 2D Karnaugh map. Extra variables headers are shown on the side.
I took a few hours to implement the concept with 5 variables, it looks like this:
![demo](https://user-images.githubusercontent.com/33690959/96473497-b7a04a00-11ff-11eb-89dc-8e646829ae27.gif)
I can extend it to 6 variables and send a pull request if you're interested.
One issue is that with 6 variables there's a maximum of 32 covers possible, so a lot a different colors are needed. Even with 5 variables I didn't bother, the 8 colors just get reused. I thought maybe I could add a color effect when a group is hovered to differentiate them?
Also the two vertical headers in the middle could be omitted since they are already present on both sides. The result would be single big table instead, like this: https://www.mathematik.uni-marburg.de/~thormae/lectures/ti1/code/karnaughmap/, and would support up to 8 variables.
The text was updated successfully, but these errors were encountered: