| New Reply |
Why puzzles in programming? |
Share Thread |
| Jan10-13, 03:19 AM | #1 |
|
|
Why puzzles in programming?
I have been solving some programming questions and all are some sort of puzzles?
What are they trying to teach us with puzzles? What skills are they trying to develop by solving puzzles? |
| Jan10-13, 04:27 AM | #2 |
|
Admin
|
Logical thinking.
|
| Jan10-13, 07:01 AM | #3 |
|
|
What logical thinking is required in software development and other stuff?
|
| Jan10-13, 07:28 AM | #4 |
|
|
Why puzzles in programming?
The puzzles aim to let you develop your ability to analyze a problem and develop one or effective strategies for solving them and translating those strategies into algorithms and then implement those algorithms in code. Programming puzzles may target particular data structures or programming methods (eg, matrix algebra or optimization)
|
| Jan10-13, 10:49 AM | #5 |
Recognitions:
|
But seriously, the puzzles may also be testing that you REALLY understand what the programming language means, as well as your "logical thinking" skills. For example Code:
void swapsigns{int i, int j}
{
if (i = j)
i = -i;
j = -j;
}
|
| Jan11-13, 02:21 AM | #6 |
|
|
A possible advantage is that the answer doesn't always lie an internet search away. If you want to make your students think to eventually get the programming mindset needed, you can easily make up an original question that must be thought out instead of copied from some programming forum.
The same can't be done with practical questions because by definition practical questions are common and therefore answers to such questions can easily be found online. Finally, be thankful. In practice, everyday programming is often tedious and boring whereas puzzles are fun. |
| Jan11-13, 04:07 PM | #7 |
|
|
Puzzles are a good way to make sure that not only do you find a correct solution, but you find a solution that is computable in a reasonable amount of time. Often with puzzles of any significant size, there are solutions that might as well be incorrect because they are so horribly inefficient. The (time / space) complexity of a solution is an important thing to know.
I play around at Project Euler a lot :) |
| Jan29-13, 07:46 AM | #8 |
|
|
Sorry for the late reply
ok so puzzles improve my logical thinking. But logical thinking is required in every field of science and maths. Why computer science course focuses so much on logic building? |
| Jan29-13, 09:48 AM | #9 |
|
Mentor
|
Writing a program that deals with these occurrences requires a lot of logical thinking on the part of the programmer. |
| Jan29-13, 10:32 AM | #10 |
|
Mentor
|
|
| Jan29-13, 10:39 AM | #11 |
|
|
|
| New Reply |
Similar discussions for: Why puzzles in programming?
|
||||
| Thread | Forum | Replies | ||
| Recommended programming language (and texts) for middle-school beginner programming | Programming & Comp Sci | 9 | ||
| Picture Puzzles. | Brain Teasers | 60 | ||
| Logic Puzzles | Fun, Photos & Games | 0 | ||
| For Those of You Who Enjoy Puzzles | General Math | 4 | ||
| odd word out puzzles | General Discussion | 11 | ||