Тёмный

Prove Recurrence Relation By Master Theorem 

randerson112358
Подписаться 19 тыс.
Просмотров 45 тыс.
50% 1

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

 

4 окт 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 73   
@kagame6524
@kagame6524 9 лет назад
I have finally understood this topic. Tomorrow is the exam and you have saved the day. Thanks dude!
@crftr-com
@crftr-com 10 лет назад
It's a matter of taste, but I prefer to consider the cases without the logarithms. The cases can be rewritten: Case 1. O(n^d) if a < b^d Case 2. O(n^d log n) if a = b^d Case 3. O(n^(log base b of a)) if a > b^d
@bennettgillig3266
@bennettgillig3266 3 года назад
I had homework on this and had literally no idea the master theorem existed. I can't believe I found this but I'm most certainly glad I did.
@RyanSmith-nt6zm
@RyanSmith-nt6zm 8 лет назад
Best Master Theorem Explanation I've found. Ty sir. I finally get it.
@randerson112358
@randerson112358 8 лет назад
Thank you!
@thedamnbored
@thedamnbored 8 лет назад
This was great. Intuitive. Natural. generally awesome.
@christopherderrell8470
@christopherderrell8470 10 лет назад
Thanks so much. Applied it, and tried to beat you to the answer. Figured it out, and exclaimed in excitement. Thanks again
@MatthewRiddell
@MatthewRiddell 8 лет назад
Thank you so much! I had the hardest time figuring out why each case was divided the way it was but with your table of the d value and its relation to the log was what solved all my questions.
@blackfromabove9383
@blackfromabove9383 4 года назад
I watched almost every vid on the playlist from recurrence relation. I appreciated especially those resolved by iteration method. You are really a good professor and you deserve your subscribers and people saying you're the best, thanks a lot!
@randerson112358
@randerson112358 4 года назад
Thanks my brother !
@blackfromabove9383
@blackfromabove9383 4 года назад
@@randerson112358 You're welcome!
@thomaspagels
@thomaspagels 8 лет назад
Thank you! You saved me a lot of time with this video.
@randerson112358
@randerson112358 8 лет назад
+thomaspagels thank you for watching
@DavidHite
@DavidHite 8 лет назад
Thanks man! You're kicking my prof's butt at teaching me! And taking about 20 times less time to do it too.
@randerson112358
@randerson112358 8 лет назад
+David Hite thank you !
@jaysongrace6399
@jaysongrace6399 9 лет назад
Really good explanation, thanks dude.
@andrewortiz1703
@andrewortiz1703 8 лет назад
This was incredibly helpful and helped clear some things up. Thank you!
@randerson112358
@randerson112358 8 лет назад
Glad it was helpful !
@nerzid
@nerzid 9 лет назад
Really nice and clear. Thank you so much !
@christianbouwense4702
@christianbouwense4702 8 лет назад
Thanks, saved me from failing my midterm!
@mwwardle
@mwwardle 9 лет назад
Awesome explanation.
@Dawre
@Dawre 9 лет назад
Thanks for giving a good example! :)
@kelwinjoanes2672
@kelwinjoanes2672 8 лет назад
Thanks!
@SolidCode
@SolidCode 8 лет назад
Thanks a lot man, your video helped me a lot.
@bt-ih8rr
@bt-ih8rr 9 лет назад
thanks alot man , you saved my GPA :)
@randerson112358
@randerson112358 9 лет назад
b t haha no problem, I completely understand that statement.
@MrHylet
@MrHylet 7 лет назад
Thanks bro, this was really helpful for me :)
@4w0ken
@4w0ken 9 лет назад
thx finally i understand
@dreadhawk123
@dreadhawk123 8 лет назад
Thank you sir!
@randerson112358
@randerson112358 8 лет назад
Thanks for watching!
@calebbbernard
@calebbbernard 8 лет назад
Perfect video, thank you!
@randerson112358
@randerson112358 8 лет назад
Thank you !
@TD95Productions
@TD95Productions 5 лет назад
Great video. Thank you
@akjoboe
@akjoboe 10 лет назад
Thank you! This is really helpful!
@SOAD525
@SOAD525 8 лет назад
thanks mr
@escapist29
@escapist29 10 лет назад
Thanks a lot!
@dizzydasper
@dizzydasper 9 лет назад
helpful, thanks!
@randerson112358
@randerson112358 9 лет назад
Thanks Martin !
@gemini88miller
@gemini88miller 7 лет назад
quick question: assume f(n) in the function is some constant; so T(n) = aT(n/b)+f(n), where f(n) is 1, does that mean that since there is no n to derive n^c does that make c = 0?
@randerson112358
@randerson112358 7 лет назад
+Raphael Miller yes exactly! Since n^0=1, c =0
@gemini88miller
@gemini88miller 7 лет назад
Oh awesome
@karishmazsweblog5561
@karishmazsweblog5561 8 лет назад
wow :) thankuh so mch ...
@amiraibrahim7012
@amiraibrahim7012 8 лет назад
can you solve this for me ? An array A[1 … n] is said to be k-ordered if A[i-k] ≤ A[i] ≤ A[i+k] for each i such that k < i ≤ n-k. For example, the array [1 4 2 6 3 7 5 8] is 2-ordered. 9. In a 2-ordered array of 2n elements, what is the maximum number of positions that an element can be from its position if the array were 1-ordered? (A) 2n-1 (B) 2 (C) n/2 (D) 1 (E) n 10. In an array of 2n elements that is both 2- and 3-ordered, what is the maximum number of positions that an element can be from its position if the array were 1-ordered? (A) 2n-1 (B) 2 (C) n/2 (D) 1 (E) n .... thanks in advance
@randerson112358
@randerson112358 8 лет назад
+Amira Ibrahim cs.stackexchange.com/questions/25839/k-ordered-array-problem
@H_Williams
@H_Williams 6 лет назад
How do you solve this if n^d = n^3 log n? What value do you take for d? Thanks!
@alexone2099
@alexone2099 7 лет назад
Hi. Can your explanation of the Master Theorem be found in some book or some online University Couses, or something like that, beside this video? I mean exactly with the usage of n pow d, d instead of f(n), and your 3 cases, with the exact notations that you used? I used your method (which I found great and very easy to understand) for an exam (I am a computer science student) an I might not pass the exam because I did not use the 3 cases of Master Theorem an notations which are presented in most books (probably you know what I mean). And even if the final result was ok, the teacher says he doesn't know this version of the Master Theorem ?! Can you help me so I can have something to back me up? Thanks a million :).
@randerson112358
@randerson112358 7 лет назад
Sure, This is not my method, the Master Theorem has been used and created/derived by others much smarter than I haha. Here is a link to a pdf file from a university that uses the same theorem in the video. cse.unl.edu/~choueiry/S06-235/files/MasterTheorem.pdf Of course this Master theorem is essentially the same thing as the other master theorem but only for Theta( n^d ). I am surprised that your professor won't allow you to use this or doesn't understand this seeing as how the rules used here are in the generic master theorem. Thanks for watching; randerson112358
@war590
@war590 8 лет назад
what about when T(n) = T(2n/3) + 1? d can be regarded as 1 or 0. But 1 > log1 therefore it is Theta(n) but it is really 0 = log1 Theta(1logn)???
@randerson112358
@randerson112358 8 лет назад
+Nerraw please take a closer look, your answer is correct Theta(log n). D = 0, because n^0 = 1 A= 1, because 1 * T(2n/3) = T(2n/3) B = 3/2, because n/(3/2) = 2n/3 So yes we use case 2 where 0 = log base (3/2) of 1 to get Theta (n^D * logn) ==> Theta( n^0 *logn) ==> Theta(logn) Any more questions just leave a comment. Thanks for commenting, if you find my videos and or comments helpful, Please subscribe! randerson112358
@war590
@war590 8 лет назад
+randerson112358 the confusing part is that D could of been mistakenly 0 or 1 since 1^1 and 1^0 =1.
@randerson112358
@randerson112358 8 лет назад
Well, no it could not have been 1 or 0 it had to be 0 because n^0 = 1. NOTE: n^1 = n I think I understand your confusion, you see 1 and 1 to the power of anything is always equal to 1. But the Master Theorem doesn't have 1 in the equation T(n) = a*T(n/b) + n^d It has a "n" at the end and so we have to change your equation T(n) = T(2n/3) + 1 to match. So by doing this we get the following: T(n) = 1*T(n/(3/2)) + n^0 NOW: a = 1, b=3/2, d= 0 So you see we are raising n^0 and not 1^0, because n^0 = 1 Thanks; randerson112358
@sapnavats9105
@sapnavats9105 7 лет назад
I was solving some problems based on this theorem when i came across this one T(n)= 3T(n/4) + nlogn In this what do i consider d as?
@randerson112358
@randerson112358 7 лет назад
d=1 However, this Master Theorem is for functions that belong to Theta(n^d) where d > = 0. Your function nlogn does not. In this case d > logbase 4 of 3, but again this doesn't matter for this Master Theorem since it's not Theta(n^d). Try following this video below to determine the answer: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-mSX8jFgTCz0.html
@dicegameuchiha
@dicegameuchiha 8 лет назад
What if instead of n we have something like nlogn (the equation then being 4T(n/2) + nlogn. does d still remain 1, because in nlogn, n is the highest order term?
@randerson112358
@randerson112358 8 лет назад
The below video should help. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-i5kTZof1LRY.html Thanks for watching and Please subscribe ! randerson112358
@Daniel-wq4og
@Daniel-wq4og 9 лет назад
i guess, b should be > 1 instead of b > 0
@michael_womack
@michael_womack 9 лет назад
+Daniel G. (b > 1) is correct? Not (b > 0)?
@randerson112358
@randerson112358 9 лет назад
+Michael Womack , yes b > 1 and a >= 1.
@Daniel-wq4og
@Daniel-wq4og 9 лет назад
yes, Michael Womack , randerson112358 - you can read the definition and proof(s) in: Cormen - Introduction to Algorithms.Third Edition. (MIT Press)
@ebut0oy
@ebut0oy 8 лет назад
Hello Sir. I have a question. Is it true that b > 0? Shouldn't it be b > 1? E.G: T(n) = T(n-2)+n
@randerson112358
@randerson112358 8 лет назад
+ebut0oy Hi, first from your example T (n) = T(n-2)+n you cannot use the master theorem. The recurrence must be in the form as shown in the video Second b is only restricted to be greater than 0 because you cannot divide by 0. But you can divide by .05 or some number between 0 and 1.
@ebut0oy
@ebut0oy 8 лет назад
+randerson112358 Thank you very much for the quick answer!
@ebut0oy
@ebut0oy 8 лет назад
+randerson112358 Actually I've got another problem to solve... This time I don't know how to define "d"... 2^1/2 T(n/2) + log n How would you solve this? Thank you in advance for your help.
@randerson112358
@randerson112358 8 лет назад
+ebut0oy The below video should help you ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-6s_O6uVLSso.html
@randerson112358
@randerson112358 8 лет назад
+ebut0oy The below video should help you ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-6s_O6uVLSso.html
@Shshnk_Gpta
@Shshnk_Gpta 6 лет назад
Why don't you take a nap before making videos?
Далее
Master Theorem Problem & Solution
4:35
Просмотров 7 тыс.
Recurrence Relation Proof By Induction
7:42
Просмотров 74 тыс.
Обменялись песнями с POLI
00:18
Просмотров 956 тыс.
PERFECT PITCH FILTER.. (CR7 EDITION) 🙈😅
00:21
Просмотров 3,5 млн
Time Complexity Algorithm Analysis
6:29
Просмотров 53 тыс.
The Test That Terence Tao Aced at Age 7
11:13
Просмотров 4,3 млн
Fundamental Theorem of Calculus Explained | Outlier.org
16:27
What Lies Above Pascal's Triangle?
25:22
Просмотров 225 тыс.
The letter that revealed Ramanujan's genius
11:43
Просмотров 3,1 млн
The "Master" Theorem/Method, Derivation
23:33
Akra Bazzi Method/Theorem
12:05
Просмотров 11 тыс.
Gödel's Incompleteness Theorem - Numberphile
13:52
Просмотров 2,2 млн