errors in Alg in "C" by Sedgewick

kwolcott at cudnvr.denver.colorado.edu kwolcott at cudnvr.denver.colorado.edu
Tue Jan 22 11:05:29 AEST 1991


In article <DAVIDD.91Jan19220640 at wolf.cs.washington.edu>, davidd at wolf.cs.washington.edu (David Doll) writes:
> Hello, I just got a copy of Algorithms in C by R. Sedgewick. I'm working with
> graph stuff and I typed in the alg on page 421 and my compiler (Ultrix 4.1 on
> a DS5000) puked on almost everything I typed in...I doubled checked my typing
> so I'm guessing that he's wrong - has anybody else had problems with this
> book? Is there any place else that would have correct(?) code? Thanks.
> 
> --
> David Doll
> Computer Science & Enginnering
> University of Washington
> Seattle, WA 98195
> M/S: FR-35
> davidd at cs.washington.edu

I read your posting with horror because I purchased this book with such
exhilaration some months ago and read through it never noticing any errors, but
not really typing in any code either.  I am appalled at the quality of the C
code on page 421!!!  I am not a great C programmer, but this half page of code
has an unbelievably large number of errors in it!  I think that these errors
can be partially attributed to blind/non-thinking translation from Pascal --
but some of these concepts would even have been right in Pascal either...I will
examine the older Pascal edition of this book to see how uncritical my reading
was there as well...

BTW, the errors I see I didn't need a compiler/lint to see -- these are quite
obvious and show a great deal of ignorance on the part of the person who wrote
this particular section (did the author really write this section or did he
farm it out to some STUPID [grad?] student?  I wish I could have gotten the
job -- I would have produced a far more professional result!)

Should one or more of us write to the author/publisher about this???

Kenneth A. Wolcott (also known as: "Mister Mountain Dew")......................
CU-Denver Computing Services,  Campus Box 169 /          boulder!pikes!kwolcott
1200 Larimer, NC2506, Denver CO 80204      //          kwolcott at cudenver.bitnet
P.O. Box 173364, Denver CO 80217-3364    /// kwolcott at pikes.denver.colorado.edu



More information about the Comp.lang.c mailing list