1 / 78

Introduction: Content And Method

Great Theoretical Ideas In Computer Science. Introduction: Content And Method. Professors Steven Rudich and Bruce Maggs Carnegie Mellon University. Lecture 1. CS 15-251. Moral: BE PUNCTUAL!. Or else you will miss the magic tricks that happen at 3:00pm sharp.

radley
Télécharger la présentation

Introduction: Content And Method

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Great Theoretical Ideas In Computer Science Introduction:Content And Method Professors Steven Rudich and Bruce Maggs Carnegie Mellon University Lecture1 CS 15-251

  2. Moral:BE PUNCTUAL! • Or else you will miss the magic tricks that happen at 3:00pm sharp. • Sit close-up: some of the tricks are hard to see from the back.

  3. Course Staff • Steven RudichBruce Maggs • A: Cory Williams • B: Pat Riley • C: Jason Crawford • D: Dominic Mazzoni • *: Ke Yang

  4. A volunteer, please.

  5. Putting You On The Spot • Four guys want to cross a bridge in the dark of night. They have one flashlight and the bridge can hold only two people at once. 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 in such a way that no one walks in the dark?

  6. You have one minute to solve this problem • Four guys want to cross a bridge in the dark of night. They have one flashlight and the bridge can hold only two people at once. 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 in such a way that no one walks in the dark?

  7. That was a Microsoft interview question.

  8. That was a Microsoft interview question. • Why do you think that they ask such questions, as opposed to asking for a piece of code to do binary search?

  9. The future belongs to the computer scientist who has • Content: An up to date grasp of fundamental problems and solutions • Method: Principles and techniques to solve the vast array of unfamiliar problems that arise in a rapidly changing field

  10. Course Content • A survey of fundamental theoretical ideas in Computer Science as they occur in a variety of important applications • An introduction to discrete mathematics • Effective problem solving, learning, and communication techniques

  11. Please feel free to ask questions!

  12. Course Document • Let’s examine it together:

  13. PROS Challenging Cutting Edge Syllabus – No Text Like It Important – Good For Your Future Fun CONS Very Hard No Text -- Impairs Learning For Some Students Lowers GPA – Bad For Your Future “Like Hitting Myself In The Head With A Brick” Should I Take The Course?

  14. Course Content • A survey of fundamental theoretical ideas in Computer Science as they occur in a variety of important applications • An introduction to discrete mathematics • Effective problem solving, learning, and communication techniques

  15. A survey of fundamental theoretical ideas in Computer Science as they occur in a variety of important applications For example . . .

  16. Time Input Size Growth Rates

  17. Recursion ? ?

  18. Randomization

  19. Hashing

  20. Self Reference

  21. Reduction =

  22. Parallel Versus Sequential Work

  23. Dating

  24. Private Communication

  25. Factoring / Multiplication p, q pq

  26. An introduction to discrete mathematics

  27. Count without counting:Estimate, Calculate, Analyze

  28. Induction has many guises.Master their interrelationship. • Formal Arguments • Loop Invariants • Recursion • Algorithm Design • Recurrences

  29. Infinity

  30. Map Coloring

  31. Effective problem solving, learning, and communication techniques

  32. Exemplification:Try out a problem or solution on small examples.

  33. Representation:Understand the relationship between different representations of the same information or idea 1 2 3

  34. Modularity:Decompose a complex problem into simpler subproblems

  35. Abstraction: Abstract away the inessential features of a problem =

  36. Refinement:The best solution comes from a process of repeatedly refining and inventing alternative solutions

  37. Build your toolboxof abstract structures and concepts. Know the capacities and limits of each tool.

  38. = Similarity:A significant form of intellectual progress is to be able to classify and manipulate distinct objects with regard to a sense in which they are similar. 13 = 21 (modulo 2)

  39. Please feel free to ask questions!

  40. ((( ))) Stationary Hand Wiggling Hand You have a question or comment of any nature You have something relevant to say to what is being spoken now

  41. How many yellow dots on this page?

  42. Gauss

  43. 1 + 2 + 3 + . . . + n-1 + n = S n + n-1 + n-2 + . . . + 2 + 1 = S (n+1) + (n+1) + (n+1) + . . . + (n+1) + (n+1) = 2S n (n+1) = 2S

  44. 1 + 2 + 3 + . . . + n-1 + n = S n + n-1 + n-2 + . . . + 2 + 1 = S (n+1) + (n+1) + (n+1) + . . . + (n+1) + (n+1) = 2S n (n+1) = 2S

  45. 1 + 2 + 3 + . . . + n-1 + n = S n + n-1 + n-2 + . . . + 2 + 1 = S (n+1) + (n+1) + (n+1) + . . . + (n+1) + (n+1) = 2S n (n+1) = 2S

  46. 1 + 2 + 3 + . . . + n-1 + n = S n + n-1 + n-2 + . . . + 2 + 1 = S (n+1) + (n+1) + (n+1) + . . . + (n+1) + (n+1) = 2S n (n+1) = 2S

  47. Algebraic argument Let’s restate this argument using a geometric representation

  48. = number of white dots. 1 2 . . . . . . . . n

  49. = number of white dots = number of yellow dots n . . . . . . . 2 1 1 2 . . . . . . . . n

More Related