Algorithm
A set of instructions designed to solve a problem
Identifier
A name given to an element of a program so it can be referred to throughout
Good Programming Practice
Variable
An attribute within a program whose value can be reassigned (during execution)
Constant
An attribute within a program which never changes its value (during execution)
Global Variable
Local Variable
Sequence
Steps processed once
Selection
Nesting
When another selection statement is contained within an existing selection statement
Repetition
Purpose: to repeatedly execute code until a certain condition is met
Count
A value in a loop that will increase/decrease each time the loop is executed
Rogue Value
a value which tells the computer that input has finished
DIV
//
How many times one number goes into another
MOD
%
Remainder after DIV
Lossy Compression
Lossless Compression
Character Combinations (Compression)
Finding frequently occurring character combinations and replace them with tokens
Run Length Encoding
Replace long strings with a number
Photo Compression
Approximate all shades of blue in a photograph to one shade and only store this colour instead of every pixel
Sub Sections
Sub Sections Advantages
Standard Module and Function
STANDARD FUNCTION
Carries out a common task for a standard situation in a program and is provided by the compiler/interpreter
STANDARD MODULE
Contains a group of related standard functions
EG: Module = math
Function = math.cos(x)
Standard Module Advantages