Hi guys, to sum up I've learnt a good material about Data structure and Algorithms, but there's something really internally harassing me and still confused .... I hope by you guys this perplexed idea be solved.
Why we are looking to the time of algorithm's behavior over "infinity" and not over something constant? what does it stand for? I mean for example we do compare two algorithms of time complexity by aiming the inputs to infinity .... and then comparing between its time complexity ? ..why I need for determining the time complexity of algorithm I must see its behavior over infinity and then I can determine it?
that's point "why comparing time complexity over specifically infinity" is still confusing me and a lil "fuzzy" .. if there's any analogs to clear that point out..would be much appreciated! thank you guys alot.
really, I know what is O and omega nad theta but still something internally hidden for me which why exactly we determine time of complexity by its behavior in infinity !
** by the way I know by the definition O/omega/tetha implicitly saying that we must determine time of complexity of algorithm over infinity ..my question why over infinity .. **
Why we are looking to the time of algorithm's behavior over "infinity" and not over something constant? what does it stand for? I mean for example we do compare two algorithms of time complexity by aiming the inputs to infinity .... and then comparing between its time complexity ? ..why I need for determining the time complexity of algorithm I must see its behavior over infinity and then I can determine it?
that's point "why comparing time complexity over specifically infinity" is still confusing me and a lil "fuzzy" .. if there's any analogs to clear that point out..would be much appreciated! thank you guys alot.
really, I know what is O and omega nad theta but still something internally hidden for me which why exactly we determine time of complexity by its behavior in infinity !
** by the way I know by the definition O/omega/tetha implicitly saying that we must determine time of complexity of algorithm over infinity ..my question why over infinity .. **