Activity 01
Physical Modeling: Node Connections
Give groups paper nodes with data fields and string for pointers. They chain nodes into a list, insert between two by clipping strings, and delete by reconnecting ends. Record steps on worksheets to map to code.
Compare the advantages of linked lists over arrays for dynamic data storage.
Facilitation TipDuring Physical Modeling, have students form a human chain where each person represents a node and holds a card with data and a label for the next person in line.
What to look forProvide students with a small, pre-written code snippet that creates a linked list with three nodes. Ask them to draw the list, clearly showing the data and pointers, and then write the code to insert a new node at the beginning of the list.