Computational Thinking Flashcards

1
Q

What is decomposition?

A

Breaking something down into smaller parts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is abstraction?

A

Removing any unnecessary details

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How does bubble sort work?

A
  1. The algorithm starts at the beginning of a list and examines the first two items
  2. The items in the wrong order are swapped
  3. When the algorithm reaches the end of the list, it repeats
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How does merge sort work?

A
  1. The algorithm break the list into two until each list only holds a single value
  2. The items are reassembled in their lists
  3. They are then combined to make a final list in the correct order
How well did you know this?
1
Not at all
2
3
4
5
Perfectly