jeffgerickson / algorithms

Bug-tracking for Jeff's algorithms book, notes, etc.
7.91k stars 1.02k forks source link

[Oops.] Syntax error in Ch.0 Ex.4 (the new one) #198

Open raenye opened 4 years ago

raenye commented 4 years ago

Please verify that the error is present in the most recent revision before reporting. Yes, here: http://jeffe.cs.illinois.edu/teaching/algorithms/book/00-intro.pdf

Chapter number or note title: 00-intro

Page number: 19, at the very bottom

Error description: The value P is used before being defined:

...the standard divisor D = P/R. In the following problems, let P = sum_i Pop[i] denote the total population of all n states,

Suggested fix (if any): define P earlier.