Subject:
|
RE: Would-be hacker queries.
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Tue, 11 May 1999 14:46:20 GMT
|
Original-From:
|
JR Conlin <jrconlin@email.(IHateSpam)com>
|
Viewed:
|
755 times
|
| |
![Post a public reply to this message](/news/icon-reply.gif) | |
At 05:44 PM 5/10/99 -0400, Blake Winton wrote:
>
> > Eric Lind wrote:
> > > recursion - the process of one function calling itself to solve a problem.
>
> You might want to add the recursive part of this example
> (namely 6! = 6*(5!), and 5! = 5*(4!), and so on,
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 case, you are
the function and the LEGO is the data.
The basic function you perform is sticking blocks together. So to build a
rocket ship, you first need to attach the body to the engine. To build the
engine you need to attach the intake to the exhaust, and so on. As you
progress, you may be generating very complex items, but you are still
performing the same basic action, attaching one block to another.
Aloha,
JR
- - - - - - - - - -
JR Conlin jrconlin@email.com
Techno-Athiest yahooPage: jrconlin
<http://home.earthlink.net/~jrconlin>
--
Did you check the web site first?: http://www.crynwr.com/lego-robotics
|
|
Message has 1 Reply: ![](/news/x.gif) | | RE: Would-be hacker queries.
|
| Searching and replacing is a good example of recursion. Suppose that you are editing a document and want to replace every occurrence of the word "the" with the word "then". Here is one way that the program could handle it. Function (...) (25 years ago, 11-May-99, to lugnet.robotics)
|
21 Messages in This Thread: ![You are here](/news/here.gif) ![](/news/46.gif) ![RE: Would-be hacker queries. -Joel Shafer (11-May-99 to lugnet.robotics)](/news/x.gif) ![](/news/246.gif) ![RE: Would-be hacker queries. -Ralph Hempel (11-May-99 to lugnet.robotics)](/news/x.gif) ![](/news/246.gif) ![recursion (was RE: Would-be hacker queries.) -Joel Shafer (11-May-99 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![Re: recursion (was RE: Would-be hacker queries.) -lego-robotics@crynwr.com (Paul Speed) (11-May-99 to lugnet.robotics)](/news/x.gif) ![](/news/246.gif) ![Re: recursion (was RE: Would-be hacker queries.) -John A. Tamplin (11-May-99 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![Re: recursion (was RE: Would-be hacker queries.) -Anders Isaksson (12-May-99 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![Re: recursion (was RE: Would-be hacker queries.) -John A. Tamplin (12-May-99 to lugnet.robotics)](/news/x.gif) ![](/news/246.gif) ![Re: recursion (was RE: Would-be hacker queries.) -Ben Laurie (13-May-99 to lugnet.robotics)](/news/x.gif) ![](/news/246.gif) ![Re: recursion (was RE: Would-be hacker queries.) -Malcolm S. Powell (13-May-99 to lugnet.robotics)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: recursion (was RE: Would-be hacker queries.) -Peter Hesketh (13-May-99 to lugnet.robotics)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: recursion (was RE: Would-be hacker queries.) -Ben Laurie (13-May-99 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![Re: recursion (was RE: Would-be hacker queries.) -lego-robotics@crynwr.com (Rich Clemens) (13-May-99 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![Re: recursion (was RE: Would-be hacker queries.) -Ben Laurie (13-May-99 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![Re: recursion (was RE: Would-be hacker queries.) -lego-robotics@crynwr.com (Rich Clemens) (13-May-99 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![Re: recursion (was RE: Would-be hacker queries.) -Ben Laurie (13-May-99 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![Re: recursion (was RE: Would-be hacker queries.) -lego-robotics@crynwr.com (Rich Clemens) (13-May-99 to lugnet.robotics)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: recursion (was RE: Would-be hacker queries.) -lego-robotics@crynwr.com (JR Conlin) (12-May-99 to lugnet.robotics)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/68.gif) ![RE: Would-be hacker queries. -Todd Lehman (11-May-99 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![RE: Would-be hacker queries. -John A. Tamplin (11-May-99 to lugnet.robotics)](/news/x.gif)
![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![RE: Would-be hacker queries. -Joel Shafer (11-May-99 to lugnet.robotics)](/news/x.gif)
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|