Mindmap
Algorithms
Inhalt der Mindmap
Algorithms
Binary Search
- List must be in order
- Middle Value is taken
- Search is stopped if it is the value is the one you're looking for
- If middle value is larger than the desired one: Take the values to the left of the middle value
- Then repeat with the new list
- If middle value is smaller than the desired one: Take the values to the right of the middle value
LInear Search
- List does not have to be in order
- First value of list is checked
- Search is stopped if it is the value is the one you're looking for
- If not desired value: Check next value on the list
- Process is repeated until desired value is attained
Merge Sort
- A list is split into individual lists, these are then combined (2 lists at a time)
- Split all elements into individual lists
- Compare the first element into first two lists
- Put the smallest at the start of a new list
- Compare the next element of the 1st list with the next element of the 2nd list
- Put the smallest into a new list
- Repeat until first two lists merged
- Then repeat with other lists
- Repeat until first two lists merged
- If you have two values the same, add one (it doesn't matter from which list), and then add the second
- Put the smallest into a new list
- Compare the next element of the 1st list with the next element of the 2nd list
- Put the smallest at the start of a new list
- Compare the first element into first two lists
Insertion Sort
- Comparing unsorted elements in an individual list and sorting then out in order
- In a list, the starting element is a 'sorted' list
- The rest of the elements are an 'unsorted' list
- Compare the first element in the 'unsorted' list with all the elements in the 'sorted' list
- If the current unsorted element is smaller than the interacted sorted element, put it in front of that element (move the other sorted elements along)
- If the unsorted element is larger, compare it with the next
- If there are no more elements in the 'sorted' list, put it in the final position
- Repeat until all elements in the 'unsorted' list are in the 'sorted' list
- Compare the first element in the 'unsorted' list with all the elements in the 'sorted' list
- The rest of the elements are an 'unsorted' list
- In a list, the starting element is a 'sorted' list
- Comparing unsorted elements in an individual list and sorting then out in order
Flow Chart
- Can be used to represent an algorithm
- It shows the data that is inputted and outputted
- It shows the processes (actions) that take place
- It shows the decisions and repetitions that take place
- Lines are used to show the flow of control
- Set shapes are used to represent different functions
- Diamond - Decision
- Oval - Start/End
- Rectangle - Process
- Parallelogram - Input/Output
- Rectangle with 2 interior lines - Sub-Process
- Set shapes are used to represent different functions
- Lines are used to show the flow of control
- It shows the decisions and repetitions that take place
- It shows the processes (actions) that take place
Informationen
- Beschreibung
- GCSE Computing Mindmap am Algorithms, erstellt von Daniel Timms am 11/01/2019.
- Erstellt von
- Daniel Timms
- Aufrufe
- 1
- Verlauf
-
- Erstellt von 2402 2003 · 17 Dez 2018
- Kopiert von Daniel Timms · 11 Jan 2019
- Bewertung