Тёмный

2.2 Masters Theorem Decreasing Function 

Abdul Bari
Подписаться 1 млн
Просмотров 658 тыс.
50% 1

Masters Theorem for Decreasing Function
T(n)=a T(n-b) +f(n)
case 1: if a less than 1 then T(n)=O(f(n))
case 2: if equal 1 then T(n)=O(n*f(n))
case 3: if a greater than 1 then T(n)=O(f(n) a n/b)
PATREON : www.patreon.co...
Courses on Udemy
================
Java Programming
www.udemy.com/...
Data Structures using C and C++
www.udemy.com/...
C++ Programming
www.udemy.com/...

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

 

1 окт 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 272   
@jojappakoyyuru8301
@jojappakoyyuru8301 3 года назад
Angel has come down and explains the impossible things.....
@erdhamo2791
@erdhamo2791 2 года назад
100%
@apoorvatiwari6906
@apoorvatiwari6906 2 года назад
True🙌
@arondsouza8553
@arondsouza8553 2 года назад
True ❣️
@divyangdheer7292
@divyangdheer7292 Год назад
Cringe
@neon_342
@neon_342 Год назад
@t.hartley1730
@t.hartley1730 6 лет назад
I can't explain to you how helpful these videos are to me. Thank you.
@akkkuuuu
@akkkuuuu 3 года назад
Me to
@akkkuuuu
@akkkuuuu 3 года назад
Tommorrow is my sem xam. And these are really helpful for me as compared to other youtube channels
@anmol9886
@anmol9886 11 месяцев назад
dont explain
@syedjawahar8542
@syedjawahar8542 3 года назад
When u said “this is masters theorem” after writing few conditions.....even master theorem itself in shock, I made this look so complex to even university professors and this guy is making fuN of me.....lol. GOD BLESS U....
@urftiny
@urftiny 2 года назад
Hahahahhahahaha
@kunalkheeva
@kunalkheeva 2 года назад
haha
@arkadiptadas4148
@arkadiptadas4148 5 лет назад
Wow!.. Never seen someone explain master's theorem so beautifully and passionately
@siz1858
@siz1858 11 месяцев назад
Bro do you a crush on him? That’s not how you compliment a person's explanation
@jayvaibhawverma
@jayvaibhawverma 7 месяцев назад
@@siz1858You can compliment someone's work like this, if it's been done by the person passionately and beautifully. Take the metaphorical meaning; not everything needs to be taken literally.
@JoseSanchez-vv1zd
@JoseSanchez-vv1zd 4 года назад
Greetings from America, and thank you very much! Your videos are some of the best I've seen. 🙂
@prayagparikh8020
@prayagparikh8020 6 лет назад
You english is so fluent and easy going👍
@sauravdas7591
@sauravdas7591 4 года назад
Sir, massive respect to you. I have never understood Master's Theorem in my college class. But thanks to you. Regards, Saurav
@Shadow-rk9fq
@Shadow-rk9fq 3 года назад
Guys video dekho to 1 like bhi kardo.. it's sad to see that there are 2lakhs+ views and just 3k likes 🥺..
@eddiechen6389
@eddiechen6389 4 года назад
This guy is a GOD level teacher lol. Big thanks to U
@jayvaibhawverma
@jayvaibhawverma 7 месяцев назад
Yup, bought his DS course on Udemy. Those are great!
@razvancarp3027
@razvancarp3027 2 года назад
Thank you my friend , LOVE FROM ROMANIAA !!!!
@anonymousa6070
@anonymousa6070 6 лет назад
Our teacher took 3 hours to teach these topics, but also after that no one was able to understand these clearly. But here you made it clear within a 8 minutes of lecture. I can't thank you enough.
@chris_ekwe
@chris_ekwe Год назад
Mine used 2 mins, na ogun go kill en papa
@lawlietl944
@lawlietl944 4 года назад
For t(n)=2t(n-1)+ n solution comes out to be O(2^n) and not as the formula predicted
@yoshifan102
@yoshifan102 3 года назад
I was almost crying from how much work I had to do for my class and my professor didn't explain this topic that much and it's a crucial topic we need to understand. This video has helped me so much THANK YOU!!!
@Finn-jp6pn
@Finn-jp6pn 5 лет назад
This made Master's theorem make sense!! Thank you, thank you!
@g.c415
@g.c415 2 месяца назад
nothing short than legendry explanation. this series is the benchmark of algo teaching
@kunalchouhan3829
@kunalchouhan3829 5 лет назад
Hats off sir !!! for your simplicity and explanation, I had never seen some explaining like this.
@alldyallnite
@alldyallnite 3 года назад
I have never seen anyone dedicating 30 odd videos for explaining the complexity of the algorithms. Thanks to you sir, this is the best use of youtube I have ever done till date.
@amberpradhan2484
@amberpradhan2484 4 года назад
Thank you, sir! I've been recommending my friends to watch your videos, You're excellent!
@mrunalshende1663
@mrunalshende1663 3 года назад
thank you so much sir . this is just what we need .its my last subject to prepare for gate 2021 and i can say its going well thanks to you..
@canernm
@canernm 4 года назад
@Abdul Bari Thanks a lot professor for the amazing videos. I have a question, if you could answer me please. In master's theorem you mentioned f(n) is in the order of O(n^k); WWhen the time function is T(n)=T(n-1)+logn, we have that f(n)=logn. How can "logn" be expressed as O(n^k). Am I missing something? Thanks a lot in advance!
@utkarshchheda3349
@utkarshchheda3349 2 года назад
logn can be expressed as a polynomial expression with the help of taylor series wherein k tends to infinity
@NguyenieTheDrew
@NguyenieTheDrew 2 года назад
Let's say f(n) = log_b(n). To represent this as n^k, we can say that k = log_n(log_b(n)). Therefore, n^k = n^(log_n(log_b(n))). Because of how logs and exponents work, a^(log_a(b)) = b, so therefore n^(log_n(log_b(n))) = log_b(n). Now notice that when you plug this equation for k into any of the master theorem cases, you'll get the right answers.
@AwaraGhumakkad
@AwaraGhumakkad 2 года назад
Thanks for the explanation Sir - One question while generalizaing the below 6 statements you created --> "aT(n-b) + f(n)" which I understand. but how can we say that f(n) = O(n power K), because we also had T(n-1) + log n , log n doesnt come in O(n power k) class . please correct me otherwise.
@veldasrdurai
@veldasrdurai Месяц назад
The moment I realise my childhood was a lie 🤥🤡 06:36 😭😭😭 Now it's 12 mid night and I don't know whom to I can share my eureka moment. After writing multiple exam over this same topics now only I realise that masters theorem is this simple🎉😢
@Raj10185
@Raj10185 Год назад
Its most simplified video exist on Master Theorem first observation then going through making the cases is just Lit i remembered very easily by writing on myself in the first go tysm
@shubhambatham49
@shubhambatham49 4 года назад
Master's theorem by one of the masters' of the subject !! #GOD_LEVEL
@ekanshmishra4517
@ekanshmishra4517 4 года назад
😮this is my reaction when i saw it♥️
@mypointofview5400
@mypointofview5400 5 лет назад
You sir are amazing! You're making these computer science stuffs very easy. Please continue making these videos. Thank you!
@Eduardo-ow8mo
@Eduardo-ow8mo 2 года назад
Why? why, why, why the hell O(n) = f(n^k) ????? How in hell did you get that result?
@vakhariyajay2224
@vakhariyajay2224 2 года назад
Thank you very much. You are a genius. 👍👍🙏🙏👌👌🔝🔝
@MoreDuo
@MoreDuo 7 месяцев назад
wtf suddenly i got it
@c.d.premkumar6867
@c.d.premkumar6867 2 года назад
Never come across such a Simple and Beautiful explanation so far. Further, the way to memorize the formulae is Fantastic.
@diptachatterjee8717
@diptachatterjee8717 3 года назад
You are the boss and best teacher i have seen on this topic..Lots and lots of love and respect 💚💚💚💚🙏🙏🙏🙏🙏🙏
@replykh4642
@replykh4642 2 года назад
I can say it's the MOST complete and easy to understand playlist. Just couldn't understand this Master Theorem before but with you I got it. Respect to you sir
@solomonkassahun7845
@solomonkassahun7845 7 месяцев назад
am i watching a movie or studying ? i am enjoying it so much
@rachitbhatt40000
@rachitbhatt40000 3 года назад
6:08 as far as I know it is illogical to have a < 1. It might be mathematically be correct but it is not possible. So if someone asks you such questions, rather than solving it prove it and them wrong.
@tusharkumar6594
@tusharkumar6594 2 года назад
dhanyawad sir ji aapka dm sahu
@nacatcrazy
@nacatcrazy 3 года назад
Thank you Abdul you're a fantastic teacher! Way better than my own teacher that just reads the slides...
@srinivb1
@srinivb1 6 лет назад
Sir, your videos are amazing. Truly high quality stuff. Many Thanks
@alexwei6108
@alexwei6108 4 года назад
how I can write a program to make T(n)=a T(n-b) +f(n), and 'a' is less than 1?? thanks
@harikeshbyrandurgagopinath2460
@harikeshbyrandurgagopinath2460 4 года назад
Indirectly he meant, if a=0
@Libertoso
@Libertoso 4 года назад
If a is 0 then there are no recursive calls, so the function just goes from begining to end, running a constant 1 times
@shriganeshayenamah3422
@shriganeshayenamah3422 Год назад
Thank You very much sir🥳🥳🥳🥳🥳🥳🥳
@Han-ve8uh
@Han-ve8uh 4 года назад
How does f(n) = log n fit master theorem? Theorem says f(n) should be of form O(n^k) where k>=0. But log n does not look like n^k form. Are there restrictions on value of n too that can make k >= 0 when f(n) = log n? On a side note, the way i think about the big O is 1. number of times executed x 2. # steps in each loop). So the a > 1 case would be more consistent with a = 1 case if written the other way as O(a^(n/b) * n^k). Also, it seems like if a=1 and b>1, the formula can be generalized too to n/b * f(n), which makes n^(k+1) a less general formula.
@parthrawat3498
@parthrawat3498 4 года назад
4:16 here's the answer for your first question
@dimitritizam1434
@dimitritizam1434 2 года назад
Sir, you're true genius in teaching. Some people will only ignore it because of the thumbnail or your get-up. Your contents are gem.
@MenukaIshan
@MenukaIshan 4 года назад
Sir, This Master theorem definition is different than other definitions available on the Internet? :O
@umairalvi7382
@umairalvi7382 4 года назад
This is a shortcut method of masters theorem,so that one can remember easily.
@satyaashokdowluri1129
@satyaashokdowluri1129 5 лет назад
After watching one recurrence relation video i thought of skippin the rest ...but you explained each and every concept like our teachers do in our elementary school(spoon feeding) which made me not to skip atleast one lecture on this. Thanks for last minute preparation.
@Secret49999
@Secret49999 4 года назад
welcome ashok
@satyaashokdowluri1129
@satyaashokdowluri1129 4 года назад
@@Secret49999 Thank you SAP labs
@subramaniyanvg6367
@subramaniyanvg6367 3 года назад
Its easy to understand this video because you related masters theorem with previous videos very nicely winded up recurrence relation. Thank you sir.
@jivanmainali1742
@jivanmainali1742 5 лет назад
Sir I have a real doubt that when there is 2power n then that is O(2pow n) But why log n! Has no upper bound as 2 long! Kindly help sie
@TOI-700
@TOI-700 3 года назад
Your teaching skills are God level 🙏.
@sumayyahabeeba1790
@sumayyahabeeba1790 Год назад
Sir, You made us Master this theorem!
@kunalkheeva
@kunalkheeva 2 года назад
Thank you so much sir. I do not know how to appreciate you, have no words to mention.
@javascriptwar9525
@javascriptwar9525 4 года назад
Great Knowledge i achieved sir. Thankyou so much sir☺🙌
@simonedisalvatore6832
@simonedisalvatore6832 3 года назад
why in class it's seems like finding the Holy Grail and with you it's so simple. Next time i'll stay home and study by myself on YT
@rashmikulkarni9703
@rashmikulkarni9703 4 года назад
No one has explained masters theorem better this :D
@FARHANAHMAD-gp2ez
@FARHANAHMAD-gp2ez 4 года назад
I dont have any word to say how good i feel from your lecture
@ankitcaring
@ankitcaring 4 года назад
U made MASTER Theorem a piece of CAKE.. Just loved it.💖💖
@hritikchoudhary8532
@hritikchoudhary8532 5 лет назад
in coreman the theorem is sth like this t(n)=aT(n/b)+f(n) and your's is little different.. so does it alters?
@L.-..
@L.-.. 2 года назад
in case 2. a=1, what happens when b ≠ 1? is O((n/b)*f(n)) the ans???
@subhamburnwal9127
@subhamburnwal9127 2 года назад
no if you use induction like he shows, it will be (n-b)*f(n) gives n*f(n), so this is still the same as case 2.
@jananirangaraj1215
@jananirangaraj1215 3 года назад
Hello sir !!! Thanks for your videos and it's great way to learn algorithms from this channel. May God bless you with good health and wealth.. I have a doubt in solving the relation T(n) = T(n-1)+T(n/2)+n where n >0. Here should the f(n) be taken as n or as T(n/2)+n. How to solve this relation? Thanks in advance.
@saifullahrahman
@saifullahrahman Год назад
6:35 this is master's theorem. MIC DROP
@amaljithev3214
@amaljithev3214 6 лет назад
Very Precise ! Nice Lectures Sir :) Doing A Grt Job
@awanishmishra9782
@awanishmishra9782 2 года назад
thank u very much sir
@rnjnmhta.catomato
@rnjnmhta.catomato 2 года назад
6:56 masters's theorem notes;
@chagantisubhash
@chagantisubhash 2 года назад
Mind-blowing explanation!! I used master's theorem for over an year, but never observed these subtle things. Wonderfully proved with examples.
@YashRaj-ew8zv
@YashRaj-ew8zv 3 года назад
Your videos are a lifesaver for computer science students. Thank you sir for this wonderful explanation. 🙏🙏🙏
@nquanta1548
@nquanta1548 3 года назад
Thankyou so much sir
@SnS-gp7du
@SnS-gp7du 5 лет назад
Thank you very much sir. Even our university teachers also follow you.
@PRIYAGUPTA-dr1nr
@PRIYAGUPTA-dr1nr 6 лет назад
This is the best explanation of Masters theorm I have ever seen
@sandip_kanzariya8476
@sandip_kanzariya8476 2 года назад
No any other can explain as you can...👌👌👌👌🙏🙏🙏🙏
@vyomder7290
@vyomder7290 6 лет назад
Thank you sir but what if a=1 and b is not equal to 1..is there any updation in formula??
@chayanbarman337
@chayanbarman337 3 года назад
Thank you so much sir... i had pretty much hatred on DS & Algo .. but after watching your video everything is much easier and fun to learn ... thank you so much from bottom of my heart ... you are my saviour
@vinayturubilli8786
@vinayturubilli8786 2 года назад
This is awesome !!!
@kaarthikeyank4559
@kaarthikeyank4559 3 года назад
Master the Blaster !
@subashadhikari3290
@subashadhikari3290 3 года назад
waah waah waah waah
@sukhjitsingh4884
@sukhjitsingh4884 3 года назад
🙏🙏 thanks a lot .
@shadow_sparrow
@shadow_sparrow 3 года назад
If I am understanding this correctly from this video, something like T(n) = T(n-2)+n would just be O(n^2) still because a=1 which follows O(n*f(n))?
@mohammadkhayat1986
@mohammadkhayat1986 Год назад
Hello Dr, Abdul Bari, Can you please confirm that the solution for T(n) = nT(n-1) where n > 1 and when n=1 T(n) = 10 is O(n^n)?
@nouf5184
@nouf5184 2 года назад
Thank You !
@aadarshjha6983
@aadarshjha6983 4 месяца назад
Great explanation sir. Just one question from the last part of the video. How can "a" (the coefficient) be less than one. From my understanding a is the number of times a function is calling itself in one iteration, so how can it call itself less than one times. Any explanations are welcome and once again Thank You.
@study-me1oe
@study-me1oe 2 года назад
at 7:19 , should the f(n) be multiplied by n? similarly when he used the f(n)=n^k for that same explaination, he didn't multiplied it by n i.e, (n^k * n). Can anyone explain??
@shitalunde24
@shitalunde24 5 лет назад
here are many guides but you are excellent .. thank u so much sir..bt there is 1 req plz upload the playlist on programming & data structure
@zohaibazam9289
@zohaibazam9289 Год назад
Hero!
@sairohithpasham
@sairohithpasham Год назад
The world is a much better place with professors like you!!
@muhammadowais582
@muhammadowais582 8 месяцев назад
watching in 2024, with paper in the morning. . . .very helpful
@adnaneafifi4734
@adnaneafifi4734 3 года назад
I love you😂
@wecodedaily7777
@wecodedaily7777 2 года назад
you have saved our life..may god bless you sir.
@sajalrastogi3904
@sajalrastogi3904 3 года назад
5:00 for a=1, O(n^k+1) doesnt prove right in the case of t(n)= T(n-1) + logn, whereas O(n*f(n)) is true.
@rajput3281
@rajput3281 5 лет назад
you are best teacher on youtube, you make difficult consepts easier.
@happytrigger3778
@happytrigger3778 2 года назад
Sir, you are the great Algos tutor that I have come across so far. I am greatly inspired by your humility and patience.
@testshp
@testshp 2 года назад
Salute you sir. I have not seen a teacher in DS like you. Superb.
@manisharya2138
@manisharya2138 2 года назад
I have a lot of confusion while solving coding problems, but after seeing this video all doubt clearly related to time complexity in dynamic programming.
@sundaydavid2824
@sundaydavid2824 3 года назад
So simplified. Thank you!
@Tanujr
@Tanujr 4 года назад
excellent video sir! tomorrow is my exam and you cleared all the 5 mark questions of masters theorem at one go!
@anonymous-or9pw
@anonymous-or9pw Год назад
There's a logic behind it. a simple logic of multiplication theorem from permutation.
@GoogleUser-nx3wp
@GoogleUser-nx3wp 5 месяцев назад
The more times you see his videos the clearer and concise it becomes hats off
@kartikeyjangir6003
@kartikeyjangir6003 3 года назад
In this master theorem why f(n) =O(n^k) as fn is also log(n)? Can any explain thanks in advance!
@saharabedzade9029
@saharabedzade9029 2 года назад
at 3:18 you are saying a>0 and then at 6:13 you are saying case 1: if a less than 1 then T(n)=O(f(n)). I think a should be not equal to zero.
@webper3630
@webper3630 5 лет назад
This video is the world`s best explanation of reccurence relations! Thanks to you!
@abhijithalder4567
@abhijithalder4567 6 лет назад
Great job😍
@ALEXPJOSEPHBTechCSEA-
@ALEXPJOSEPHBTechCSEA- 3 года назад
what would be the answer of T(n)= 2T(n-1)+T(n-1)+n
@dallasmilanista8291
@dallasmilanista8291 2 года назад
Is there any reasoning behind the formulae for condition a
@devinmeas194
@devinmeas194 Год назад
Thanks, If I made it to Jane Street, I will make a donation to your uni.
@hakangecili4072
@hakangecili4072 2 года назад
_"Just by watching you can not remember this one"_
Далее
2.1.1 Recurrence Relation (T(n)= T(n-1) + 1) #1
13:48
# Rural Funny Life Wang Ge
00:18
Просмотров 760 тыс.
2.6.1 Binary Search Iterative Method
19:36
Просмотров 810 тыс.
The Most Beautiful Equation in Math
3:50
Просмотров 13 млн
3. Greedy Method -  Introduction
12:02
Просмотров 1,4 млн
2.7.1  Two Way MergeSort - Iterative method
20:19
Просмотров 731 тыс.
Master Theorem Visually Explained
12:13
Просмотров 35 тыс.
3.4 Huffman Coding - Greedy Method
17:44
Просмотров 1,6 млн
2.8.1  QuickSort Algorithm
13:43
Просмотров 3,2 млн