Timeline for How to turn truth table into smallest possible if / else block
Current License: CC BY-SA 3.0
31 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Aug 4, 2023 at 16:25 | comment | added | gnasher729 | How inherent in your problem is it that the number of tasks performed is always exactly one, or always at most one? | |
| Aug 3, 2023 at 9:21 | answer | added | anon | timeline score: 1 | |
| Aug 2, 2023 at 16:14 | answer | added | corvus_192 | timeline score: 0 | |
| Aug 19, 2017 at 16:48 | vote | accept | Juan | ||
| Aug 19, 2017 at 16:48 | |||||
| Aug 18, 2017 at 20:22 | review | Close votes | |||
| Aug 22, 2017 at 23:26 | |||||
| Aug 18, 2017 at 20:06 | answer | added | Deduplicator | timeline score: 2 | |
| Aug 18, 2017 at 19:58 | history | edited | Deduplicator | CC BY-SA 3.0 | added syntax-highlighting |
| Aug 18, 2017 at 19:53 | history | protected | gnat | ||
| Dec 18, 2014 at 18:06 | comment | added | Tulains Córdova | I think this answer of mine to a similar question could hepl: programmers.stackexchange.com/questions/205803/… | |
| Dec 18, 2014 at 6:45 | history | edited | gnat | CC BY-SA 3.0 | http://meta.programmers.stackexchange.com/questions/6483/why-was-my-question-closed-or-down-voted/6487#6487 |
| Dec 17, 2014 at 21:07 | history | edited | Doc Brown | CC BY-SA 3.0 | changed question to prevent it from closing, since the OP seems to miss the site rules. |
| Dec 17, 2014 at 13:57 | comment | added | Kilian Foth | Tool recommendations are off-topic, but if you change the question into "How can I do this?" it will be on-topic. If you do want a software recommendation, you should go to softwarerecs.stackexchange.com. | |
| Dec 16, 2014 at 17:12 | history | edited | gnat | CC BY-SA 3.0 | added 1 character in body; edited tags |
| Dec 16, 2014 at 16:48 | review | Close votes | |||
| Dec 17, 2014 at 21:29 | |||||
| Jan 2, 2012 at 6:32 | comment | added | user1249 | What is the rule for the minimum and maximum number of x,y,z's? | |
| Jan 2, 2012 at 5:41 | answer | added | Caleb | timeline score: 1 | |
| Jan 2, 2012 at 4:59 | answer | added | Petruchio | timeline score: 0 | |
| Sep 3, 2011 at 16:06 | comment | added | Ollie Saunders | This isn’t a development-methodologies post at all. | |
| Aug 23, 2011 at 3:26 | comment | added | Juan | I think you are all just getting distracted by the truth table. I just mean it to be an analysis of every possible income -> outcome in an if block, so that then I can optimize / compress it. I was actually writing an if block when I asked this question and figured that turning it into an if block might help me writing it, as well as prevent errors by being forced to consider every possible input. | |
| Aug 22, 2011 at 21:21 | comment | added | Job | @jsoldi, your set-up reminds me very much of a hardware state machine, such as this one: cset.sp.utoledo.edu/eet3350/lesson4.html In general it can set any combination of the wires x, y, and z on or off. But in your case it seems that you want to do just one of the actions. I agree with others that a bunch of if statements are not as readable (or as fast when their number is large) as other forms, such as dictionaries. Also, look into perfect hashing - that method is rather quick. | |
| Aug 22, 2011 at 21:07 | answer | added | Alex Feinman | timeline score: 3 | |
| Aug 22, 2011 at 20:40 | answer | added | NoChance | timeline score: 4 | |
| Aug 22, 2011 at 15:15 | comment | added | rwong | @jsoldi: The answers you receive will be dependent on which site you ask. If you are seeking comments on a particular code fragment containing some if-then-else blocks, it certainly belongs to Code review (beta). Stackoverflow will teach you the tools and techniques. On programmers.SE, people will tell you whether you should/should not be concerned about rewriting logic statements for human understanding, or for faster execution. | |
| Aug 22, 2011 at 14:30 | answer | added | kevin cline | timeline score: 15 | |
| Aug 22, 2011 at 11:20 | comment | added | ratchet freak | @jalayn most karnaugh tools are for digital circuitry; those have different heuristics than what the question is about | |
| Aug 22, 2011 at 6:55 | comment | added | Jalayn | @ratchet you should make it an answer, don't you think ? | |
| Aug 22, 2011 at 6:40 | history | tweeted | twitter.com/#!/StackProgrammer/status/105529817126019072 | ||
| Aug 22, 2011 at 5:47 | answer | added | grizwako | timeline score: 2 | |
| Aug 22, 2011 at 5:34 | comment | added | Juan | @ratchet: Seems like I do doesn't it? I didn't know about them before. Will have to do some reading but still and app that would do it for me would be nice, if nothing else, to verify my hand made results. | |
| Aug 22, 2011 at 5:30 | comment | added | ratchet freak | you mean transforming a Karnaugh map into a ifelse cascade? | |
| Aug 22, 2011 at 5:13 | history | asked | Juan | CC BY-SA 3.0 |