Subject:
|
Re: Would-be hacker queries.
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Tue, 11 May 1999 20:28:52 GMT
|
Viewed:
|
1142 times
|
| |
| |
JR Conlin <jrconlin@email.com> wrote:
> You know, I have never really liked the factorial example of recursion.
> Honestly, how many times have you really needed to generate a factorial in
> general experience?
The factorial is useful for probability.
The factorial is a simple, understandable example of recursion, useful to
teach the concept; it is lacking only in that it is not very efficient.
But when you are first learning, I think concepts are more important than
efficiency.
Good examples of where recursion is actually useful are:
- ray tracing
- solving Towers of Hanoi
Not that these help explain the concept, though.
-Kekoa
|
|
Message has 1 Reply: | | Re: Would-be hacker queries.
|
| (...) You know, a 'bot that actually solves a Towers of Hanoi puzzle with real plates and whatnot would be a pretty cool challenge on hardware like the RCX. (ponder, ponder, ponder)... I don't think it's possible with anything less than LegOS or (...) (26 years ago, 11-May-99, to lugnet.robotics)
|
Message is in Reply To:
| | RE: Would-be hacker queries.
|
| (...) problem. (...) You know, I have never really liked the factorial example of recursion. Honestly, how many times have you really needed to generate a factorial in general experience? I feel a better example is building stuff with LEGO. In this (...) (26 years ago, 11-May-99, to lugnet.robotics)
|
11 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
Active threads in Robotics
|
|
|
|