From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Search trees
Date: 12 May 2005 12:28:51 -0400
Date: 2005-05-12T12:28:51-04:00 [thread overview]
Message-ID: <wcc8y2kz9vg.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: 4282fe37$0$7517$9b4e6d93@newsread2.arcor-online.net
"VBTricks.de.vu Webmaster" <vbtricks@gmx.net> writes:
> Doing this recursively is no problem, but for an exercise I now need to
> implement these functions iteratively (meaning not recursively). The
> only hint I got was to save which children trees I have not walked
> through. But after four days of thinking I still don't get it.
Do you understand how recursion works internally?
Whenever you call a procedure, the machine code pushes
some information on a stack (return address, local variables).
If you want to avoid recursion, you can simulate this process
by writing explicit stack-management code.
- Bob
next prev parent reply other threads:[~2005-05-12 16:28 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-12 6:58 Search trees VBTricks.de.vu Webmaster
2005-05-12 16:28 ` Robert A Duff [this message]
2005-05-12 17:51 ` VBTricks.de.vu Webmaster
2005-05-12 17:58 ` Robert A Duff
2005-05-12 18:07 ` VBTricks.de.vu Webmaster
2005-05-12 23:32 ` Georg Bauhaus
2005-05-13 2:02 ` Jeffrey Carter
2005-05-13 2:00 ` Jeffrey Carter
2005-05-14 14:57 ` VBTricks.de.vu Webmaster
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox