Activity 01
Simulation Game: Human Stack and Queue
Use two groups of students as physical stacks and queues. The teacher calls out operations (push, pop, enqueue, dequeue) while students physically move in or out of a line. After the simulation, students sketch the state of both structures at several checkpoints and explain what invariant each structure maintains.
Differentiate between the LIFO and FIFO principles.
Facilitation TipDuring the Human Stack and Queue simulation, clearly mark the front and back of the line with tape or signs to avoid ambiguity in direction.
What to look forProvide students with two scenarios: 1) A list of tasks to be completed in the order they arrive. 2) A web browser's back button functionality. Ask students to identify which scenario best represents a stack and which represents a queue, and to briefly explain their reasoning for each.