Algorithms Flashcards

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

What is the definition of abstraction?

A

removing unimportant parts of a problem in order to concentrate on those that are important

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

What is the definition of decomposition?

A

breaking down a problem into smaller more manageable ones

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

What is the definition of algorithmic thinking?

A

an approach to solving problems by the use of algorithms (sequences of steps that lead to a solution)

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

What is a structure diagram?

A

a hierarchical diagram that shows how a problem is broken down into sub-sections/sub-tasks

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

What is a linear search?

A

going through each item in the list, one by one

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

What is a binary search?

A

a way of looking for a piece of data in an ordered list by continually splitting the list in half

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

How does a bubble sort work?

A

Given a list of values, the computer compares adjacent pairs of elements and swaps them if they are not in the right order. It will make several passes of the list until the data is in sorted order.

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

How does an insertion sort work?

A

Given a list of values, the computer takes one item at a time and places it in the correct position in the list.

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

How does a merge sort work?

A

The list is repeatedly divided into two until all the elements are separated individually. Pairs of elements are then compared, placed into order and combined.

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

Data Type - REAL

A

A number with a decimal point

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

Data Type - BOOLEAN

A

True or false

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

Data Type - STRING

A

A sequence of one or more characters

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