Skip to content

Algorithms, traces and correctness evidence

Introduced
Video lesson for this topic Open the video page
4:48

Computational thinking

Your school wants a canteen app. Students order lunch on a phone, pay from a card balance, and the kitchen sees the orders. Nobody can write that in one go.…

English narration · English and 中文 subtitles you can switch

In this lesson

Video lesson
Vocabulary
English Meaning
Binary search/ˈbaɪnəri sɜːtʃ/
algorithm/ˈælɡərɪθəm/A finite sequence of precise steps for solving a problem or carrying out a task.
trace/treɪs/to follow an algorithm step by step, recording the values of its variables
boundary/ˈbaʊndəri/A line, surface or limit that separates regions or marks the extent of an area or set.
linear search/ˈlɪnɪə sɜːtʃ/Checking items in sequence until the required item is found or the list ends.
trace table/treɪs ˈteɪbl/A table recording variable values, conditions or outputs while an algorithm is followed step by step.
boundary test/ˈbaʊndəri test/A test using values at, just inside or just outside the limits of an allowed input range.
empty array
Next →

Handout

IGCSE, A-Level & AP