filmov
tv
Running Times - SIGCSE 2021

Показать описание
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
***
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
Комментарии