1.10.1 Comparison of Functions #1

  Рет қаралды 531,309

Abdul Bari

Abdul Bari

Күн бұрын

Пікірлер: 135
@heilaal-mogren5828
@heilaal-mogren5828 5 жыл бұрын
Literally AMAZING. Calm, comfortable, tidy and step-by-step explanation and reaching the point in a short time! this is what a perfect teacher means 👍🏼 MANY THANKS!
@pradyumnsingh6278
@pradyumnsingh6278 4 жыл бұрын
wish i had watched this series in lockdown...
@devildemon7511
@devildemon7511 3 жыл бұрын
we are currently in lockdown only dude
@diveshsisodia7029
@diveshsisodia7029 3 жыл бұрын
@@devildemon7511 😂😁🤘
@mayankuniyal1829
@mayankuniyal1829 Жыл бұрын
So true bro
@Stuzard-s8j
@Stuzard-s8j 8 ай бұрын
2024 almost feels the same as lockdown :(
@asishraz6173
@asishraz6173 4 жыл бұрын
On behalf of the CBSE students, THANK YOU Abdul Sir. Very fortunate to get to know about this channel of yours. Thank you once again.
@indianitguru
@indianitguru 5 жыл бұрын
I have been going through your videos and am pretty much impressed with the way you ease up the subject. Hats off. That is truly a talent. Will keep watching your videos.
@zyro9922
@zyro9922 5 жыл бұрын
The last two questions are of GATE and I was so frustrated as I could not solve it. I just searched how to compare functions asymptotically and sir your video came up. Such a perfect explanation. Sir thanks a lot.
@sejalsyed5119
@sejalsyed5119 3 жыл бұрын
lol ...bhai ..
@health.upgradedbyscience.7309
@health.upgradedbyscience.7309 2 жыл бұрын
Truely amazing!! All your tutorials are a tremendous help in understanding correlations that seemed so hard to decode - but with your explanation all becomes logical and cristal clear! Thank you so much!!
@nattaphumjampalee206
@nattaphumjampalee206 5 жыл бұрын
thanks a lot sir, you did give me a lot of knowledge than the professor at my university did ! you deserved a big thumb from the bottom of my heart!!
@wirito
@wirito 5 жыл бұрын
I like how you left this blooper in 1:34 Lol Thank you for these amazing videos. I am learning a lot :)
@oliverchen4079
@oliverchen4079 4 жыл бұрын
bug or feature?
@humbleguy9891
@humbleguy9891 2 жыл бұрын
@@oliverchen4079 depends on the user :)
@sachinbansal4622
@sachinbansal4622 8 ай бұрын
this was necessary to give you in-person class experience! hahaa
@sushantgupta1564
@sushantgupta1564 4 жыл бұрын
I wish I had found these tutorials a few months ago. I could have done far better in my first test. Simply you are a genius. You know how to explain these things well.
@umairgillani699
@umairgillani699 4 жыл бұрын
It shows that sub-continent has some of the best teachers on planet. I'm from Pakistan, and I remember I had teacher with a same name "Abdul Bari" and a master of his subject (Mathematics). Learn a lot from your videos sir, please keep helping us absorb that complex knowledge making it simple enough. Huge respect from Pakistan!!
@dwaipayanroy3232
@dwaipayanroy3232 2 жыл бұрын
☺☺
@vaibhavkumar912
@vaibhavkumar912 6 жыл бұрын
rupees and paise great way of explaining
@qvikk333
@qvikk333 5 жыл бұрын
but large number of paisa can become rupee
@just-wild-life
@just-wild-life 5 жыл бұрын
@@qvikk333 Yes even for n = 8 and base 2 wont hold
@036karan
@036karan 4 жыл бұрын
@@qvikk333 but that large number would be on both sides
@KiyoGam1
@KiyoGam1 6 ай бұрын
No? That power 10 was only on one side. ​@@036karan
@omerakcan3991
@omerakcan3991 3 жыл бұрын
The best instructor I have ever seen in my life
@shobhitkumarpatkar5468
@shobhitkumarpatkar5468 3 жыл бұрын
Your teaching style is really very simple and easy to understand. Thanks a lot for the best lectures.
@devildemon7511
@devildemon7511 3 жыл бұрын
Sir in the previous problem u have comapred 2logn and logn and said that 2logn is greater(they have just different coefficient) but not in the last question
@sujalchoudhary5206
@sujalchoudhary5206 4 жыл бұрын
6:55 rupees and paisa perfect explanation
@simranvedpathak7112
@simranvedpathak7112 3 жыл бұрын
Best content on youtube 🙌🏼👍🏼
@aadarshbishen7078
@aadarshbishen7078 4 жыл бұрын
dividing f(n) and g(n) and apply limit n -> ∞ will be more easy to estimate.
@manhazehra8823
@manhazehra8823 4 жыл бұрын
Tomorrow is my exam. If your videos would not been on KZbin I would definitely fail. Thank you so much Sir. Rise and shine...May allah bless you abundantly. Kindly increase your playlists 🙏
@Egli
@Egli 5 жыл бұрын
You are the most amazing tutor!
@hemantbhangale9505
@hemantbhangale9505 4 жыл бұрын
Excellent progression and crystal clear content. Thanks!
@shreyavinchankar5643
@shreyavinchankar5643 3 жыл бұрын
Do we not ignore the coefficient for logarithmic terms as well? Ex. 3logn > 2logn but 3n = 2n, why is it so?
@cubangeorge
@cubangeorge 4 жыл бұрын
comparison at 1:40 wont hold when n=1 or 0
@sumandas201
@sumandas201 4 жыл бұрын
Thank you, sir, for this amazing video series............
@silviupavel6966
@silviupavel6966 4 жыл бұрын
7:00 is the comparison correct? loglogn^10 isn't equal to log10logn?
@Nameiscantsay
@Nameiscantsay 10 ай бұрын
What sir said is wrong. What you have written in the comment is correct
@kimanh6922
@kimanh6922 2 ай бұрын
In 7:03 sir said that f(n) is greater than g(n) without explain why loglogn is ignored, then I need to find the answer: 1. When we divided f(n) by g(n), got n/logn^9 which tends to zero when n is increasing: when the value of n is small, the value of this function is large but when it increases, the value of the function gets smaller (asymptotic to zero) 2. So that with the small value of n: f(n) is greater than g(n); but with the large value of n: g(n) is greater than f(n) 3. I drew a graph in desmos with 2 functions and I saw which I said at 2 So I want to ask that with ambitious value of n, can we compare 2 functions? or something I misunderstood about compare 2 functions?
@kimanh6922
@kimanh6922 2 ай бұрын
hehe after watching the next video i found out my mistake, we ignored smaller expression because we're comparing functions in time or space complexity which is not important in smaller value
@shiroshinomiya5714
@shiroshinomiya5714 3 жыл бұрын
You're a life saver sir!
@Han-ve8uh
@Han-ve8uh 4 жыл бұрын
So when comparing functions, are we using asymptotic behaviour or actual values? I don't understand the logN > loglogN so you can ignore the contribution of the 10 loglogN and focus only on 2logN. My example is n^2+n vs 7n. According to the video's argument, no comparison n^2 wins. But if we compare actual values (like the end of video says), 7n is bigger for n = 1,2 and only loses when n > 2, so which values are we comparing?
@thegloriousgoldeneagle
@thegloriousgoldeneagle 8 ай бұрын
Sir thanks for these amazing videos
@wirito
@wirito 5 жыл бұрын
Professor, I see why 2logn > logn but why is 10log(logn) less than log(logn)? Shouldn’t it be also larger just like 2logn > logn?
@HarshJain-vv3yg
@HarshJain-vv3yg 5 жыл бұрын
I also have the same doubt. I can only add that perhaps logn is a increasing f. while loglogn is a decreasing f.( by sampling), not sure about the overall nature of loglogn . What do you think?
@debrajadhikary7734
@debrajadhikary7734 5 жыл бұрын
Yeah man ....its embarrassing 2nd function is greater
@Onomandah
@Onomandah 5 жыл бұрын
He did not say that 10log(logn) is less than log(logn). But we are comparing the bigger n of the two functions. logn is more than log(logn), so we can ignore the log(logn) and instead compare the logn with the highest n of the other function, which is 2logn.
@saroj_kumar
@saroj_kumar 4 жыл бұрын
Forget about the first example, lets talk about the second. In the first example f(n) is greater than g(n), but in second case sir said, we are ignoring 2 and f(n) = g(n). I have a doubt on that. If anyone reading this, can explain.
@humengineerhaijholalekarni8408
@humengineerhaijholalekarni8408 4 жыл бұрын
no one replied so I am commenting. log(logn) is much smaller than logn why? consider n = 16 then log(log16) = log(log(2^4)) = log4 = log(2^2) = 2 and logn = log16 = 4 hence we can say logn is larger than log(logn) now suppose i travel a distance say 3km and 10m and you travel say 2km and 50m we compare the bigger unit right? so I travelled more 3km>2km we ignore the 10 and 50m because they are smaller units. The same applies here
@user-w87b7egvss
@user-w87b7egvss Жыл бұрын
Your videos are amazing, you actually make Algorithms fun 😄
@KhaledAhmed-cs8rv
@KhaledAhmed-cs8rv 9 ай бұрын
for the second example. shouldn't the left hand side equation greater than the right one starting from n= 28,1?
@monicaj3878
@monicaj3878 4 жыл бұрын
i spent hours look for an explanation of this... thank you so much !!!
@somyagupta2527
@somyagupta2527 3 жыл бұрын
sir in the example n^2(logn) and n(logn)^10 the first function is greater for some values and after that the second function is greater .I checked it by putting values in both the functions.
@animerank4907
@animerank4907 3 жыл бұрын
Yeah, you can check in desmos, second function becomes greater after x = 28 or something like that.
@swplogic4158
@swplogic4158 11 ай бұрын
@@animerank4907 No worries, sir. The professor's got it right. Just remember, "n" is a natural number, so it's gotta be "n >= 1." And for any value of "n," "f(n)" is always gonna be more than "g(n)." Plot it on a graph and take a look from "n >= 1."
@sajalrastogi3904
@sajalrastogi3904 3 жыл бұрын
@7:00 sir how would we know that log(logn) should be ignored because it has lower value on both sides. if we dont know its value.
@arizablozki9370
@arizablozki9370 Жыл бұрын
I think that g(n) is greater than f(n) in the first example 4:42, I think Prof. Bari mistakenly says f(n) is bigger.
@swplogic4158
@swplogic4158 11 ай бұрын
No worries, sir. The professor's got it right. Just remember, "n" is a natural number, so it's gotta be "n >= 1." And for any value of "n," "f(n)" is always gonna be more than "g(n)." Plot it on a graph and take a look from "n >= 1."
@SRNR_PODCAST.
@SRNR_PODCAST. 3 жыл бұрын
a gold mine in youtube
@RavinderRam
@RavinderRam 7 жыл бұрын
awesome Sir Make a series of programming tutorial for non-programmer I am data analyst currently using R programming
@subramaniyanvg6367
@subramaniyanvg6367 4 жыл бұрын
Nicely explained with examples. Thank you sir.
@viveksaxena7376
@viveksaxena7376 4 жыл бұрын
0:00 first method 1:39 sec method
@ujjwalgupta8945
@ujjwalgupta8945 4 жыл бұрын
sir, if the value of log is greater than 1 it will be always greater than g(n) please reply example 2 {time: 4:43}
@stevenbooke8594
@stevenbooke8594 5 жыл бұрын
At 7:05 where you say f(n) > g(n) I don’t believe this is the case. If you graph both of those functions we can see g(n) approaches infinity faster than f(n) so isn’t f(n) < g(n)?
@kera2403
@kera2403 3 жыл бұрын
You probably have taken log with a base 10 while graphing. Here the base is 2.
@nicksidiropoulos802
@nicksidiropoulos802 2 жыл бұрын
@@kera2403 It's still true for base 2.
@crickfever100
@crickfever100 Жыл бұрын
i was making the same mistake,zoom out the graph and you will see f(n) >g(n)
@learningchannel274
@learningchannel274 4 жыл бұрын
I respect this man
@vishalkeshri9695
@vishalkeshri9695 6 жыл бұрын
Superb sir u keep continue thnx sir
@supamdeepbains5172
@supamdeepbains5172 4 жыл бұрын
6:45 kya bat hai kya cheez hai paisa paisa lol
@narendrasriram
@narendrasriram 11 ай бұрын
Your videos are too awesome. In this video around 7m time, you are comparing two functions, how f(n) can be bigger compared to g(n) as , let say n=4, f(n)=32, but g(n) will be 4*2^10; if we are considering log base 2
@himadrimukadam6459
@himadrimukadam6459 2 жыл бұрын
Sir, I have a question. If your last question (the one with the root) has both functions asymptotically same, then why not the second one? Both functions have log n + log log n... Just different coefficients. So can they be said asymptotically same??
@the_humble_lazy
@the_humble_lazy 4 жыл бұрын
At 6:37....why 2logn is greater than logn....they are assymptotically same naa!
@the_humble_lazy
@the_humble_lazy 4 жыл бұрын
@@abdul_bari thanks a lot sir!
@mohamednaufal719
@mohamednaufal719 3 жыл бұрын
because 2logn signifies n^2 and logn signifies n.
@tjsm4455
@tjsm4455 2 жыл бұрын
Date - 17/6/22 Imp note - a raise to log c base b == b raise to log c base a.
@adipratapsinghaps
@adipratapsinghaps 3 жыл бұрын
OMG I never knew how to compare functions in 4 years of industry experience.
@mdaffansajjad3294
@mdaffansajjad3294 5 жыл бұрын
great comeback at 1:38 sir sir sir
@MrLazini
@MrLazini 2 жыл бұрын
an excellent lesson
@sergeyshestakov4936
@sergeyshestakov4936 8 ай бұрын
Спасибо Мистер
@mohammedadel8948
@mohammedadel8948 2 жыл бұрын
Thank you for your efforts
@divyachaudhary1154
@divyachaudhary1154 6 жыл бұрын
Very clear explanation... Thanks
@rnjnmhta.catomato
@rnjnmhta.catomato 2 жыл бұрын
2:58 log formulae
@alibabarahaei2229
@alibabarahaei2229 2 жыл бұрын
Perfect👌
@Rob-J-BJJ
@Rob-J-BJJ 2 жыл бұрын
thank u sir, u r godsend!!!
@codekalavya1843
@codekalavya1843 3 жыл бұрын
Great examples
@Arvy565
@Arvy565 5 жыл бұрын
why is the base by default 2? shouldn't it be 10?
@Arvy565
@Arvy565 5 жыл бұрын
@@abdul_bari oh I see. thanks for answering
@MuhammadAsif-fj5ox
@MuhammadAsif-fj5ox 6 жыл бұрын
Great Effort Sir!
@prateekkumar6426
@prateekkumar6426 3 жыл бұрын
Sir aap ne c++ ka course q nhi banaya Bana dejiye premium hoga to chalega
@vaibhavdiwan517
@vaibhavdiwan517 4 жыл бұрын
Sir if you take n=100 then g(n) will become greater
@saptarshisahoo5075
@saptarshisahoo5075 6 жыл бұрын
Great..
@jessesinger4790
@jessesinger4790 5 жыл бұрын
How do I derive rule 4?
@manhazehra8823
@manhazehra8823 4 жыл бұрын
Plesse include all subjects of CS🙏
@saikumarchennu1791
@saikumarchennu1791 6 жыл бұрын
Nice explanation sir
@debolinasihi9967
@debolinasihi9967 4 жыл бұрын
Thankyou so much sir,
@nuzhatul596
@nuzhatul596 3 жыл бұрын
f(n) is big omega of g(n)... @2
@smitfultariya5984
@smitfultariya5984 3 ай бұрын
7:04 answer is maybe wrong
@chamangupta4624
@chamangupta4624 4 жыл бұрын
Sir, Comparison question at 7:05 is not correct, you can check yourself using calculator, beyond 2.7 for any value the g(n) will be larger than f(n) , rupees and paisa explanation fails at least here , just a suggestion
@chamangupta4624
@chamangupta4624 4 жыл бұрын
Okkk sorry sir i got it, u were not talking about the value but the order was being compared.. Right na?
@AnujKumar-tt5md
@AnujKumar-tt5md 4 жыл бұрын
Thanks🌹
@cybershrajal
@cybershrajal 5 ай бұрын
sir dark mode use kijiye na
@91-ritikjain36
@91-ritikjain36 3 жыл бұрын
thank you so much sir today is my exam
@selinbaris7822
@selinbaris7822 6 жыл бұрын
What is the base of the logarithm that you are taking Sir ?
@subhrapaladhi5888
@subhrapaladhi5888 5 жыл бұрын
it doesn't really matter on which base you take the log. it should just be any valid base.
@subhrapaladhi5888
@subhrapaladhi5888 5 жыл бұрын
it doesn't really matter on which base you take the log. it should just be any valid base.
@selinbaris7822
@selinbaris7822 5 жыл бұрын
@@subhrapaladhi5888 but why
@subhrapaladhi5888
@subhrapaladhi5888 5 жыл бұрын
as we are only going to compare. just make sure you take both of them on the same base
@036karan
@036karan 4 жыл бұрын
can 'n' be ever negative?
@RavinderRam
@RavinderRam 7 жыл бұрын
make a tutorial of computer fundamental and basic programming concept e.g data structure & algorithm
@loading757
@loading757 6 жыл бұрын
Very helpful
@reyy9220
@reyy9220 9 ай бұрын
TYSM
@ShivamShrivastava35
@ShivamShrivastava35 6 жыл бұрын
where it helps in DAA
@bhanupratapmudgal4831
@bhanupratapmudgal4831 5 жыл бұрын
Fed up of this Coding Blocks Advertisement,LOL
@jihanIT
@jihanIT 6 жыл бұрын
Thank you
@hometvfirestick
@hometvfirestick 3 жыл бұрын
thanks
@humbleguy9891
@humbleguy9891 2 жыл бұрын
I watched it in 2017 and also in 2022.
@HappyKitya
@HappyKitya 2 ай бұрын
8:43
@shabeerahamed2129
@shabeerahamed2129 2 жыл бұрын
1:34 😄
@donfeto7636
@donfeto7636 Жыл бұрын
4- law is -> a^log(c) is c^log (a) not as you wrote it also first example is not correct. from section 3.2 in introudction to algorithms book
@okbagaming7564
@okbagaming7564 Жыл бұрын
الهندي تاعنا
@ciaravlogs6202
@ciaravlogs6202 5 жыл бұрын
Do a iready lesson
@arizablozki9370
@arizablozki9370 Жыл бұрын
actually I am wrong for n > 10000000000000000 f(n) is bigger!
@manavnagrani8338
@manavnagrani8338 Жыл бұрын
Your way of explaining is very much similar to Khaleel sir ❤
@dakshpatel1769
@dakshpatel1769 Жыл бұрын
He was student of khaleel sir😊
@swplogic4158
@swplogic4158 11 ай бұрын
Who is Khaleel?
@cybershrajal
@cybershrajal 5 ай бұрын
black bord , black t shirt
@GamingWithRaghu650
@GamingWithRaghu650 2 жыл бұрын
haters guna hate.
@ragedragon33
@ragedragon33 4 жыл бұрын
math sucks
@qauattan2416
@qauattan2416 9 ай бұрын
Which book you follow sir? Please tell me the book name you follow? @abdul bari
1.10.2 Comparison of Functions #2
10:26
Abdul Bari
Рет қаралды 371 М.
2.1.1 Recurrence Relation (T(n)= T(n-1) + 1) #1
13:48
Abdul Bari
Рет қаралды 1,8 МЛН
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
1.11 Best Worst and Average Case Analysis
18:56
Abdul Bari
Рет қаралды 849 М.
1.8.1 Asymptotic Notations Big Oh - Omega - Theta #1
15:46
Abdul Bari
Рет қаралды 2 МЛН
2.6.3 Heap - Heap Sort - Heapify - Priority Queues
51:08
Abdul Bari
Рет қаралды 2,2 МЛН
3.1 Knapsack Problem - Greedy Method
15:30
Abdul Bari
Рет қаралды 2,4 МЛН
1.9 Properties of Asymptotic Notations
11:58
Abdul Bari
Рет қаралды 653 М.
2.1.2 Recurrence Relation (T(n)= T(n-1) + n) #2
16:00
Abdul Bari
Рет қаралды 1 МЛН
1.5.3 Time Complexity of While and if #3
21:54
Abdul Bari
Рет қаралды 1 МЛН
2.8.1  QuickSort Algorithm
13:43
Abdul Bari
Рет қаралды 3,3 МЛН
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН