Тёмный

Big Omega vs Big Theta vs Big O in Time Complexity 

Greg Hogg
Подписаться 185 тыс.
Просмотров 23 тыс.
50% 1

Big Omega vs Big Theta vs Big O in Time Complexity

Опубликовано:

 

6 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 16   
@GregHogg
@GregHogg Месяц назад
Master Data Structures & Algorithms For FREE at AlgoMap.io!
@spidey2468
@spidey2468 Месяц назад
Finally something that I knew, feeling I can reach the flex programmer level 😉
@GregHogg
@GregHogg Месяц назад
That's awesome
@scottmorton21
@scottmorton21 Месяц назад
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.
@adityaanuragi6916
@adityaanuragi6916 Месяц назад
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
@GregHogg
@GregHogg Месяц назад
I disagree with you. The way I write bubble sort uses a flag to see when we're done sorting. It would tell us we're done sorting after one round of swaps
@leroydennisaidoo7968
@leroydennisaidoo7968 Месяц назад
It's correct
@adityaanuragi6916
@adityaanuragi6916 Месяц назад
@@GregHogg oh I see, in that case yes it is linear Most times when we see bubble sort programs we don't do the flag thing, without another variable telling us if we did swaps or not it is then n2 which is what I was going with My bad I didn't know that
@vkhs562
@vkhs562 Месяц назад
​@@GregHoggyup you are absolutely ryt
@hp2805
@hp2805 Месяц назад
I was expecting u to explain it with a simple linear search...
@pound9799
@pound9799 Месяц назад
so when we know that the algorithm will always be the same time complexity we call it theta ?
@phusicus_404
@phusicus_404 Месяц назад
I think there is alternate designation of these, I've seen o, O and ō
@hozayfakhleef1223
@hozayfakhleef1223 Месяц назад
So Omega is best case, big O us worst case and Theta wenn Omega = big O. Right?
@claudehahni2662
@claudehahni2662 Месяц назад
Doesn't explain shit. I know about complexity notations. Without that, this short makes no sense.
@DrDeuteron
@DrDeuteron Месяц назад
What’s little o?
@darknight3613
@darknight3613 Месяц назад
When you are lazy and dont press on shift before pressing on o you get o instead of O. There is no little o.
Далее
The Sorting Algorithm That Never Ends! (Bogo Sort?)
0:53
Прохожу маску ЭМОЦИИ🙀 #юмор
00:59
Coding Was HARD Until I Learned These 5 Things...
8:34
Learn Big O notation in 6 minutes 📈
6:25
Просмотров 234 тыс.
Big-O Notation - For Coding Interviews
20:38
Просмотров 463 тыс.
What REALLY is Data Science? Told by a Data Scientist
11:09