To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 4980
4979  |  4981
Subject: 
RE: Would-be hacker queries. (fwd)
Newsgroups: 
lugnet.robotics
Date: 
Tue, 11 May 1999 14:16:31 GMT
Original-From: 
Jim Choate <ravage@einstein(SayNoToSpam).ssz.com>
Viewed: 
732 times
  
----- Forwarded message from JR Conlin -----

Date: Tue, 11 May 1999 07:46:20 -0700
From: JR Conlin <jrconlin@email.com>
Subject: RE: Would-be hacker queries.

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.

----- End of forwarded message from JR Conlin -----

Lot's to answer your first question.

And more to the point, your example is itteration not recursion.

Recursion requires that in order to find some value (say n!) of a function we
must already know f(n-1). The power of the technique comes from its ability to
trace that chain from n > n-1 > n-2 > ... > f(1) or f(0) and then take this
value and work back up the chain. Generaly recursion is useful when it
becomes possible to describe the state of a system as a function of previous
or lower-leveled states.

    ____________________________________________________________________

       Three step plan: 1. Take over world. 2. Get lot's of cookies.
                        3. Eat the cookies.

                                                    Anonymous

       The Armadillo Group       ,::////;::-.          James Choate
       Austin, Tx               /:'///// ``::>/|/      ravage@ssz.com
       www.ssz.com            .',  ||||    `/( e\      512-451-7087
                           -====~~mm-'`-```-mm --'-
    --------------------------------------------------------------------
--
Did you check the web site first?: http://www.crynwr.com/lego-robotics



Message has 1 Reply:
  Re: Would-be hacker queries. (fwd)
 
(...) That is a rather limited version of recursion, which does not, in general, require f(n-1) to evaluate f(n). What you have described is actually (a subset of) partial recursion, which is provably incomplete (i.e. cannot implement some (...) (25 years ago, 12-May-99, to lugnet.robotics)

2 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR