Big O notation - Data Structures & Algorithms Tutorial #2 | Measuring time complexity

preview_player
Показать описание
Big O notation is the way to measure how software program's running time or space requirements grow as the input size grows. We can't measure this using absolute terms such as time in seconds because different computers have different hardware hence we need a mathematical way to measure time complexity of a program and Big O is that mathematical way. The basic idea is to come up with mathematical function for a running time and consider only fastest growing term and discard other terms as well as constants. Big O is used to measure space complexity as well, You will know how to find the time and space complexity of algorithms.

Clarification: At 5:05, the code should be print(str(numbers[i]) + " is a duplicate"), to concatenate integer with string you need to convert to string or use format string.

#bigo #bigonotation #timecomplexity #spacecomplexity #datastructures #algorithms #python

#️⃣ Social Media #️⃣
Рекомендации по теме
Комментарии
Автор

there is no other teacher who teaches Data science and Data structure simultaneously . (Great sir once again thank you from bottom of my heart)

mohitkumargautam
Автор

very nicely explained, one major problem youtube tutorials have is they have this assumption that we already know the basic things so they skip over those parts, even the really important ones, but you explained it right from the base and still managed to keep it short, thank you

Niko-zlhn
Автор

learnt so much more in a 12 min video than my 6 months semester at university...Thank you sir.

dewanmasumanazneen
Автор

Not all heros wear capes.. You're one of them... May the force be with you....

vikasmanav
Автор

You are doing great. I look up to you. You try to make us feel what is under the hood, in an intuitive manner. I wish there was more teachers like you.

minhazulislam
Автор

StatQuest, 3brown1Blue, and this channel become my survival kits as a software engineer

generallifing
Автор

Maine 20 se 30 video dekha hay time complexity ke upar par itna simply or example ke sath koy nehi

ritammondal
Автор

I don’t know how these explanations could be done better. Just amazingly beautiful, boss. You have written and recited poetry of coding.

akmzahidulislam
Автор

i just got an eye opener video on Big O notations, I tried learning from many sources but the clarity here is just amazing.

talkingexpi
Автор

Fantastic job! No intro no waste of time just some Quality Content, Great Work!

vijitpugalia
Автор

I appreciate the detail and simplicity you bring to this lesson. You are great teacher, Sir. Many thanks.

Orgwell
Автор

I am so fortunate to be a learner of this channel, i extol the way you explain the complex things in such a intuitive way.You are really patrician, so generous and erudite Mentor i ever seen.Keeping uploading such stuff sir regarding Data Structure and algorithm.

prakharmishra
Автор

I have to admit it whatever you teach it sound's very easy. Be it right from the git basics, Data Science and now DS & Algos. Such a wonderful teacher you are. I normally don't comment unless i really like the content but the way you teach and the content you put is on point, crisp and very understandable for a complete novice like me. Thank you so much again. I wish to see this channel hit more than 500K soon. More power to you :)

madunishant
Автор

after watching a lot of videos related to DS, I got this and now I can say that this is the best till you

_Ayush_Tiwari_
Автор

9:46 It took me a while to wrap my head around how exactly he derived the order to be O(log n).

Consider the example he provided: an array of eight digits with the 7th digit being our target value. Using binary search, this example is actually a worst case scenario. Why? Well because we had to go all the way to the 3rd iteration, where we are at an array size of n/(2^3). Basically, since n=8 in this example, we have 8/(2^3) = 8/8 = 1. So we see that the worst case scenario is when n/(2^k) = 1.


Each iteration is cutting the array size in half. The worst case scenario is where we keep having to cut the array size down until it goes from being length n (originally) all the way to 1.

gappogappo
Автор

i am teaching coding to myself, and soon realise that without knowledge of algo and datastructure its DOA...read many books, understood the basics...but this video is byfar the BEST explanation i have come across...only possible if the tutor understands it well rather than copying from any text book..thank you

অর্ণবচ্যাটার্জী-ধ১খ
Автор

woww sir auper awaited series gotta be a biggest hit abi tak data science ko rakh kar k kisi ne ds and algo nai banaya h you tube p

apoorvshrivastava
Автор

Your explanations are so simple and interesting, thanks for this !

kzr_
Автор

Hey! Your explanation was great! But can you provide more examples of how to calculate the time complexities and the increasing order of time complexities?

mansijain
Автор

I just learn this on my 27th age! What is log what is log2.. haha.. I was sleeping on my maths classes :D What is the main comedy in this?? I have a post-graduation in computer science !!!! :D :D :D

braveheartcreations