Find an interesting exercise of your own, and add it to this page. |
1. [induction, careful reasoning] Check out [the towers of hanoi puzzle]. Prove that to move N discs from one peg to another takes at least N moves. |
Including possibly: choose any statement that we claimed in class without proof, and give a careful proof. (Extra bonus points: add your proof to the appropriate page.) 1. moved forward to /ProofsGroupsExercises2 |
Any inhabitant that can prove to himself (or herself) that he (or she) has blue eyes, screams and jumps off the cliff to his (or her) death at noon, |
Any inhabitant that can prove to himself (or herself) before noon that he (or she) has blue eyes, \ screams and jumps off the cliff to his (or her) death at exactly noon,\ |
|a) What happens, and when? (Hint: first consider what happens when there is only |
: a) What happens, and when? (Hint: first consider what happens when there is only \ |
|b) State precisely what is wrong with the following argument: |
: b) State precisely what is wrong with the following argument: |
Choose any statement that we claimed in class without proof, and give a careful proof. Extra bonus points: add your proof to the appropriate [W04ApproxAlgs? page]. |
5. Prove carefully that the following algorithm produces a minimum spanning tree of a weighted graph: # Let e1,e2,…, em be the edges in order of increasing cost. # Let T = {ej | every cycle containing ej contains some edge ek where k>j}. # Return T. |
Find an interesting exercise of your own, and add it to this page. |
6. [induction, careful reasoning] What is wrong with the following argument? Theorem: For all integers n, in any sequence of n numbers, all the numbers are the same. Proof: By induction. Base case: Clearly, for n=0 or 1, in any sequence of n numbers, all the numbers are the same. Inductive step: Let S be any sequence of n+1 numbers. Let S' be the sequence containing the first n numbers of S, let S'' be the sequence containing the last n numbers of S. By induction, all numbers in S' are the same. Let X be their common value. Likewise, by induction, all numbers in S'' are the same. Let Y be their common value. Since S' and S'' overlap, it must be that X=Y. Thus, all numbers in S are the same. |
|
Including possibly: choose any statement that we claimed in class without proof, and give a careful proof. (Extra bonus points: add your proof to the appropriate page.)
1. moved forward to /ProofsGroupsExercises2
There are no reflecting surfaces in which any inhabitant can see his or her own eye color, so the only way each inhabitant gets information about his or her own eye color is by the behavior of the other inhabitants. On the other hand, it is common knowledge that each inhabitant knows the eye colors of all inhabitants other than him- or herself.
Things are stable until one day when a visitor comes to the noon meeting and announces in front of all inhabitants "There are blue-eyed people on this island."
What the visitor said was already known. Since no new information was provided, no new deductions are possible, and therefore the announcement changes nothing. So nothing happens.
3. [probabilistic method] Say a subset S of the non-negative integers is a pairwise cover if every positive integer i can be expressed as the sum of two integers in S. Define the density of S to be the function f where f(n) = |S∩ {1,2,…,n}|. Prove the existence of a pairwise cover whose density is o(n).
Hint: Generate a random S as follows: for each i independently, put i in S with some probability p(i). Show that with positive probability S is a pairwise cover with density o(n).
6. [induction, careful reasoning] What is wrong with the following argument?
Theorem: For all integers n, in any sequence of n numbers, all the numbers are the same. Proof: By induction. Base case: Clearly, for n=0 or 1, in any sequence of n numbers, all the numbers are the same. Inductive step: Let S be any sequence of n+1 numbers. Let S' be the sequence containing the first n numbers of S, let S'' be the sequence containing the last n numbers of S. By induction, all numbers in S' are the same. Let X be their common value. Likewise, by induction, all numbers in S'' are the same. Let Y be their common value. Since S' and S'' overlap, it must be that X=Y. Thus, all numbers in S are the same.