Igcse Cei Computer Science
Igcse Cei Computer Science
Algorithm
Example:
Explaining the purpose of an
algorithm
Standard methods of solution
Linear search
Bubble sort
Validation and verification
For data entry, validation ensures that only data that is reasonable is accepted. Verification is used to check that the
data does not change as it is being entered. Different types of checks may be used on the same piece of data.
Test data:
Trace tables:
A trace table records the
results from each step in an
algorithm; it shows the value
of each variable every time
that it changes. Working Identifying errors in algorithms:
through an algorithm step by Trace tables and test data can be used to identify errors and correct
errors.
step is called a dry run. A trace
table is set up with a column
for each variable and a column
for any output. For example:
Writing and amending
algorithms:
Exam-style questions