GoConqr has a new look! Let us know what you think.

Flashcards

Writing and Following Algorithms

James Norman OCR A level Computer Science A level English 3 cards

Cards in this deck (3)

  1. 1Properties of a good algorithm1. Clear and precisely stated steps that produce the correct output for any set of valid inputs
    2. Allows for invalid inputs
    3. Terminates at some point
    4. Executes efficiently, in as few steps as possible
    5. Designed to allow others to understand and modify it if necessary
  2. 2Steps for interpreting algorithms1. Read the comments on the program
    2. Look at variable names
    3. Follow the algorithm through
    4. Try a dry run with some data
  3. 3Trace TablesUsed to perform a dry run of an algorithm
    While following the algorithm, variables and their values at each stage are displayed in the table

Information

Description
Tiny topic, seems more skill-based than memory based
Created by
James Norman
Views
4
Rating

More on Algorithm Design and Problem Solving

Feedback

What is it about?

What do you think of the new look?

How do you like it?