Slide 1Slide 2Slide 3Slide 4Slide 5Slide 6Slide 7Slide 8Slide 9Slide 10Slide 11Slide 12Slide 13Slide 14Slide 15Slide 16Slide 17Slide 18Slide 19Slide 20Exemplification: Try out a problem or solution on small examples. Look for the patterns.Slide 22Slide 23Slide 24Slide 25Slide 26Slide 27Slide 28Slide 29Slide 30Slide 31Slide 32Inductive ClaimSlide 34Slide 35Slide 36Slide 37Get The Problem Right!Slide 39Intuitive, But FalseVocabulary Self-ProofingKeep track of what you actually know – remember what you merely suspectSlide 43Slide 44Slide 45Slide 46Slide 47Slide 48Slide 49Slide 50Slide 51Slide 52Slide 53Slide 54Slide 55Slide 56Slide 57Words To The WiseSlide 59The future belongs to the computer scientist who hasRepresentation: Understand the relationship between different representations of the same information or ideaAbstraction: Abstract away the inessential features of a problemSlide 63Slide 64Induction has many guises. Master their interrelationship.Modularity: Decompose a complex problem into simpler sub-problemsImprovement: The best solution comes from a process of repeatedly refining and improving solutions and proofs.Bracketing: What are the best lower and upper bounds that I can prove?Slide 69Slide 70Slide 71Slide 72Slide 73Slide 74Slide 75Slide 76Gratuitous induction proof.Slide 78Slide 80Slide 81Slide 82Slide 83Slide 84Slide 85Slide 86Switcharoo ExampleSlide 88Slide 89“Assuming the Result” ExampleSlide 91“Not Covering all Cases” ExampleSlide 93Slide 94Slide 9515-251Great Theoretical Ideas in Computer ScienceBits of Wisdom on Solving Problems, Writing Proofs, and Enjoying the Pain: How to Succeed in This Class Lecture 4 (September 6, 2006)What did our brains evolve to do?What were our brains designed to do?The human mind was designed by evolution to deal with foraging in small bands on the African Savannah . . . faulting our minds for succumbing to games of chance is like complaining that our wrists are poorly designed for getting out of handcuffsSteven Pinker“How the Mind Works”Our brains did NOT evolve to do math!Over the last 30,000 years, our brains have essentially stayed the same!Of course, this doesn’t mean you can’t teach it to do math really well…Our brains can perform simple, concrete tasks very wellAnd that’s how math should be approached!Draw simple picturesTry out small examples of the problem: What happens for n=1? n=2?Substitute concrete values for the variables: x=0, x=100, …Terry Tao (Fields Medalist, considered to be the best problem solver in the World)“I don’t have any magical ability…I look at the problem, and it looks like one I’ve already done. When nothing’s working out, then I think of a small trick that makes it a little better. I play with the problem, and after a while, I figure out what’s going on.”ExpertNoviceThe better the problem solver, the less brain activity is evident. The real masters show almost no brain activity!Simple and to the pointUse a lot of paper, or a board!!!Quick Test...Count the green squares…you will have three seconds…How many were there?Magnetsn magnets are clumpedWhen the clump is split up into n1 and n2 pieces, the energy spent is n1n2What’s the least amount of energy necessary to split the clump into single magnets?Two MagnetsTwo magnets are clumpedWhen the clump is split up into 1 and 1 pieces, the energy spent is 1What’s the least amount of energy necessary to split the clump into single magnets?Energy = 1Three MagnetsThree magnets are clumpedWhen the clump is split up into 2 and 1 pieces, the energy spent is 2What’s the least amount of energy necessary to split the clump into single magnets?Energy = 3Four MagnetsEnergy = 6411321Every time you split a magnet from m other magnets, you must spend m units of energyEvery magnet must be separated from n-1 other magnetsEnergy = n(n-1)/2Exemplification:Try out a problem or solution on small examples. Look for the patterns.Hats with Consecutive NumbersXYAlice BobAlice starts: …| X - Y | = 1Hats with Consecutive NumbersAlice BobAlice starts: …| X - Y | = 1 and X, Y > 0XYI don’t know what my number is(round 1)Hats with Consecutive NumbersAlice BobAlice starts: …| X - Y | = 1 and X, Y > 0XYI don’t know what my number is(round 2)Hats with Consecutive NumbersAlice BobAlice starts: …| X - Y | = 1 and X, Y > 0XYI don’t know what my number is(round 3)Hats with Consecutive NumbersAlice BobAlice starts: …| X - Y | = 1 and X, Y > 0XYI don’t know what my number is(round 4)…Hats with Consecutive NumbersAlice BobAlice starts: …| X - Y | = 1 and X, Y > 0XYI know what my number is!!!!!!!!(round 251)Hats with Consecutive NumbersAlice BobAlice starts: …| X - Y | = 1 and X, Y > 0XYI know what my number is!!!!!!!!(round 252)Question: What are Alice and Bob’s numbers?Imagine Alice Knew Right AwayAlice BobXYI know what my number is!!!!!!!!Then X = 2 and Y = 1| X - Y | = 1 and X, Y > 0(round 1)1,2 N,Y2,1 Y2,3 N,Y3,2 N,N,Y3,4 N,N,N,Y4,3 N,N,Y4,5 N,N,N,YInductive ClaimClaim: After 2k NOs, Alice knows that her number is at least 2k+1.After 2k+1 NOs, Bob knows that his number is at least 2k+2.Hence, after 250 NOs, Alice knows her number is at least 251. If she says YES, her number is at most 252. If Bob’s number is 250, her number must be 251. If his number is 251, her number must be 252.Exemplification:Try out a problem or solution on small examples. Look for the patterns.A volunteer, pleaseRelaxI am just going to ask you a Microsoft interview questionFour guys want to cross a bridge that can only hold two people at one time. It is pitch dark and they only have one flashlight, so people must cross either alone or in pairs (bringing the flashlight). Their walking speeds allow them to cross in 1, 2, 5, and 10 minutes, respectively. Is it possible for them to all cross in 17 minutes?Get The Problem Right!Given any context you should double check that you read/heard it correctly!You should be able to repeat the problem back to the source and have them agree that you understand the issueFour guys want to cross a bridge that can only hold two people at one time. It is pitch dark and they only have one flashlight, so people must cross either alone or in pairs (bringing the flashlight). Their walking speeds allow them to cross in 1, 2, 5, and 10 minutes, respectively. Is it possible for them to all cross in 17 minutes?Intuitive, But False“10 + 1 + 5 + 1+ 2 = 19, so the four guys just can’t cross in 17 minutes”“Even if the
View Full Document