Please enable JavaScript.
Coggle requires JavaScript to display documents.
Computational Thinking (Programming Techniques (Data Types (Int - A Whole…
Computational Thinking
Algorithms
-
-
Searching
Algorithms
Binary
Search
Find the middle item, if it is lower than the value you are looking for the first half is deleted, if higher the second half is deleted.
Find the new middle item and test that.
Keep repeating until the value is found.
-
Linear
Search
Search the first item, if it is the item you're looking for then stop
If not move onto the next item and repeat until the item is found
-
-
Sorting
Algorithms
Bubble
Sort
A bubble sort compares pairs of items starting with the first two, then the second and third item. if the items are unordered, they are swapped. After one pass only the last item is in the correct place, so multiple passes must be done.
-
-
Merge
Sort
A merge sort splits the list into it's separate items then the items are put together into lists of two, the lists of two are then collated to lists of four and so on until the list is complete and ordered.
-
-
Insertion
Sort
An insertion sort looks at the second item then compares it to items before it. the item is inserted in the right place and the next item is looked at.
-
-
Data Representation
Binary - This is a base 2 number system containing only 1's and 0's. The language of computers as electricity is either on or off.
-
Images
Colour Depth -
This is the number if bits available for each pixel in the image. For n number of bits there are 2^n available colours for the image
Resolution -
This is the density of pixels in an image per square inch. A higher resolution means more pixels so a higher quality. It is usually measured in dpi(dots per inch).
Metadata - Examples include
file format, height, width, colour depth and resolution.
Sound
Sound is recorded by a microphone as an analogue signal. Analogue signals are pieces of continuously changing data. It has to be changed into digital data for the computer
This is done using an analogue to digital converter. The process is called sampling. At regular intervals the amplitude of the sound is recorded but this results in a loss of data. To improve the shape of the curve the sampling frequency is increased
Translators
Compiler - Translates the whole code through before mentioning any errors. Creates a separately stored executable file. It only needs to be used once
Interpreter - Goes methodically through the program line by line, when an error is found it is picked up straight away. Used every time the program is run.
-
-
-