Not to be confused with Troubleshooting / Diagnosis.
It turns out that solving problems can be learned, and taught, and it can apply to all parts of our lives, not just our work.
Usually, if its a problem that hasn't been solved, its because its complex and its exceeded our complexity barrier, at least for the moment. To reduce complexity "divide and conquer". But how should we divide?
"Before implementing a component you write some of the code that actually uses it. This way you discover what functions with what parameters you really need, which leads to a very good interface. You will also have some good test code for your component."
""Wishful Thinking" is a good way to think about recursion: When seeing a recursive call, you should not think about the code being executed on each sub call. Instead, just imagine that the sub call does its job correctly. Thus, you prove the correctness of the function by assuming that it is correct (on simpler input). This is some positive kind of self-fulfilling prophecy. Of course you still have to check for trivial cases and need to assure that the recursive call handles a simpler case of your problem. But those are minor issues. The hardest part is to understand the recursive calls. Without the technique of wishful thinking, you can't handle problems like "Towers of Hanoi", let alone more complicated ones. "
How do we choose between these methods of dividing up complex problems?
file: /Techref/problem-solving.htm, 4KB, , updated: 2020/6/30 10:31, local time: 2025/1/24 22:23,
3.149.241.62:LOG IN
|
©2025 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://sxlist.com/Techref/problem-solving.htm"> Problem Solving Advice</A> |
Did you find what you needed? |
Welcome to sxlist.com!sales, advertizing, & kind contributors just like you! Please don't rip/copy (here's why Copies of the site on CD are available at minimal cost. |
Ashley Roll has put together a really nice little unit here. Leave off the MAX232 and keep these handy for the few times you need true RS232! |
.