Paper 2 Flashcards
(25 cards)
Abstraction
The goal of “abstracting” data is to reduce complexity by removing unnecessary information. At some level, we all think of computers in abstract terms.
Decomposition
Decompotion involves the breaking down of a problem into smaller, simpler, simple steps or stages.
Linear search
When data is unsorted, the only sensible option when searching for a particular item is to start at the beginning and look at every item until you find the one you want.
Binary search
It works by repeatedly dividing in half the portion of the data list that could contain the required data item. This is continued until there is only one item in the list.
Bubble sort
A bubble sort works by repeatedly going through the list to be sorted, comparing each pair of adjacent elements. Moving the largest item to the end.
Insertion sort
The algorthium takes one data item form the list and places it in the correct location in the list. The process is repeated until there are no more unsorted data items in the list.
Merge sort
This is a two stage sort. In the first stage, the list is successively divoded in half, forming two sublists, until each sublist is of length one.
Flow diagrams
Flow diagram is a collective term for a diagram representing a flow or set of dynamic relationships in a system.
Start/End (flow chart)
Oval
Process box
Rectangle
Input/Output (flow chart)
Rhombus
Decision box (flow charts)
Diamond
Sequence
Sequence is just a matter of writing the steps down in the order they need to happen.
Iteration
There are three basic iteration (loop) constructs that you will learn when you program.
Logic errors
When the program is running it doesn’t do quite what was expected.
Syntax error
Since computer programs must follow strict syntax to compile correctly, any aspects of the code that do not conform to the syntax of the programming language will produce a syntax error.
Interpreter
An interpreter is used to translate high-level language code into machine code. It translates each line of sorce code and then executes it.
Compiler
Translates a program written in a high level programming language into machine code. It translates the whole code in one go, execpt if there is an error.
Assembler
Converts assembly language into machine code. This is a simple conversion as, in general, every assembly language instruction is translated into a single machine code instruction.
Sample
Is a measure of amplitude at a point in time.
Sample resolution
Is the number of bits used to store each sample.
Sample rate
Is the frequency with which you record the amplitude of the sound, the number of samples per second.
Sample size
The number of seconds over which the sample was taken
Bitmap image
If the size of a picture is increased, then more pixels will need to be stored. This increase the size of the image file.