1. Modify PlayThatTune to add harmonics two octaves away from each note, with half the weight of the one-octave harmonics.
2. Birthday problem. Develop a class with appropriate static methods for studying the birthday problem (see Exercise 1.4.38)
Exercise 1.4.38
Birthday problem. Suppose that people enter an empty room until a pair of people share a birthday. On average, how many people will have to enter before there is a match? Run experiments to estimate the value of this quantity. Assume birthdays to be uniform random integers between 0 and 364.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here