Computational Thinking Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is the definition of ‘Computational Thinking’?

A
  • A systematic approach to solving problems

- Understanding a problem and developing possible solutions that can be understood by a computer/person/both

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

What are the 3 characteristics of Computational Thinking?

A

1) . Decomposition
2) . Abstraction
3) . Algorithmic Thinking

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

What is ‘decomposition’?

A

Decomposition is the breaking down of problems into smaller/more manageable sub-problems.

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

What is ‘abstraction’?

A

Abstraction is the removing unnecessary info and focusing on important details.

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

What is ‘algorithmic thinking’?

A

Algorithmic thinking is when you develop an algorithm to solve a problem —> precise step-by-step solution to a problem that can be replicated.

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

What is the definition of an algorithm?

A

An algorithm is a precise set of instructions, executing these instructions is meant to solve a problem.

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

What is the difference between an algorithm and a computer program?

A
  • Computer programs are interactive but algorithms aren’t
  • An algorithm describes the logic of a solution
  • A program is an implentation of this solution, written in programming language
  • Programs have to be precise (no mistakes)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a ‘linear search’?

A

A linear search is when you check each item in a list/sequence one at a time to see if it is the right item.

Best-case scenario: first item = search item
Worst-case scenario: last item = search item

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

What is a ‘binary search’?

A
  1. Take an ordered list and search item
  2. Find the item in the middle of the range
  3. Compare midpoint to search item
  4. If search item = midpoint, then stop
  5. If the midpoint is lower then the search item, change the range to the items after the midpoint
  6. If the midpoint is higher then the search item, change the range to the items before the midpoint
  7. Repeat (2-6) until the search item = midpoint
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is a ‘bubble sort’?

A
  • A bubble sort is when you repeatedly go through a list, comparing adjacent items and swapping the items if they are in the wrong order
  • Each item the algorithm goes the list it is called a pass. The pass through the list is repeated until the list is sorted
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is an ‘insertion sort’?

A
  • An insertion list is when you insert an item in the correct list
  • Works by grouping the items in a list into 2 parts:
    • Sorted sub-list
    • Unsorted sub-list
How well did you know this?
1
Not at all
2
3
4
5
Perfectly