The Complexity of Songs By Rohan Sharma
Disclaimer
“ The Ideal Talk”
Introduction
Informative
Accessible
< 10 minutes
My Talk
No introduction
Uninformative
Arcane
Possibly > 10 minutes
Possibly > 10 minutes
</Disclaimer>
Computer Science
Computer Science
Computer Science
 
Computer Science
 
Astronomy
 
Warning: Boring Stuff Ahead!
 
Computational  Complexity
Largest Member
3 2 7 9 1
3 2 7 9 1
3 2 7 9 1
3 2 7 9 1
3 2 7 9 1
3 2 7 9 1
3 2 7 9 1
3 2 7 9 1
Linear Time O(n)
Binary Search
3 7 10 21 33 39 46 Search for  10
3 7 10 Search for  10
10 Found  10
Logarithmic time O(lg n)
 
 
 
 
The Complexity of Songs
 
How?
Letters?
Tedious!
Words?
Yes!
Toughest:   O(n)   Easiest:  O(1)
 
Never gonna give you up Never gonna let you down Never gonna run around and desert you Never gonna make you cry Never gonn...
Never gonna give you up Never gonna let you down Never gonna run around and desert you Never gonna make you cry Never gonn...
Breakthrough
 
O(n 1/2 )
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 s...
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...
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
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
O(n 1/2 )
Breakthrough #2
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...
O(lg n)
 
O(1)
Questions?
Upcoming SlideShare
Loading in …5
×

The Complexity of Songs

604
-1

Published on

Slides for a small high school presentation I did for my English class (based on Knuth's paper of the same name).

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
604
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
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. 25. Computational Complexity
  22. 26. Largest Member
  23. 27. 3 2 7 9 1
  24. 28. 3 2 7 9 1
  25. 29. 3 2 7 9 1
  26. 30. 3 2 7 9 1
  27. 31. 3 2 7 9 1
  28. 32. 3 2 7 9 1
  29. 33. 3 2 7 9 1
  30. 34. 3 2 7 9 1
  31. 35. Linear Time O(n)
  32. 36. Binary Search
  33. 37. 3 7 10 21 33 39 46 Search for 10
  34. 38. 3 7 10 Search for 10
  35. 39. 10 Found 10
  36. 40. Logarithmic time O(lg n)
  37. 45. The Complexity of Songs
  38. 47. How?
  39. 48. Letters?
  40. 49. Tedious!
  41. 50. Words?
  42. 51. Yes!
  43. 52. Toughest: O(n) Easiest: O(1)
  44. 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
  45. 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
  46. 56. Breakthrough
  47. 58. O(n 1/2 )
  48. 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.
  49. 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
  50. 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
  51. 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
  52. 63. O(n 1/2 )
  53. 64. Breakthrough #2
  54. 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!
  55. 66. O(lg n)
  56. 68. O(1)
  57. 69. Questions?

×