Errata

Think Complexity

Errata for Think Complexity, Second Edition

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

Color key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted By Date submitted Date corrected
Page 22
Probability of Connectivity, first block of code

The variable "bool" is undefined and should be replaced with "tf" in the code below:

def prob_connected(n, p, iters=100):
tf = [is_connected(make_random_graph(n, p))
for i in range(iters)]
return np.mean(bool)

Should read:

def prob_connected(n, p, iters=100):
tf = [is_connected(make_random_graph(n, p))
for i in range(iters)]
return np.mean(tf)

Note from the Author or Editor:
I have made the correction on Atlas.

Sebastien Mitea  May 19, 2020  Oct 23, 2026
Page 30?
Chap. 3 Small Word Graphs, Section "WS Graphs"

First item:
In the code for the function rewire(G, p) could end with "return G". Although this might have been left out on purpose.

Second item:
All references to the graph in Figure 3.2 (paragraph + Figure legend) should replace "n = 20" to "n = 10". It is a 10-node graph, not a 20-node one.

Thank you.

Kind regards,

SM

Note from the Author or Editor:
The first reported error is deliberate -- "will not fix" :)

The second is confirmed and fixed.

Sebastien Mitea  May 25, 2020  Oct 23, 2026