SlideShare ist ein Scribd-Unternehmen logo
1 von 69
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 gonna say goodbye Never gonna tell a lie and hurt you
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
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 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.
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
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 of beer on the wall!
O(lg n)
 
O(1)
Questions?

Weitere ähnliche Inhalte

Andere mochten auch

2008台灣華語文教學年會暨研討會議程
2008台灣華語文教學年會暨研討會議程2008台灣華語文教學年會暨研討會議程
2008台灣華語文教學年會暨研討會議程SCE, PCCU
 
Plickers操作秘技
Plickers操作秘技Plickers操作秘技
Plickers操作秘技SCE, PCCU
 
CSD_部落格也是教學平台-嵌入工具實作
CSD_部落格也是教學平台-嵌入工具實作CSD_部落格也是教學平台-嵌入工具實作
CSD_部落格也是教學平台-嵌入工具實作SCE, PCCU
 
空大_聯大2-1投影片
空大_聯大2-1投影片空大_聯大2-1投影片
空大_聯大2-1投影片SCE, PCCU
 
Tcsl online handout_1002
Tcsl online handout_1002Tcsl online handout_1002
Tcsl online handout_1002SCE, PCCU
 
進階華語數位課程開發工具及教學服務運用實務
進階華語數位課程開發工具及教學服務運用實務進階華語數位課程開發工具及教學服務運用實務
進階華語數位課程開發工具及教學服務運用實務SCE, PCCU
 
Quizizz的操作方式
Quizizz的操作方式Quizizz的操作方式
Quizizz的操作方式SCE, PCCU
 

Andere mochten auch (7)

2008台灣華語文教學年會暨研討會議程
2008台灣華語文教學年會暨研討會議程2008台灣華語文教學年會暨研討會議程
2008台灣華語文教學年會暨研討會議程
 
Plickers操作秘技
Plickers操作秘技Plickers操作秘技
Plickers操作秘技
 
CSD_部落格也是教學平台-嵌入工具實作
CSD_部落格也是教學平台-嵌入工具實作CSD_部落格也是教學平台-嵌入工具實作
CSD_部落格也是教學平台-嵌入工具實作
 
空大_聯大2-1投影片
空大_聯大2-1投影片空大_聯大2-1投影片
空大_聯大2-1投影片
 
Tcsl online handout_1002
Tcsl online handout_1002Tcsl online handout_1002
Tcsl online handout_1002
 
進階華語數位課程開發工具及教學服務運用實務
進階華語數位課程開發工具及教學服務運用實務進階華語數位課程開發工具及教學服務運用實務
進階華語數位課程開發工具及教學服務運用實務
 
Quizizz的操作方式
Quizizz的操作方式Quizizz的操作方式
Quizizz的操作方式
 

Ähnlich wie The Complexity of Songs

99 Best Text Messages To Send Girls for Instant Response
99 Best Text Messages To Send Girls for Instant Response99 Best Text Messages To Send Girls for Instant Response
99 Best Text Messages To Send Girls for Instant ResponseRAMESH K.
 
Blind Test Rules Of The Game
Blind Test   Rules Of The GameBlind Test   Rules Of The Game
Blind Test Rules Of The Gamesdugot
 
Breaking News- December 2013
Breaking News- December 2013Breaking News- December 2013
Breaking News- December 2013John Yunker
 
Choral st charles
Choral st charlesChoral st charles
Choral st charlesJakie Ubina
 
Film quotes - 'A Touch of Frost' , 'Midsummer Murders' - M. van Eijk
Film quotes   - 'A Touch of Frost' ,  'Midsummer Murders' - M. van EijkFilm quotes   - 'A Touch of Frost' ,  'Midsummer Murders' - M. van Eijk
Film quotes - 'A Touch of Frost' , 'Midsummer Murders' - M. van EijkZadkine
 

Ähnlich wie The Complexity of Songs (7)

99 Best Text Messages To Send Girls for Instant Response
99 Best Text Messages To Send Girls for Instant Response99 Best Text Messages To Send Girls for Instant Response
99 Best Text Messages To Send Girls for Instant Response
 
Grammar three sb example
Grammar three sb exampleGrammar three sb example
Grammar three sb example
 
Precal 5-6.pptx
Precal 5-6.pptxPrecal 5-6.pptx
Precal 5-6.pptx
 
Blind Test Rules Of The Game
Blind Test   Rules Of The GameBlind Test   Rules Of The Game
Blind Test Rules Of The Game
 
Breaking News- December 2013
Breaking News- December 2013Breaking News- December 2013
Breaking News- December 2013
 
Choral st charles
Choral st charlesChoral st charles
Choral st charles
 
Film quotes - 'A Touch of Frost' , 'Midsummer Murders' - M. van Eijk
Film quotes   - 'A Touch of Frost' ,  'Midsummer Murders' - M. van EijkFilm quotes   - 'A Touch of Frost' ,  'Midsummer Murders' - M. van Eijk
Film quotes - 'A Touch of Frost' , 'Midsummer Murders' - M. van Eijk
 

Kürzlich hochgeladen

Kolkata Call Girl Howrah 👉 8250192130 ❣️💯 Available With Room 24×7
Kolkata Call Girl Howrah 👉 8250192130 ❣️💯 Available With Room 24×7Kolkata Call Girl Howrah 👉 8250192130 ❣️💯 Available With Room 24×7
Kolkata Call Girl Howrah 👉 8250192130 ❣️💯 Available With Room 24×7Riya Pathan
 
Call Girl Nashik Saloni 7001305949 Independent Escort Service Nashik
Call Girl Nashik Saloni 7001305949 Independent Escort Service NashikCall Girl Nashik Saloni 7001305949 Independent Escort Service Nashik
Call Girl Nashik Saloni 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Low Rate Call Girls Gulbarga Anika 8250192130 Independent Escort Service Gulb...
Low Rate Call Girls Gulbarga Anika 8250192130 Independent Escort Service Gulb...Low Rate Call Girls Gulbarga Anika 8250192130 Independent Escort Service Gulb...
Low Rate Call Girls Gulbarga Anika 8250192130 Independent Escort Service Gulb...Riya Pathan
 
College Call Girls New Alipore - For 7001035870 Cheap & Best with original Ph...
College Call Girls New Alipore - For 7001035870 Cheap & Best with original Ph...College Call Girls New Alipore - For 7001035870 Cheap & Best with original Ph...
College Call Girls New Alipore - For 7001035870 Cheap & Best with original Ph...anamikaraghav4
 
Kolkata Call Girl Bara Bazar 👉 8250192130 ❣️💯 Available With Room 24×7
Kolkata Call Girl Bara Bazar 👉 8250192130 ❣️💯 Available With Room 24×7Kolkata Call Girl Bara Bazar 👉 8250192130 ❣️💯 Available With Room 24×7
Kolkata Call Girl Bara Bazar 👉 8250192130 ❣️💯 Available With Room 24×7Riya Pathan
 
(KRITI) Pimpri Chinchwad Call Girls Just Call 7001035870 [ Cash on Delivery ]...
(KRITI) Pimpri Chinchwad Call Girls Just Call 7001035870 [ Cash on Delivery ]...(KRITI) Pimpri Chinchwad Call Girls Just Call 7001035870 [ Cash on Delivery ]...
(KRITI) Pimpri Chinchwad Call Girls Just Call 7001035870 [ Cash on Delivery ]...ranjana rawat
 
Russian Call Girl South End Park - Call 8250192130 Rs-3500 with A/C Room Cash...
Russian Call Girl South End Park - Call 8250192130 Rs-3500 with A/C Room Cash...Russian Call Girl South End Park - Call 8250192130 Rs-3500 with A/C Room Cash...
Russian Call Girl South End Park - Call 8250192130 Rs-3500 with A/C Room Cash...anamikaraghav4
 
Call Girls Service Bantala - Call 8250192130 Rs-3500 with A/C Room Cash on De...
Call Girls Service Bantala - Call 8250192130 Rs-3500 with A/C Room Cash on De...Call Girls Service Bantala - Call 8250192130 Rs-3500 with A/C Room Cash on De...
Call Girls Service Bantala - Call 8250192130 Rs-3500 with A/C Room Cash on De...anamikaraghav4
 
Call Girls Nashik Gayatri 7001305949 Independent Escort Service Nashik
Call Girls Nashik Gayatri 7001305949 Independent Escort Service NashikCall Girls Nashik Gayatri 7001305949 Independent Escort Service Nashik
Call Girls Nashik Gayatri 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Beyond Bar & Club Udaipur CaLL GiRLS 09602870969
Beyond Bar & Club Udaipur CaLL GiRLS 09602870969Beyond Bar & Club Udaipur CaLL GiRLS 09602870969
Beyond Bar & Club Udaipur CaLL GiRLS 09602870969Apsara Of India
 
Call Girls In Karnal O8860008073 Sector 6 7 8 9 Karnal Escorts
Call Girls In Karnal O8860008073 Sector 6 7 8 9 Karnal EscortsCall Girls In Karnal O8860008073 Sector 6 7 8 9 Karnal Escorts
Call Girls In Karnal O8860008073 Sector 6 7 8 9 Karnal EscortsApsara Of India
 
GV'S 24 CLUB & BAR CONTACT 09602870969 CALL GIRLS IN UDAIPUR ESCORT SERVICE
GV'S 24 CLUB & BAR CONTACT 09602870969 CALL GIRLS IN UDAIPUR ESCORT SERVICEGV'S 24 CLUB & BAR CONTACT 09602870969 CALL GIRLS IN UDAIPUR ESCORT SERVICE
GV'S 24 CLUB & BAR CONTACT 09602870969 CALL GIRLS IN UDAIPUR ESCORT SERVICEApsara Of India
 
Independent Hatiara Escorts ✔ 8250192130 ✔ Full Night With Room Online Bookin...
Independent Hatiara Escorts ✔ 8250192130 ✔ Full Night With Room Online Bookin...Independent Hatiara Escorts ✔ 8250192130 ✔ Full Night With Room Online Bookin...
Independent Hatiara Escorts ✔ 8250192130 ✔ Full Night With Room Online Bookin...Riya Pathan
 
Call Girls In Goa 9316020077 Goa Call Girl By Indian Call Girls Goa
Call Girls In Goa  9316020077 Goa  Call Girl By Indian Call Girls GoaCall Girls In Goa  9316020077 Goa  Call Girl By Indian Call Girls Goa
Call Girls In Goa 9316020077 Goa Call Girl By Indian Call Girls Goasexy call girls service in goa
 
Beautiful 😋 Call girls in Lahore 03210033448
Beautiful 😋 Call girls in Lahore 03210033448Beautiful 😋 Call girls in Lahore 03210033448
Beautiful 😋 Call girls in Lahore 03210033448ont65320
 
Private Call Girls Durgapur - 8250192130 Escorts Service with Real Photos and...
Private Call Girls Durgapur - 8250192130 Escorts Service with Real Photos and...Private Call Girls Durgapur - 8250192130 Escorts Service with Real Photos and...
Private Call Girls Durgapur - 8250192130 Escorts Service with Real Photos and...Riya Pathan
 
(DIVYA) Dhanori Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(DIVYA) Dhanori Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(DIVYA) Dhanori Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(DIVYA) Dhanori Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
Low Rate Call Girls Ajmer Anika 8250192130 Independent Escort Service Ajmer
Low Rate Call Girls Ajmer Anika 8250192130 Independent Escort Service AjmerLow Rate Call Girls Ajmer Anika 8250192130 Independent Escort Service Ajmer
Low Rate Call Girls Ajmer Anika 8250192130 Independent Escort Service AjmerRiya Pathan
 

Kürzlich hochgeladen (20)

Call Girls Chirag Delhi Delhi WhatsApp Number 9711199171
Call Girls Chirag Delhi Delhi WhatsApp Number 9711199171Call Girls Chirag Delhi Delhi WhatsApp Number 9711199171
Call Girls Chirag Delhi Delhi WhatsApp Number 9711199171
 
Goa Call Girls 9316020077 Call Girls In Goa By Russian Call Girl in goa
Goa Call Girls 9316020077 Call Girls  In Goa By Russian Call Girl in goaGoa Call Girls 9316020077 Call Girls  In Goa By Russian Call Girl in goa
Goa Call Girls 9316020077 Call Girls In Goa By Russian Call Girl in goa
 
Kolkata Call Girl Howrah 👉 8250192130 ❣️💯 Available With Room 24×7
Kolkata Call Girl Howrah 👉 8250192130 ❣️💯 Available With Room 24×7Kolkata Call Girl Howrah 👉 8250192130 ❣️💯 Available With Room 24×7
Kolkata Call Girl Howrah 👉 8250192130 ❣️💯 Available With Room 24×7
 
Call Girl Nashik Saloni 7001305949 Independent Escort Service Nashik
Call Girl Nashik Saloni 7001305949 Independent Escort Service NashikCall Girl Nashik Saloni 7001305949 Independent Escort Service Nashik
Call Girl Nashik Saloni 7001305949 Independent Escort Service Nashik
 
Low Rate Call Girls Gulbarga Anika 8250192130 Independent Escort Service Gulb...
Low Rate Call Girls Gulbarga Anika 8250192130 Independent Escort Service Gulb...Low Rate Call Girls Gulbarga Anika 8250192130 Independent Escort Service Gulb...
Low Rate Call Girls Gulbarga Anika 8250192130 Independent Escort Service Gulb...
 
College Call Girls New Alipore - For 7001035870 Cheap & Best with original Ph...
College Call Girls New Alipore - For 7001035870 Cheap & Best with original Ph...College Call Girls New Alipore - For 7001035870 Cheap & Best with original Ph...
College Call Girls New Alipore - For 7001035870 Cheap & Best with original Ph...
 
Kolkata Call Girl Bara Bazar 👉 8250192130 ❣️💯 Available With Room 24×7
Kolkata Call Girl Bara Bazar 👉 8250192130 ❣️💯 Available With Room 24×7Kolkata Call Girl Bara Bazar 👉 8250192130 ❣️💯 Available With Room 24×7
Kolkata Call Girl Bara Bazar 👉 8250192130 ❣️💯 Available With Room 24×7
 
(KRITI) Pimpri Chinchwad Call Girls Just Call 7001035870 [ Cash on Delivery ]...
(KRITI) Pimpri Chinchwad Call Girls Just Call 7001035870 [ Cash on Delivery ]...(KRITI) Pimpri Chinchwad Call Girls Just Call 7001035870 [ Cash on Delivery ]...
(KRITI) Pimpri Chinchwad Call Girls Just Call 7001035870 [ Cash on Delivery ]...
 
Russian Call Girl South End Park - Call 8250192130 Rs-3500 with A/C Room Cash...
Russian Call Girl South End Park - Call 8250192130 Rs-3500 with A/C Room Cash...Russian Call Girl South End Park - Call 8250192130 Rs-3500 with A/C Room Cash...
Russian Call Girl South End Park - Call 8250192130 Rs-3500 with A/C Room Cash...
 
Call Girls Service Bantala - Call 8250192130 Rs-3500 with A/C Room Cash on De...
Call Girls Service Bantala - Call 8250192130 Rs-3500 with A/C Room Cash on De...Call Girls Service Bantala - Call 8250192130 Rs-3500 with A/C Room Cash on De...
Call Girls Service Bantala - Call 8250192130 Rs-3500 with A/C Room Cash on De...
 
Call Girls Nashik Gayatri 7001305949 Independent Escort Service Nashik
Call Girls Nashik Gayatri 7001305949 Independent Escort Service NashikCall Girls Nashik Gayatri 7001305949 Independent Escort Service Nashik
Call Girls Nashik Gayatri 7001305949 Independent Escort Service Nashik
 
Beyond Bar & Club Udaipur CaLL GiRLS 09602870969
Beyond Bar & Club Udaipur CaLL GiRLS 09602870969Beyond Bar & Club Udaipur CaLL GiRLS 09602870969
Beyond Bar & Club Udaipur CaLL GiRLS 09602870969
 
Call Girls In Karnal O8860008073 Sector 6 7 8 9 Karnal Escorts
Call Girls In Karnal O8860008073 Sector 6 7 8 9 Karnal EscortsCall Girls In Karnal O8860008073 Sector 6 7 8 9 Karnal Escorts
Call Girls In Karnal O8860008073 Sector 6 7 8 9 Karnal Escorts
 
GV'S 24 CLUB & BAR CONTACT 09602870969 CALL GIRLS IN UDAIPUR ESCORT SERVICE
GV'S 24 CLUB & BAR CONTACT 09602870969 CALL GIRLS IN UDAIPUR ESCORT SERVICEGV'S 24 CLUB & BAR CONTACT 09602870969 CALL GIRLS IN UDAIPUR ESCORT SERVICE
GV'S 24 CLUB & BAR CONTACT 09602870969 CALL GIRLS IN UDAIPUR ESCORT SERVICE
 
Independent Hatiara Escorts ✔ 8250192130 ✔ Full Night With Room Online Bookin...
Independent Hatiara Escorts ✔ 8250192130 ✔ Full Night With Room Online Bookin...Independent Hatiara Escorts ✔ 8250192130 ✔ Full Night With Room Online Bookin...
Independent Hatiara Escorts ✔ 8250192130 ✔ Full Night With Room Online Bookin...
 
Call Girls In Goa 9316020077 Goa Call Girl By Indian Call Girls Goa
Call Girls In Goa  9316020077 Goa  Call Girl By Indian Call Girls GoaCall Girls In Goa  9316020077 Goa  Call Girl By Indian Call Girls Goa
Call Girls In Goa 9316020077 Goa Call Girl By Indian Call Girls Goa
 
Beautiful 😋 Call girls in Lahore 03210033448
Beautiful 😋 Call girls in Lahore 03210033448Beautiful 😋 Call girls in Lahore 03210033448
Beautiful 😋 Call girls in Lahore 03210033448
 
Private Call Girls Durgapur - 8250192130 Escorts Service with Real Photos and...
Private Call Girls Durgapur - 8250192130 Escorts Service with Real Photos and...Private Call Girls Durgapur - 8250192130 Escorts Service with Real Photos and...
Private Call Girls Durgapur - 8250192130 Escorts Service with Real Photos and...
 
(DIVYA) Dhanori Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(DIVYA) Dhanori Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(DIVYA) Dhanori Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(DIVYA) Dhanori Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
Low Rate Call Girls Ajmer Anika 8250192130 Independent Escort Service Ajmer
Low Rate Call Girls Ajmer Anika 8250192130 Independent Escort Service AjmerLow Rate Call Girls Ajmer Anika 8250192130 Independent Escort Service Ajmer
Low Rate Call Girls Ajmer Anika 8250192130 Independent Escort Service Ajmer
 

The Complexity of Songs