2.1 - Algorithms Flashcards

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

What is computational thinking?

A

A problem-solving method using computer science techniques, where possible solutions are developed and presented in a way that can be understood by humans and computers.

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

What are the important elements of computational thinking?

A
  • Decomposition
  • Abstraction
  • Algorithmic thinking
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is decomposition?

A

Breaking down a complex problem or system into smaller parts that are more manageable and easier to understand
—> Smaller parts can be examined as they are simpler to work with

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

What is abstraction?

A

Involves removing unnecessary detail from a problem in order to concentrate on those that are needed

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

Why is abstraction used?

A

Bc it simplifies a problem to make it less complex
—> Makes it more straightforward to understand the problem & create a solution

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

What is algorithmic thinking?

A

Involves using logical steps to
find a solution to a complex problem.

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

What is an algorithm?

A

A set of instructions for solving a problem or completing a task

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

Why would programmers create algorithmic designs?

A

As a method of planning a program before writing any code
—> Helps them to consider potential problems of the program & makes it easier to start creating source code

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

What does this flowchart symbol mean?

A

Start / stop terminator

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

What does this flowchart symbol mean?

A

Operation (process)

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

What does this flowchart symbol mean?

A

Decision

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

What does this flowchart symbol mean?

A

Input / Output

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

What does this flowchart symbol mean?

A

Direction of flow

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

What does this flowchart symbol mean?

A

Subroutine

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

What are trace tables?

A

Used to track the value of variables as a program is run

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

What is a Linear search?

A

Each data item is searched in order from the 1st value to the last

17
Q

What is a Linear search also known as?

A

A sequential search

18
Q

What type of lists are linear searches best for?

A

Small data sets

19
Q

What is an advantage of a Linear search?

A

The list does not have to be ordered before it is searched

20
Q

What is a binary search?

A

The middle point of the data is selected w/ each iteration and many data items can be ignored

21
Q

What is a disadvantage of a Binary search?

A

The list of data must be already sorted

22
Q

What is a advantage of a Binary search?

A

More efficient than linear

23
Q

What type of lists are binary searches best for?

A

Large data sets

24
Q

What is a Merge sort?

A

Divides a list into half, again and again until each data item is separate
—> Based on idea of “divide and conquer”

25
Q

What is the bubble sort?

A

Data elements are swapped if they r not in the correct order

26
Q

What type of lists are bubble sorts best for?

A

Small sets of data

27
Q

What is the insertion sort?

A

Values from the unsorted part are checked and inserted at the correct position in the sorted part
—> This continues through all elements of the list until the last item is reached & sorted