Comparing Algorithms Flashcards

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

Efficiency

A

Amount of resources used by an algorithm, which can affect how long it runs

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

Time complexity of an algorithm

A

How fast the algorithm runs

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

Space complexity of an algorithm

A

How much memory the algorithm needs

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

Worst case complexity

A

When we happen to choose an input that requires the longest time or greatest workload

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

Best case complexity

A

When we choose an input that requires the shortest time or smallest workload

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

Average case complexity

A

Calculated by averaging the times for every possible input

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