Ages 14–16 · O Level · Growing
Stable filtering with duplicates
Use the evidence in stable filtering with duplicates to select and justify a valid solution.
Understand the idea
An algorithm maintains information needed for a particular result.
Your challenge
Input records [A:keep,B:drop,A:keep,C:keep] are filtered without deduplication or reordering. Which output is correct?
- [C,A,A]
- [A,A,C]
- [A,C]
How to explore
- Distinguish selecting records from removing duplicates.
- Compare each proposed response with the complete observation or trace, rather than with only one familiar word.
- Check the selected response against the complete situation, including a case where a tempting alternative fails.
Open the activity to work with its controls and check your reasoning. Progress stays in this browser.
Keep exploring
DON’T LET THE QUESTION END HEREGive that curiosity
Open the learning space