home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.programming
- Path: sparky!uunet!caen!uwm.edu!psuvax1!schwartz
- From: schwartz@roke.cs.psu.edu (Scott Schwartz)
- Subject: Re: Teaching the basics
- In-Reply-To: markh@csd4.csd.uwm.edu's message of Tue, 25 Aug 1992 17:42:43 GMT
- Message-ID: <BtJyAM.MGv@cs.psu.edu>
- Sender: news@cs.psu.edu (Usenet)
- Nntp-Posting-Host: roke.cs.psu.edu
- References: <1992Aug19.154830.11787@uwm.edu> <MJN.92Aug23031941@pseudo.uucp>
- <7116@charon.cwi.nl> <1992Aug25.174243.10436@uwm.edu>
- Date: Tue, 25 Aug 1992 19:35:00 GMT
- Lines: 7
-
- markh@csd4.csd.uwm.edu (Mark) writes:
- Wrong. In fact, the non-recursive version (tree search) is far smaller and
- simpler. No stacks either.
-
- Actually, the search algorithm is tail recursive, so you can code it
- in the straightforward (recursive) way and let the compiler generate
- the iterative code. Gcc and Sun's CC do this.
-