Activity 01
Physical Simulation: Block Arrays vs Chain Lists
Provide index cards as elements; students tape cards edge-to-edge for arrays and link with strings for lists. Groups perform 10 insertions and deletions at random positions, timing each process and noting physical challenges. Debrief with class chart of average times.
Compare the memory allocation and access patterns of arrays versus linked lists.
Facilitation TipIn the Physical Simulation, have students physically move labeled blocks or chain links so the O(n) shift in arrays versus O(1) insertions in linked lists becomes visibly different.
What to look forPresent students with scenarios like 'storing a fixed number of user profiles' or 'managing a playlist where songs are frequently added or removed'. Ask them to identify which data structure, array or linked list, would be more appropriate and briefly explain why, citing memory or access patterns.