Mind map
2.1 algorithm
Map content
2.1 algorithm
What is the name of this searching algorithm? Linear (search).
Linear search compares each value in turn. Worst case scenario, 100,000 comparisons / all values checked. Binary search splits size of list in half each time / uses divide and conquer. Worst case scenario, many fewer comparisons
- Terminator / start / stop symbol Used at the very beginning / very end of the program / algorithm.
- Decision Used to make yes/no decisions/choices
- when implementing the bubble sort -- Initialised to False at the start of the algorithm. If pairs of numbers are swapped, set to True.
- Decision Used to make yes/no decisions/choices
- Terminator / start / stop symbol Used at the very beginning / very end of the program / algorithm.
What is the data type of the variable swaps? Boolean.
- Linear (search).
- decomposition -Used to break down a (complex) problem
Decision Used to make yes/no decisions/choices Suitable example (eg IF x > 10)
a representation of a concept / object / thing.in this case, the rollercoaster.
using a binary search? Values are not in (alphabetical) order.
- Merge sort.
abstraction.
Information
- Description
- Mind Map on 2.1 algorithm, created by Dashanay Graham on 10/10/2019.
- Created by
- Dashanay Graham
- Views
- 0
- Rating