Running Times - SIGCSE 2021

preview_player
Показать описание
Searching an array of a values is a bit like checking what's behind door number 1 (or 0) followed by door number i, which sounds a bit like Let's Make a Deal. So why not approach it as such? We present an introduction to arrays, linear search, and binary search that typically involves inviting one or two students to the front of the class to search a pair of arrays, unordered and ordered. The array itself can be implemented with pieces of paper taped to the board, behind which are numbers in chalk, or as HTML divs on a touchscreen instead, or even as actual doors. Sometimes the demo goes well, with one search taking n steps and the other log n. Sometimes the students get lucky, and both take just 1! With a bit of planning or choreography, though, the intended points can be made. And quite often do students' classmates start rooting for them along the way.

***

This is CS50, Harvard University's introduction to the intellectual enterprises of computer science and the art of programming.

***

HOW TO SUBSCRIBE

HOW TO TAKE CS50

HOW TO JOIN CS50 COMMUNITIES

HOW TO FOLLOW DAVID J. MALAN

***

CS50 SHOP

***

LICENSE

CC BY-NC-SA 4.0
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License

David J. Malan
Рекомендации по теме
Комментарии
Автор

I love how he explains even such fundamental algorithms passionately with wonderful illustrations.

JOJOSHgaming
Автор

I remember in one of the years, one student kept guessing luckily the correct number in the random search and it was hillarious

tonywoy
Автор

I love how he wants to pick a student so bad that he broke the 4th wall 😂

darkmuha
Автор

we love you sir😍😍😍
the way of your teaching👍👍

sukhbir_virdi
Автор

Thanks you my teacher you giving me valuable knowledge 😉 thanks again

TURKISTONIM
Автор

I really want to know how can i improve my English? Can you please tell me ??

adityaheart
Автор

Slow down Master. Perhaps not your whole entire audience is native english speaker...

damianbruntz