4.4.4.1 Comparing algorithms Flashcards

1
Q

What are the two ways to measure complexity?

A

Space

Time

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

What is time-wise efficiency?

A

amount of time it takes for the algorithm to terminate with the correct solution. Any measure of time will depend on other factors, like:
the particular version and type of programming language used to implement the algorithm;
the hardware specification on which the implementation will be running;
the input to the algorithm, e.g. searching through a very very large set will take longer that searching through a short set

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

What is space-wise efficiency

A
amount of (memory) space the algorithm will take up before it terminates with the correct solution
When considering space-wise efficiency, the aim is to utilise data structures which take up the least amount in memory.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly