Fundamentals of Algorithms Flashcards

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

Algorithm

A

A sequence of steps designed to perform a particular task

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

Decomposition

A

Breaking down a problem into smaller sub-problems making the overall problem easier to solve

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

Abstraction

A

Including the necessary details and leaving out the unnecessary details when problem solving

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

add

A

+

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

subtract

A

-

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

divide

A

/

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

multiply

A

*

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

exponent

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

MOD

A

remainder
17 MOD 3 = 2

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

DIV

A

integer division
17 DIV 3 = 5

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

Variable

A

A variable is a location in memory in which you can temporarily store text or numbers

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

Sequence

A

the statements are executed in the order they are written in

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

Selection

A

the next step to be executed depends on whether the condition being tested is true or false

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

Iteration

A

the steps being repeated over and over again until the statement is true

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

Algorithm efficiency

A

A measure of how well an algorithm performs its task on a given data set

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

Integer

A

a whole number

17
Q

Real

A

a number with a decimal point

18
Q

Boolean

A

Can only be TRUE or FALSE

19
Q

Character

A

A single alphabetic or numeric character

20
Q

String

A

One or more characters enclosed in quote marks

21
Q

Binary Search

A

The size of the list is approximately halved each time an item is examined until the item that is wanted is found

22
Q

Linear Search

A

Items are examined in the sequence until the item that is wanted is found

23
Q
A

Defines the range of values a variable may take.