1.1.2 Using a command-line argument
1.2.2 Integer multiplication and division
1.2.5 Casting to get a random integer
1.3.8 Gambler’s ruin simulation
1.4.1 Sampling without replacement
1.4.2 Coupon collector simulation
1.4.4 Self-avoiding random walks
1.5.1 Generating a random sequence
1.5.3 Averaging a stream of numbers
1.5.5 Standard input-to-drawing filter
1.5.7 Digital signal processing
1.6.1 Computing the transition matrix
1.6.2 Simulating a random surfer
2.1.1 Harmonic numbers (revisited)
2.1.3 Coupon collector (revisited)
2.1.4 Play that tune (revisited)
2.2.3 Iterated function systems
2.2.5 Plotting data values in an array
2.3.6 Longest common subsequence
2.4.2 Vertical percolation detection
2.4.4 Percolation probability estimate
3.1.1 Identifying a potential gene
3.1.4 Converting color to grayscale
3.1.8 Screen scraping for stock quotes
3.3.1 Complex number (alternate)
Algorithms and Data Structures
4.1.2 Validating a doubling hypothesis
4.2.1 Binary search (20 questions)
4.2.3 Binary search (sorted array)
4.2.5 Doubling test for insertion sort
4.3.1 Stack of strings (array)
4.3.2 Stack of strings (linked list)
4.3.3 Stack of strings (resizing array)
4.3.6 Generic FIFO queue (linked list)
4.3.8 Load balancing simulation
Case Study: Small-World Phenomenon
4.5.2 Using a graph to invert an index