L-2.9: Recurrence Relation [T(n)= 2T(n/2) +cn] | Recursive Tree method | Algorithm
ฝัง
- เผยแพร่เมื่อ 2 ต.ค. 2024
- 👉Subscribe to our new channel: / @varunainashots
►Design and Analysis of algorithms (DAA) (Complete Playlist):
• Design and Analysis of...
Other subject-wise playlist Links:
--------------------------------------------------------------------------------------------------------------------------------------
► Operating System :
• Operating System (Comp...
►Database Management System:
• DBMS (Database Managem...
► Theory of Computation
• TOC(Theory of Computat...
►Artificial Intelligence:
• Artificial Intelligenc...
►Computer Networks (Complete Playlist):
• Computer Networks (Com...
►Computer Architecture (Complete Playlist):
• Computer Organization ...
►Structured Query Language (SQL):
• Structured Query Langu...
►Discrete Mathematics:
• Discrete Mathematics
►Compiler Design:
• Compiler Design (Compl...
►Number System:
• Number system
►Cloud Computing & BIG Data:
• Cloud Computing & BIG ...
►Software Engineering:
• Software Engineering
►Data Structure:
• Data Structure
►Graph Theory:
• Graph Theory
►Programming in C:
• C Programming
►Digital Logic:
• Digital Logic (Complet...
---------------------------------------------------------------------------------------------------------------------------------------
Our social media Links:
► Subscribe to us on TH-cam: / gatesmashers
►Subscribe to our new channel: / @varunainashots
► Like our page on Facebook: / gatesmashers
► Follow us on Instagram: / gate.smashers
► Follow us on Instagram: / varunainashots
► Follow us on Telegram: t.me/gatesmash...
► Follow us on Threads: www.threads.ne...
--------------------------------------------------------------------------------------------------------------------------------------
►For Any Query, Suggestion or notes contribution:
Email us at: gatesmashers2018@gmail.com
Exam in a hour
R.I.P
2pm bro
Same
Exam in minutes
To bhai comment kyon karrae o
Subscribers bahut zaroori hai.
Subscribers bahut zaroori hai.
Last night before exam 😂
1 hour before the exam😆
30 min before exam 😂@@shambhavirani87
One of the best teachers i've ever found on youtube, may God bless you señor and SUBSCRIBERS BAHUT JROORI HAIN 😁.........Love you 🥰 sir.
ap nahi hote toh humara kya hota sir
DP se ta ledki lag rehi ho... Number share karna ta banta hai bhai..
@@Patra_Kirsani chappal ka number chaiye ya jutte ka?
@@Nirmala1824 Are bhai mojak kar raha thaa... Dil pe kyuin le lete ho yaar
😂😭😂
Sir I studied half of my BSCS course from your TH-cam videos
Exam in few minutes 😬
Chuhun
Same condition 😰
On morning my exam and I am seeing video 😅
Bhai konsi degree ka exam de rhe ho
Solve the following recurrence equations: (8 Marks)
(i) T(n) = 2T(n/2) + 0(n)
(ii) T(n) = T(n - 1) + 0(n)
i) O(n log n)
ii ) O(n^2)
Best and Worst case time complexity respectively.
agar sir aap ham jaise bachho ko na pda the hote to fail hi jate aapko videos dekh Kar bhut confidence aata hai aur paper bhi achhe se ho jata hai college Vale khud hi confuse rahte hai samjh nahi aata 🙏🙏
Thank you sir sare sub yahi se pade hai maine hamere teacher kya padte hai kuch pata nahi wo bhi khud confusion mai rehte hai 😂😂
Thank a lot
How did you calculate height of tree as " log n " ?? 😔🤔🤔
divide and conquer approach is calculated in log base 2 to the power n where n is the cost(constant).If this doesn't makes any sense then try yourself by using a calculator and putting the equation log base2 (16) answer would be 4. Hope this helps :)
Log is the number of times a number is divided.
Let at the last leaf of tree
Situation will be like t(n/2^h) in each leaf where h = height
And at the last each leaf should be equal to 1
Then
n/2^h = 1
n = 2^h
Take log both side
Log n = Log 2^h
Log n = h Log 2
H = Log n / Log 2
H = Log n base 2
Sir humne yaha divide kiu kia hai
n fir 2n fir 3n ....
Esa kiu nahi liya hai ????
Plzz answer 🙏
Baal katwa liye bhaiya iss vedio mein 😂😂
Video is useful 👍
Very nice lecture very helpful 👌
Thanks for the heart ❤
Sir,mere pass degree to nhi hai koi,but apke channel ki vja se , knowledge bhaut hai,kya mje kisi trah ,job mil skti hai,
hmm
Nice explanation sir 👍👍👍
Sir humne yaha divide kiu kia hai
n fir 2n fir 3n ....
Esa kiu nahi liya hai ????
Plzz answer 🙏
Is there an English version? Please try a(n+1)=3*a(n)^(1/3)/(2+a(n)), a(0)=1/2.
love you sir
thanku sir
subscribers is very important broo !!! Or else u won't understand bro!
Subscribers bhot jaroori hai😂
Awsm Sir
I feel one thing from bottom of my heart.... Sir aap sach m bhagwan h kyuki apki whjse hi m aaj 3rd year m hi baki clg m jesa padate h usse to mujhe lgta hai ki m padna hi band krdetii 😂
Sir, currently I'm following your DBMS course and that is amazing, also completed your OS playlist. I have a request to make, please make videos on Machine Learning.
Big fan from vadodara
Sir humne yaha divide kiu kia hai
n fir 2n fir 3n ....
Esa kiu nahi liya hai ????
Plzz answer 🙏❤
Sir m apke bare m jitna likhon utna km h ap bhot achha samjhate ho sir 😊
Sir humne yaha divide kiu kia hai
n fir 2n fir 3n ....
Esa kiu nahi liya hai ????
Plzz answer 🙏❤❤
sir pls do your content in english sir
Thank you so much sir you save my whole tym☺️🥰❤️
Could you please solve a recurrence problem for me? T(n)=T(n-1) +1/(2^n). It's very urgent. I/m supposed to solve it tonight. I have some more problems like this. I'll really very thankful if you help me solving recurrence problems as I have Final exam tomorrow.
aap ko c nahi likhna chahiye sath..kyun ke c to end pe aye ga :)
Sir polytechnic lecturer ke liye koi course series laiye
I also willing for same
Beta vo polytechnic ko nhi padhayenge chutiye ko nhi padhate h
@@Akori_vlogs I think you are too educated 🙏
@@Aarti-Sweetshots I will take free class for polytechnic if you interested reply me
bhagvan aap k jise beard sab ko de 😍
Super
thnx Just understood this concept in few mins .keep it up
1:26 ok sir
Congratulations to 10 million TH-cam subscribers
sir very gooodu teaching sir😀
Can u teach mee
@@tejasvics5766 per class fee 5k
Sir meko ye video smjh aa gya lekin isse related questions me doubt h vo kaise clear kru?😢
so this method is for special case or every case?
everything is temporary but subscribers boht zaruri hai is permanent
Sir i have a question that why shuold i take only 3 levels in tree...not more or less
Aur devices se subscribe karke kya karu jab muje ek hi device se parna hai😂
Who is having exam tomorrow 😄?
😩😩
🥺😂
Abhi h aadhe ghante bd 😂🤣
Nice explanation sir☺️☺️☺️👌👌
I am not like you i am studying before two months
Kal subha 6th semester ka exam hain
marhaba..ya habibi..
Yes sir padhai se jyada important h subscribe 💀
Thank you so much sir❤😍
Exam in one minute 😊
Net jrf ke liye padhte padhte ab soch raha ki gate bhi dedu
as it is n/2 so we are dividing it in two parts ? Suppose it is n/3 , so we will divide it is 3 parts right ? ..
do let me know if you find the answer for n/3
Sir is it possible by substitution method?
Exam in few hours
Already in exam hall😅
thanks bhai🙏🙏
you literally save my life and grade before every paper!!
Kuch nahi hona wala bhai Tera exam mai
@@saptarshideb Bhai nahi behen hai😂😂😂
sir iska answer subsitution se O(n^2) aa rha hai.
nahi bhai nlogn he aaye ga aagar aa ktimes ke equation nikal ke n = 2^k , log n = k log 2 , k = log n aab isse kth equation me put karo answer O(nlogn) ayega
Aur master theorem Se bhi o(n^2) aa rha hai
🤔🤔
@@micmac2677 nahi c.nlogn hi ayega
T[n]=n*u[n], h[n]=c, so we can write it as (logn)^0*c then we follow the relation between h[n] and u[n],so u[n]=clogn
so the ans is T[n]=cnlogn.
Quiz in a hour 😅
Hlo sir plxx make video on decision tree
Exam in 20 min
He looks like Swagger Sharma
explain about master therom please
Are chaccha algorithm bhi batana tha
Amazing very helpful before one day of exam
Solve this problem sir please
okay
Thank you sir it helps a lot
Nai smj aya
6:20 pe kya kar dia smajh nahi aaya
can you plz solve T(n)= 2t(n/2)+nlogn with substitution method , n>1?
Yes..?
answer is big oh(n); 0(n)
thankyou so much sir
Tq❤
Thank you sir
Sir,Can you pls explain in English..Humble request
completed
❤
❤❤
❤
Thank u🌷
What about the 2t??
please make a playlist on automata ,agle sem mai autmata hai class mai toh padhai hogi nhi aapse hi padhna hai at the end of sem
superb 😃
O(Awesome)!
#question
can somebody tell me how height is Log-n ?
vahi to samjh nah aya ....
formula hai wo
@@poonawala2303 let me explain lets say height is k. so 1st level is 0 and number of inputs is n which we can write as n/2^0 which is n/1 that is n. Then in level 1 n is divided into two parts n/2^1 and n/2^1 now see the power of 2 is same as level. So at kth level it become n/2^k and this n/2^k will become 1 when you reach end . so 1=n/2^k . solving this we get k=log n. where k is the height.
hi
Sns
Sir recurrence relation,iteration method say kesay ho ga .is pr bi koi video bna den....
😊😊💯💯👍👍👍
Thank you sir ...
Sir isko master theorem Se krne pr o(n^2) aa rha hai
O(nlogn) aayega Yaar ध्यान se check करो
Thank you sir
Thank you sir 😌
2.8 video sy agai mazak kr Raha hai..
Topi pehna raha hai😒
Great sir
Thank you sir
Exam is in next 30 mins 😢😢
I wish I knew Hindi🫠