Chapter 3 Flashcards

1
Q

How is time efficiency calculated?

A

We measure time efficiency by checking the amount of work an algorithm has to do in terms of the size of the problem.

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

How do we measure efficiency?

A

Using best cases (fewest comparisons) and worst cases (most comparisons).

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

What is O(n)?

A

The number of comparisons made of the order of n

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

What is the notation of a simplified analysis of an algorithm’s efficiency?

A

Big O Notation.

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

What exactly does Big O Notation do?

A

It gives us the algorithm’s complexity in terms of N.

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

What are the three types of measurements?

A

Worst-Case
Best-Case
Average-Case

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

Big O Notation uses Running Time Complexity.

What is the hierarchy of algorithms from least intense to most intense performance?

A

Least Intense
O(1)
O(logn)
O(n)
O(nlogn)
O(n^2)
O(2^n)
O(n!)
Most Intense

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

What algorithm has the task of putting a list of values into a specific order?

A

Sorting algorithm.

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