Computational Thinking Flashcards
1
Q
What is decomposition?
A
Breaking something down into smaller parts
2
Q
What is abstraction?
A
Removing any unnecessary details
3
Q
How does linear search work?
A
Where an algorithm starts at the beginning of a list and moves through item by item until it finds the matching item
4
Q
How does binary search work?
A
Where an algorithm takes the median, compares it with the search item and discards the irrelevant items
5
Q
How does bubble sort work?
A
- The algorithm starts at the beginning of a list and examines the first two items
- The items in the wrong order are swapped
- When the algorithm reaches the end of the list, it repeats
6
Q
How does merge sort work?
A
- The algorithm break the list into two until each list only holds a single value
- The items are reassembled in their lists
- They are then combined to make a final list in the correct order