Searching, sorting and efficiency
≈ 42 minSearching, sorting and efficiency
Searching answers where an item is; sorting answers what order items should appear in. Linear search checks items one by one. Binary search repeatedly halves a candidate range, but it is correct only when the values are already sorted by the same rule.
Reasoning routine. State the information available, the rule to apply, the result required and one boundary or failure case.
Worked example. Find a learner ID in an unsorted sign-in list with linear search. Find a surname in an alphabetised register by comparing to the middle entry and discarding the half where the name cannot be.
Uses Uvero's optional secure Java practice service. If it is unavailable, your lessons and progress still work.
Which statement best reflects this lesson's sorted precondition?
Write the key term for this lesson: sorted precondition.
A school system needs a reliable next step. Which choice is most defensible for this topic?
A learner can repeat a definition from Searching, sorting and efficiency. Which next task gives stronger evidence of mastery?

