Grade 7 Computing
Fast lookups
Use the ordering rule to choose the next node while searching.
Sources
Adapted from CS Unplugged – Binary search trees · Finding and inserting values in a search tree, with new datasets · Computer Science Education Research Group, University of Canterbury · CC BY-SA 4.0
Follow ordered branches until reaching the missing child where a new item belongs.
Sources
Adapted from CS Unplugged – Binary search trees · Finding and inserting values in a search tree, with new datasets · Computer Science Education Research Group, University of Canterbury · CC BY-SA 4.0
Lists and program output
Read zero-based indices to predict the order of printed values.
Sources
Adapted from Computer Science Field Guide – Programming Languages: What’s the big picture? · Python list exercise; a short program greets selected list entries instead of each person · Computer Science Education Research Group, University of Canterbury · CC BY-SA 4.0