Big Omega vs Big Theta vs Big O in Time Complexity

preview_player
Показать описание
Big Omega vs Big Theta vs Big O in Time Complexity
Рекомендации по теме
Комментарии
Автор

Master Data Structures & Algorithms For FREE at AlgoMap.io!

GregHogg
Автор

Finally something that I knew, feeling I can reach the flex programmer level 😉

spidey
Автор

I have only need to do sorting of large datasets a few times in my career. Using a combination of sort techniques ended up being the fastest way. There's also some great info on the net about sorting. Interesting reading but rarely needed in real life....at least by me.

scottmorton
Автор

The part about bubble sort is incorrect

Even if it's sorted it'll always take n2 time, and if you optimize by making the inner loop upper limit related to outer loop like ( j < len-1-i) then it'll still be (n(n-1))/2 which is still n2

If you talked about insertion sort what you said would've been correct as if you give it a sorted array it truly is 'n', and n2 if completely unsorted

adityaanuragi
Автор

I was expecting u to explain it with a simple linear search...

hp
Автор

so when we know that the algorithm will always be the same time complexity we call it theta ?

pound
Автор

I think there is alternate designation of these, I've seen o, O and ō

phusicus_
Автор

So Omega is best case, big O us worst case and Theta wenn Omega = big O. Right?

hozayfakhleef
Автор

Doesn't explain shit. I know about complexity notations. Without that, this short makes no sense.

claudehahni