3 ms·
Could you expand on that? I don't really understand how you could simplify if/else logic by using this which is a bijection from one binary counting system to a
by ucha 11y ago
Could you expand on that? I don't really understand how you could simplify if/else logic by using this which is a bijection from one binary counting system to another.
- defect 11y agoKarnaugh maps I'm guessing. https://en.wikipedia.org/wiki/Karnaugh_map https://en.wikipedia.org/wiki/Karnaugh_map
- iso8859-1 11y agoMade a tiny webapp to do this, which lets you hover over the different parts of the resulting expression, to see which parts of the karnaugh map they cover: https://github.com/ysangkok/py-kmap https://github.com/ysangkok/py-kmap
- orand 11y agoYes, that's it, thanks for jogging my memory!