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 / 5021
5020  |  5022
Subject: 
Re: Would-be hacker queries. (fwd)
Newsgroups: 
lugnet.robotics
Date: 
Wed, 12 May 1999 08:58:59 GMT
Original-From: 
Ben Laurie <BEN@ALGROUP.CO.UKspamcake>
Viewed: 
1145 times
  
Jim Choate wrote:
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.

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 algorithms).

All recursion requires is that f(...) ends up (optionally) using f(...)
in its evaluation.

Cheers,

Ben.

--
http://www.apache-ssl.org/ben.html

"My grandfather once told me that there are two kinds of people: those
who work and those who take the credit. He told me to try to be in the
first group; there was less competition there."
     - Indira Gandhi
--
Did you check the web site first?: http://www.crynwr.com/lego-robotics



Message is in Reply To:
  RE: Would-be hacker queries. (fwd)
 
----- 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 (...) (26 years ago, 11-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