Hi guys, about time complexity there's something not understand able for me and wish you guys help me ..
well, firstly I understand the definition of (OMEGA) and the definition of (BIG O) but what's weird is that:
My lecturer said that if we want to find the best case .. then it's enough to fine one best case and say :
best case< T(n)
I asked him why it's enough to find one best case to say that's T(n) actually bigger than it, may it will be more than suitable best case? he explained this by: lets us say there's y=max grade among whole the students in the class, lets assume one of them said that his grade is 40, then y>=40 and it's enough to prove that y is ofcourse >=40 . then he said the same issue in on the best case of time complexity ..it's enough to find one best case to say that T> best case that I found. ...... but why ? I'm still miss understanding this point.
for example for worst case we are not "simply" finding any worst case and say T(n) < worst case ..
anyone can help me on why for finding best case we suffice to find "one" best case (maybe there's much best cases!! but still we need just one!! ) and it's enough to prove that my T(n)>best case.
well, firstly I understand the definition of (OMEGA) and the definition of (BIG O) but what's weird is that:
My lecturer said that if we want to find the best case .. then it's enough to fine one best case and say :
best case< T(n)
I asked him why it's enough to find one best case to say that's T(n) actually bigger than it, may it will be more than suitable best case? he explained this by: lets us say there's y=max grade among whole the students in the class, lets assume one of them said that his grade is 40, then y>=40 and it's enough to prove that y is ofcourse >=40 . then he said the same issue in on the best case of time complexity ..it's enough to find one best case to say that T> best case that I found. ...... but why ? I'm still miss understanding this point.
for example for worst case we are not "simply" finding any worst case and say T(n) < worst case ..
anyone can help me on why for finding best case we suffice to find "one" best case (maybe there's much best cases!! but still we need just one!! ) and it's enough to prove that my T(n)>best case.