Pseudocode, Logic and Linear Search - Cambridge Lower Secondary Class 8 Computing Notes, Diagrams and Solved Questions

Write algorithms as short, clear and precise pseudocode, follow flowcharts and pseudocode with IF conditions, build rules with AND, OR and NOT, use constants, decompose problems, and search a list with a linear search.

In this chapter

  • What pseudocode is and the marks of good pseudocode (short, clear, precise, clear start and end)
  • Following flowcharts and pseudocode that use IF … THEN … ELSE
  • Comparison operators and rules built with AND, OR and NOT
  • Decomposing a problem into sub-problems
  • Using constants in algorithms
  • Why we need searching algorithms, and the linear search
  • Predicting outcomes and testing algorithms with normal, boundary and unexpected data