comp.lang.ada
 help / color / mirror / Atom feed
From: Lutz Donnerhacke <lutz@iks-jena.de>
Subject: Re: Implementing Memorize
Date: Wed, 22 Oct 2003 19:44:39 +0000 (UTC)
Date: 2003-10-22T19:44:39+00:00	[thread overview]
Message-ID: <slrnbpdnh7.h2s.lutz@belenus.iks-jena.de> (raw)
In-Reply-To: 3F96DA49.5020101@comcast.net

* Robert I. Eachus wrote:
> Lutz Donnerhacke wrote:
>> Calculating Fibbonacci numbers recursivly is easy but braindead. Languages
>> with access to the symbol table at execution time are able to change the the
>> reccuring call with a memorize wrapper which returns already computed values
>> immediatly instead of recalculating them. In the referenced article I wrote
>> an C-Implementation of such a wrapper. Now I'm looking for a more elegant
>> version in Ada.
>
> Calculating Fibonacci numbers recursively is definitely braindead.  Try
> this approach instead.

I'd like to abstract the problem from fib to an arbitary external provided
recursive function. So I'm looking for an elegant way to define the generic
memorize.




  reply	other threads:[~2003-10-22 19:44 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-22  9:28 Implementing Memorize christoph.grein
2003-10-22 10:32 ` Lutz Donnerhacke
2003-10-22 10:48   ` Marius Amado Alves
2003-10-22 11:07     ` Lutz Donnerhacke
2003-10-22 11:33       ` Lutz Donnerhacke
2003-10-22 11:56         ` Lutz Donnerhacke
2003-10-22 12:29         ` Marius Amado Alves
2003-10-22 12:52           ` Lutz Donnerhacke
2003-10-22 13:42             ` Marius Amado Alves
2003-10-22 12:08       ` Dmitry A. Kazakov
2003-10-22 12:10         ` Lutz Donnerhacke
2003-10-22 15:23           ` Dmitry A. Kazakov
2003-10-22 19:41             ` Lutz Donnerhacke
2003-10-23 14:36               ` Dmitry A. Kazakov
2003-10-22 19:29       ` Robert I. Eachus
2003-10-22 19:44         ` Lutz Donnerhacke [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-10-22  8:52 Lutz Donnerhacke
2003-10-22 15:00 ` Frank J. Lhota
2003-10-22 17:03 ` tmoran
2003-10-23  0:25 ` Georg Bauhaus
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox