The Complexity of Songs

599 views

Published on

A presentation I did for my high school English class based on Knuth's paper of the same name.

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
599
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
7
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

The Complexity of Songs

  1. 1. The Complexity of Songs By Rohan Sharma
  2. 2. Disclaimer
  3. 3. “ The Ideal Talk”
  4. 4. Introduction
  5. 5. Informative
  6. 6. Accessible
  7. 7. < 10 minutes
  8. 8. My Talk
  9. 9. No introduction
  10. 10. Uninformative
  11. 11. Arcane
  12. 12. Possibly > 10 minutes
  13. 13. Possibly > 10 minutes
  14. 14. </Disclaimer>
  15. 15. Computer Science
  16. 16. Computer Science
  17. 17. Computer Science
  18. 19. Computer Science
  19. 21. Astronomy
  20. 23. Warning: Boring Stuff Ahead!
  21. 24. (Removed picture of friend sleeping.)
  22. 25. Computational Complexity
  23. 26. Largest Member
  24. 27. 3 2 7 9 1
  25. 28. 3 2 7 9 1
  26. 29. 3 2 7 9 1
  27. 30. 3 2 7 9 1
  28. 31. 3 2 7 9 1
  29. 32. 3 2 7 9 1
  30. 33. 3 2 7 9 1
  31. 34. 3 2 7 9 1
  32. 35. Linear Time O(n)
  33. 36. Binary Search
  34. 37. 3 7 10 21 33 39 46 Search for 10
  35. 38. 3 7 10 Search for 10
  36. 39. 10 Found 10
  37. 40. Logarithmic time O(lg n)
  38. 41. (Removed picture of friend opening his mouth wide open like the Grand Canyon.)
  39. 45. The Complexity of Songs
  40. 47. How?
  41. 48. Letters?
  42. 49. Tedious!
  43. 50. Words?
  44. 51. Yes!
  45. 52. Toughest: O(n) Easiest: O(1)
  46. 54. Never gonna give you up Never gonna let you down Never gonna run around and desert you Never gonna make you cry Never gonna say goodbye Never gonna tell a lie and hurt you
  47. 55. Never gonna give you up Never gonna let you down Never gonna run around and desert you Never gonna make you cry Never gonna say goodbye Never gonna tell a lie and hurt you FAIL
  48. 56. Breakthrough
  49. 58. O(n 1/2 )
  50. 59. The Twelve Days of Christmas On the first day of Christmas my true love sent to me A partridge in a pear tree. On the second day of Christmas my true love sent to me Two turtle doves, and a partridge in a pear tree. On the third day of Christmas, my true love sent to me Three French hens, two turtle doves, and a partridge in a pear tree.
  51. 60. The Twelve Days of Christmas On the first day of Christmas my true love sent to me gift 1 On the second day of Christmas my true love sent to me gift 1, gift 2 On the third day of Christmas, my true love sent to me gift 1, gift 2, gift 3 ... On the n th day of Christmas, my true love sent to me gift 1, gift 2, gift 3, ..., gift n
  52. 61. The Twelve Days of Christmas gift 1 gift 1, gift 2 gift 1, gift 2, gift 3 ... gift 1, gift 2, gift 3, ..., gift n
  53. 62. The Twelve Days of Christmas gift 1 gift 1, gift 2 gift 1, gift 2, gift 3 ... gift 1, gift 2, gift 3, ..., gift n
  54. 63. O(n 1/2 )
  55. 64. Breakthrough #2
  56. 65. N Bottles of Beer n bottles of beer on the wall n bottles of beer! You take one down, and pass it around n - 1 bottles of beer on the wall!
  57. 66. O(lg n)
  58. 68. O(1)
  59. 69. Questions?

×