0

# Algorithm

why we need to analyze algorithm in terms of time and space???!

2 Answers

+ 2

So we can check (and then choose) which amongst the variants is the optimal one that will be the chosen algorithm?

+ 1

Imagine there are two text editors, you have to decide which one to buy.
Editor one takes 3 seconds to open any new window.
Editor two takes not even one second.
Otherwise there's no difference.
Which one will you buy?