08.10.2016 Views

Foundations of Data Science

2dLYwbK

2dLYwbK

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Exercise 4.38 Consider a model <strong>of</strong> a random subset N(n, p) <strong>of</strong> integers {1, 2, . . . n} defined<br />

by independently at random including each <strong>of</strong> {1, 2, . . . n} into the set with probability<br />

p. Define what an “increasing property” <strong>of</strong> N(n, p) means. Prove that every increasing<br />

property <strong>of</strong> N(n, p) has a threshold.<br />

Exercise 4.39 N(n, p) is a model <strong>of</strong> a random subset <strong>of</strong> integers {1, 2, . . . n} defined by<br />

independently at random including each <strong>of</strong> {1, 2, . . . n} into the set with probability p.<br />

What is the threshold for N (n, p) to contain<br />

1. a perfect square,<br />

2. a perfect cube,<br />

3. an even number,<br />

4. three numbers such that x + y = z ?<br />

Exercise 4.40 Explain why the property that N (n, p) contains the integer 1 has a threshold.<br />

What is the threshold?<br />

Exercise 4.41 The Sudoku game consists <strong>of</strong> a 9 × 9 array <strong>of</strong> squares. The array is<br />

partitioned into nine 3 × 3 squares. Each small square should be filled with an integer<br />

between 1 and 9 so that each row, each column, and each 3 × 3 square contains exactly<br />

one copy <strong>of</strong> each integer. Initially the board has some <strong>of</strong> the small squares filled in in such<br />

a way that there is exactly one way to complete the assignments <strong>of</strong> integers to squares.<br />

Some simple rules can be developed to fill in the remaining squares such as if a row does<br />

not contain a given integer and if every column except one in which the square in the row<br />

is blank contains the integer, then place the integer in the remaining blank square in the<br />

row. Explore phase transitions for the Sudoku game. Some possibilities are:<br />

1. Start with a 9 × 9 array <strong>of</strong> squares with each square containing a number between<br />

1 and 9 such that no row, column, or 3 × 3 square has two copies <strong>of</strong> any integer.<br />

Develop a set <strong>of</strong> simple rules for filling in squares such as if a row does not contain<br />

a given integer and if every column except one in which the square in the row is<br />

blank contains the integer, then place the integer in the remaining blank entry in the<br />

row. How many integers can you randomly erase and your rules will still completely<br />

fill in the board?<br />

2. Generalize the Sudoku game for arrays <strong>of</strong> size n 2 × n 2 . Develop a simple set <strong>of</strong><br />

rules for completing the game. Start with a legitimate completed array and erase k<br />

entries at random. Experimentally determine the threshold for the integer k such<br />

that if only k entries <strong>of</strong> the array are erased, your set <strong>of</strong> rules will find a solution?<br />

Exercise 4.42 In a square n × n grid, each <strong>of</strong> the O(n 2 ) edges is randomly chosen to<br />

be present with probability p and absent with probability 1 − p. Consider the increasing<br />

property that there is a path from the bottom left corner to the top right corner which<br />

always goes to the right or up. Show that p = 1/2 is a threshold for the property. Is it a<br />

sharp threshold?<br />

135

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!