News for hackers. Stuff that matters.
Re:Gray Code by orand on Thursday August 27, 2015 @05:18PM (#10132169)
In the past 15 years, Gray code is the only part of my Computer Science education I've actually found a use for in my day-to-day work developing business applications. I've used it to simplify overly complex if/else logic down to its simplest possible form. All the rest of the knowledge I use on a daily basis has been learned on the job.
Re:Gray Code by ucha on Thursday August 27, 2015 @05:53PM (#10132385)
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.
Re:Gray Code by defect on Thursday August 27, 2015 @06:15PM (#10132497)
Karnaugh maps I'm guessing. https://en.wikipedia.org/wiki/Karnaugh_map
Re:Gray Code by iso8859-1 on Thursday August 27, 2015 @08:28PM (#10133003)
Made 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
Re:Gray Code by orand on Friday August 28, 2015 @02:57PM (#10137273)
Yes, that's it, thanks for jogging my memory!