🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.pascal.borland
Article #655

Re: WHAT COULD BE WRONG?

#655
From: Huub van Dooren
Date: Fri, 19 May 2000 00:00
59 lines
2668 bytes
Dr John Stockton heeft geschreven in bericht ...
>JRS:  In article <8g1qgd$bmh$1@news.IAEhv.nl> of Fri, 19 May
2000
>00:36:45 seen in news:comp.lang.pascal.borland, Huub van Dooren
><hvdooren@iae.nl> wrote:
>>>Argh! That has to be the absolutely worst example for
recursion.
>>It
>>>takes exponential time to solve a linear problem when one uses
>>>recursion with Fibonacci numbers.
>>>
>>
>>You're right. Bad example. But almost every textbook uses this
>>as an introduction to (the problems of using) recursion. BTW
>>I never found any use for them in all of programs anyhow.  ;-)
>
>
>They are useful if you have a function known to have a single
maximum
>(and no minima) within a given range, and you wish to locate
that
>maximum to within a predefined accuracy while using the minimum
number
>of function evaluations.
>

Is this a parabolic function, or what? Or are there relative
maxima near the
absolute maximum. Or is it a compound (is that the right word?)
function?

>At each step, you are considering two evaluated points within
the
>remaining range, dividing the range into three, and the maximum
cannot
>lie between the smaller and its nearer end-of-range.
>
>The larger point is reused in the next step, and Fibonacci-based
>positioning ensures that each step reduces the range as much as
>possible.  In the final step, the points are at 1/3 & 2/3 of
possible
>range.
>

Never had Fibonacci-based successive substitution at school. I
only had
Riemann-suc-sub and Newton-Raphson-method. As I do recall (about
15 years ago, now), the convergency to the maximum, is reached
much
faster by using f'(x) to determine the next step.
>
>They are also useful in the design of sunflowers and pine-cones.
>

Tell my about the pine-cones and I will tell you about the
rabbits. 8-)


Greetings. Huub.
Technical Details
Message-ID: <8g45bi$e36$1@news.IAEhv.nl>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <D0OU4.6707$C9.118410@news1.online.no><8g100h$hj5$1@news.iaehv.nl> <8g1g4a$p63$1@kruuna.Helsinki.FI><8g1qgd$bmh$1@news.IAEhv.nl> <Lb$OqFEz6TJ5Ewlk@merlyn.demon.co.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1097b9,1d4aea8798c741f5
X-Google-Attributes: gid1097b9,public
X-Google-Thread: 111659,1d4aea8798c741f5
X-Google-Attributes: gid111659,public
From: "Huub van Dooren" <hvdooren@iae.nl>
Subject: Re: WHAT COULD BE WRONG?
Date: 2000/05/19
Message-ID: <8g45bi$e36$1@news.IAEhv.nl>
X-Deja-AN: 625518318
Content-Transfer-Encoding: 7bit
References: <D0OU4.6707$C9.118410@news1.online.no><8g100h$hj5$1@news.iaehv.nl> <8g1g4a$p63$1@kruuna.Helsinki.FI><8g1qgd$bmh$1@news.IAEhv.nl> <Lb$OqFEz6TJ5Ewlk@merlyn.demon.co.uk>
Content-Type: text/plain; charset="iso-8859-1"
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Organization: MyLittleShack, Eersel, NL
Mime-Version: 1.0
Newsgroups: comp.lang.pascal.borland,dk.edb.programmering.pascal