Activity 01
Simulation Game: Human Linked List
Each student is a 'node' holding a card with a value and pointing to the next student in line. The teacher calls operations: insert after node 3, delete node 5, traverse and print all values. Students must physically rearrange and update their pointer cards. Edge cases like deleting the head or tail node become immediately visible, making the required pointer updates concrete.
Why would a developer choose a linked list over a standard array for data storage?
Facilitation TipDuring the Human Linked List, stand at the back and watch where students place their hands to spot confusion between next and prev pointers immediately.
What to look forPresent students with a small, partially implemented linked list code snippet. Ask them to identify the missing lines of code required to insert a new node at the beginning of a singly linked list and explain their reasoning.