Week 2 - Unit 3 Flashcards

1
Q

An algorithm’s careful use of time and space resources

A

efficiency

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

Running a program on many data sets to be sure its performance falls within required limits; timing the same algorithm on two different machines

A

Benchmarking

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

The study of the efficiency of algorithms

A

Analysis of algorithms

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

An algorithm that searches for a target value in a random list by checking each list item in turn

A

sequential search

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

The efficiency classification of an algorithm whose work varies as a constant times the input size n

A

order of magnitude n

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

The task of finding a specific value in a list of values, or deciding it is not there

A

searching

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

The task of putting a list of values into numeric or alphabetical order

A

sorting

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

A sorting algorithm that keeps moving larger items toward the back of the list

A

Selection Sort

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

The efficiency classification of an algorithm whose work varies as a constant times the square of the input size n

A

Order of magnitude n^2

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

floating-point operations per second

A

flops

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

An algorithm that searches for a target value in a sorted list by checking at the midpoint and then repeatedly cutting the search section in half

A

binary search

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

The efficiency classification of an algorithm whose work varies as a constant times log(n)

A

Order of magnitude log(n)

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

An algorithm that does less work than some polynomial expression of the input size n

A

polynomial bounded

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

An algorithm whose work varies as some constant to the power of the input size n

A

exponential algorithm

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

A problem for which no polynomial bounded solution exists

A

intractable

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

An algorithm that doesn’t give the exact answer to a problem, but provides a close approximation to a solution

A

approximation algorithm

17
Q

A sorting algorithm that makes multiple passes through the list from front to back, each time exchanging pairs of entries that are out of order

A

Bubble sort

18
Q

A variation of the bubble sort that stops when no exchanges occur on a given pass

A

smart bubble sort

19
Q

A sorting algorithm that breaks the list to be sorted into smaller and smaller lists and then assembles the smaller sorted lists back into larger and larger sorted lists

A

Mergesort

20
Q

A variation of the sequential search that requires a sorted list and stops once it has passed the place where the target could occur

A

short sequential search