Activity 01
Formal Debate: Speed vs. Memory
Present students with a scenario -- a sorting task on a device with only 4MB of RAM -- and assign half the class to argue for a memory-efficient algorithm and half for a time-efficient one. Each group prepares a 2-minute case and responds to the opposing side, then the class votes on which solution fits the given constraint.
Evaluate how resource constraints impact algorithm selection.
Facilitation TipDuring Structured Debate: Speed vs. Memory, assign roles (time advocate, memory advocate, neutral moderator) to ensure every student participates in the reasoning process.
What to look forPresent students with a scenario: 'You need to store 1 million user IDs and quickly check if a given ID exists. You have 10MB of RAM available.' Ask them to identify two potential data structures (e.g., hash set, sorted array) and briefly explain which is better suited and why, considering the memory constraint.