1/19
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
what is computational thinking?
problem solving methods to break down and solve complex problems
what is abstraction?
ignoring insignificant details of a problem
what is decomposition?
breaking down a problem into smaller problems
benefits of abstraction?
it simplifies the problem
benefits of decomposition?
it is simplified and multiple parts of problem can be worked on at once
what is algorithmic thinking?
finding a solution by identifying the steps to it
benefits of algorithmic thinking
solutions are automated
what is pattern recognition?
finding similarities in decomposed problems
benefits of pattern recognition?
problems are solved faster as they have similar solutions
what are the 2 types of search algorithms?
binary and linear
how does a binary search work?
it finds the midpoint of an organised list
it asks if the input if higher or lower
if higher, it discards the left side of the list
this is continued until input is found
benefits of a binary search?
efficient on large data sets and midpoint can be found quickly
disadvantages of a binary search?
it must be in chronological order before hand
how does a linear search work?
it compares the input with every item in the list from the beginning, in consecutive order
benefits of a linear search?
works on small data sets / if input is at the start of list and in any order
disadvantages of a linear search?
slow on large data sets
what are the 3types of sorting algorithms?
merge, bubble and insertion sort
how does merge sort work?
it halves the list until all items are individual
individual items are then put back into pairs and sorted
the algorithm continues to merge the mini data sets and sort them
this is done until all lists are sorted and are merged into a full sorted list
how do bubble sorts work ?
from the beginning of the list, the first item is compared with the next consecutive item in the list
if item is bigger than the next, it is sorted
this is continued until the first item is fully sorted
this is repeated until items are sorted
how does an insertion sort work?
the first value is linearly compared with the next consecutive value in the list and is swapped if it is bigger
it is focused on this item until it is in its correct place of the list
once one item is sorted, the list is expanded and this process repeats