Activity 01
Simulation Game: The Physical Database
Give students a set of 'records' (index cards). One group organizes them as an array (numbered slots), while another uses a dictionary (key-value pairs). Time how long it takes to find a specific record when given an index versus a key.
Compare the memory management of arrays and dynamic lists.
Facilitation TipDuring the Simulation: The Physical Database, have students physically rearrange containers to see how fixed-size boxes (arrays) cannot grow, while flexible bags (lists) can expand and contract.
What to look forPresent students with two code snippets: one using a static array and another using a dynamic list to store a collection of student names. Ask them to identify which is which and write one sentence explaining why the chosen structure is appropriate for the given task.