Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!zaphod.mps.ohio-state.edu!usc!sdd.hp.com!uakari.primate.wisc.edu!pikes!cudnvr!kwolcott From: kwolcott@cudnvr.denver.colorado.edu Newsgroups: comp.lang.c Subject: Re: errors in Alg in "C" by Sedgewick Message-ID: <1991Jan22.001229.20@cudnvr.denver.colorado.edu> Date: 22 Jan 91 00:05:29 GMT References: Distribution: comp Lines: 37 In article , davidd@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@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@cudenver.bitnet P.O. Box 173364, Denver CO 80217-3364 /// kwolcott@pikes.denver.colorado.edu