home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!wupost!gumby!destroyer!terminator!potts
- From: potts@itl.itd.umich.edu (Paul Potts)
- Subject: Re: Algorithms in C++ (was: text compression)
- Message-ID: <1992Sep9.124505.5026@terminator.cc.umich.edu>
- Sender: news@terminator.cc.umich.edu (Usenet Owner)
- Organization: Instructional Technology Laboratory, University of Michigan
- References: <1992Sep3.214518.9599@mnemosyne.cs.du.edu> <18j1kaINNhqd@agate.berkeley.edu> <BuA4xL.9KE@taligent.com>
- Date: Wed, 9 Sep 1992 12:45:05 GMT
- Lines: 49
-
- In article <BuA4xL.9KE@taligent.com> keith@taligent.com (Keith Rollin) writes:
- >In article <18j1kaINNhqd@agate.berkeley.edu>, werner@soe.berkeley.edu (John
- >Werner) writes:
- >>
- ...
- >>
- >> Is this book any good? I liked the original "Algorithms", but
- >> didn't like "Algorithms in C". The examples hadn't been rewritten
- >> in C; the old Pascal examples had just been transliterated into C,
- >> making them look fairly awkward. Did he do it right this time?
- >
- >I'd be interested in people's opinions, too. I have "Algorithms in C" (and like
- >it, so there, nyaah!), but when I looked at the C++ version, it looked like ol'
- >Bob just used C++ in the sense that it's mostly a superset of C. I didn't see
- >any use of classes. It's sort of like re-releasing "Algorithms" under the name
- >"Algorithms in MPW Object Pascal", and not changing any of the contents.
-
- The C++ version seems pretty weak; only a couple of the later examples use
- classes at all, and not in any terribly exciting manner. (I don't have the
- book in front of me to double-check, though; I believe he also does a little
- with operator overloading, but could be wrong). It is mainly a C
- version with tweaks. I've got the original Algorithms and Algorithms in C too:
- the only advantage I can see is that by having them tested in a particular
- language, I can just type them in. The original was in sort of a psuedo-code,
- easy to translate to Pascal and slightly more difficult to translate to C,
- but it was always important to watch out carefully for things like array
- bounds references, end-points of loops, etc. (Always a good idea to double-
- check when porting anything from C).
-
- If you've got the original or the C version, I don't see any huge benefit in
- buying the later version (although I did so for the sake of completeness).
- I think Sedgewick is mainly updating it so that students can use whatever
- language is currently popular and likely to be used. If you don't have the
- previous editions and want an algorithms book, it is a good algorithms book,
- and I would go ahead and get the latest one because it contains the latest
- revisions to the text too.
-
- >
- >--
- >Keith Rollin
- >Phantom Programmer
- >Taligent, Inc.
-
-
- --
- "...remove protective cap. Hold atomizer with thumb at base and nozzle
- between first and second fingers. Without tilting head, insert nozzle into
- nostril. Fully depress rim with a firm, even stroke and sniff deeply."
- -advice for presidential candidates from Paul Potts - potts@itl.itd.umich.edu
-