L-2.4: Recurrence Relation [ T(n)= 2T(n/2) +n] | Substitution Method | Algorithm

  Рет қаралды 694,884

Gate Smashers

Gate Smashers

Күн бұрын

👉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 KZbin: / 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

Пікірлер: 152
@khushigandhi7322
@khushigandhi7322 2 жыл бұрын
This channel needs more recognition and reach! Amazing work!
@abhinay552
@abhinay552 6 ай бұрын
Hi
@Smartcity3184
@Smartcity3184 2 жыл бұрын
First for 2^2T( 2(n/2^3) ×n/4) +2n we need to multiply 4 × above whole bracket equation then we have the value of 2^3T((n/2^3)× 4n/4) +2n After divided 4n/4 we got n then add n +2n = 3n After that we have the equation 2^3T(n/2^3)+3n
@Smartcity3184
@Smartcity3184 2 жыл бұрын
Code with Ayush
@devpatel1298
@devpatel1298 Жыл бұрын
Thanks sir, Aaj me phone leke gaya tha Exam hall me aur ye question aagaya 😂 Course: B.E (IT Branch)
@AroojArmy
@AroojArmy Жыл бұрын
sir u made a mistake on 3:39 when 2^2 is cancel by 2 how it is still 2^2 i mean the ans should be 2 just........................
@xenonudaykhandare2836
@xenonudaykhandare2836 6 ай бұрын
bro multiply 2 with bracket... you will get 4T(T/4)+2n/2 and in next step take 4 as 2^2... got it..!!!
@Archana-j1w2f
@Archana-j1w2f 6 ай бұрын
Thanks bhai​@@xenonudaykhandare2836
@Drakeagarwal
@Drakeagarwal 2 ай бұрын
Bro you all are so dumb , 1st class child can understand that
@Micbutch
@Micbutch 2 ай бұрын
@@xenonudaykhandare2836 thanks for solving this
@nabilmalik5042
@nabilmalik5042 2 жыл бұрын
Dear teacher, I wish you a happy teacher's day. Thank you for being the guide and for inspiring me to do well in my studies. You are the best teacher HApPy tEaCheR'$ dAy
@mdtalhashaikh7650
@mdtalhashaikh7650 2 жыл бұрын
love you sir, The way of your explanation is too good
@SAKSHIKUMARIP
@SAKSHIKUMARIP 2 жыл бұрын
god bless you sir...most useful one!!!
@silverfanggaming3318
@silverfanggaming3318 2 ай бұрын
You are life saver sir...🫡 College exam k end time pe aap ki videos he kam aate hai. You are Life saver for all engineering community. Thank you sir.🫡🫡🫡🫡🫡
@amaanullah13
@amaanullah13 3 жыл бұрын
Sir bhot Bdhya samjhaya aapne Glad that I found this channel before time.
@amitgoswami7856
@amitgoswami7856 3 жыл бұрын
Sir congratulations to complete 6lakh subscriber
@DineshSingh-hx5kw
@DineshSingh-hx5kw 3 жыл бұрын
Owsm sir...keep doing this we extremely need this❣
@akshayavbca6704
@akshayavbca6704 2 жыл бұрын
honestly my savior , you're the best fam , you always keep things simple. love your videos keep doing 'em
@tanzidfardin5946
@tanzidfardin5946 9 ай бұрын
Nah man U deserve love. really grateful my frnd u just made it simple
@aamirdehngal2280
@aamirdehngal2280 3 жыл бұрын
Bhai Allah aapku himmat de 6 lakh sus.but 8 hours views only 800 ❤️❤️❤️
@shaniabalkhi8065
@shaniabalkhi8065 2 жыл бұрын
Awesome explanation! You just gained another subscriber!
@empathetic24671
@empathetic24671 2 жыл бұрын
Very well explained. Mujhe yeh video lagatar 3 baar dekhne pada par mera concept clear ho gaaya. Thank you very much sir!
@jyeshnupaturi9784
@jyeshnupaturi9784 Жыл бұрын
You are amazing!! Btw it will be great if you could include step count method, tabular method for calculating time complexity of an algorithm and also PRAM algorithms, string matching algorithms too
@romanasalim5335
@romanasalim5335 2 жыл бұрын
So what is the difference between iterative and substitution method in this qtn sir?
@dressbydeen
@dressbydeen 6 ай бұрын
The way sir says subscribe bahut zaroori hai Hits hard more than time complexity 2 ki power n
@akashpb4179
@akashpb4179 3 жыл бұрын
Srji apney college ke prof se zyada toh idhar acha samajh aa rha hai ... koi bhi stepwise explain nahi karta itna clearly kahi bhi
@meetshah9510
@meetshah9510 Жыл бұрын
Beta Dil se padhate he iss liye padho padho
@Homiechef7
@Homiechef7 5 ай бұрын
you're taking it in complicated way my college teacher explains it in very simple and easy way
@Abc-dk8cl
@Abc-dk8cl Жыл бұрын
Sir good work 👏. Achi Tara samajh ahi ha..
@shwetankjoshi3011
@shwetankjoshi3011 2 жыл бұрын
Every one make sure u like every one of sir's vdo other wise u will forget this in ur exam
@kaushikpubg5387
@kaushikpubg5387 2 жыл бұрын
Sir your explanation and you both are outstanding
@067-subhannitasaha8
@067-subhannitasaha8 2 жыл бұрын
Hi VARUN SIR ! HOPE YOU ARE DOING GREAT 😃 I have one confusion if = 2 ( 2T (n/4) + n/2 ) + n [ IN THIS STEP HOW YOU HAVE CUTTED THE VALUE 2 OF n/2 and the outer 2 ( i.e. outside the bracket ) = 2^2T ( n/2^2 + n/2 + n) = 2^2T ( n/2^2 + 2n ) HOW IS THIS POSSIBLE BEACAUSE YOU ALREADY CUTTED THE VALUE 2 FROM THE FIRST LINE I HAVE MENTIONED... PLEASE CLEAR OUT THIS DOUBT
@travelwithme4128
@travelwithme4128 2 жыл бұрын
He did Right check you again , he just multiply 2*n/2 and here 2 is cancle out
@sahilmusicsss
@sahilmusicsss Жыл бұрын
same ques
@raksharthjangid7506
@raksharthjangid7506 Жыл бұрын
the first 2 is multiplied individually inside the bracket. [ 2(2T(n/4)) ] + [ 2*n/2 ]
@jeetmallick508
@jeetmallick508 Жыл бұрын
Bhai mereko bhi ye doubt hua tha. Dobara uss line ka calculation karo individually. Hojaeyga.
@sjsjdfe3332
@sjsjdfe3332 Жыл бұрын
I also had this doubt
@maheshupadhyay52
@maheshupadhyay52 Ай бұрын
We are multiply by 2 on both equation sir ne jo karaya hai vo sahi h
@rajarshimandal3235
@rajarshimandal3235 3 жыл бұрын
Missing the old board😌
@AbhiShek.PandwaR
@AbhiShek.PandwaR 3 жыл бұрын
Great Explanation 😊😊 Keep it up ❤️💙
@ishitapaneru5023
@ishitapaneru5023 2 жыл бұрын
Thank you so much sir 💗☺️
@ihsankhattakofficial154
@ihsankhattakofficial154 Жыл бұрын
Best Teacher ever.
@vikrantprashantgurav9811
@vikrantprashantgurav9811 2 жыл бұрын
Sir you are an absolute legend
@zeeshanfarooq4204
@zeeshanfarooq4204 3 жыл бұрын
Congo sir 600k Love from pak ❤️
@KHALDANASREEN-uf7bl
@KHALDANASREEN-uf7bl Жыл бұрын
you are very very very good teacher 😊and looking like 😍😎❤
@hrishidev742rdx
@hrishidev742rdx 2 ай бұрын
how 2^2T is possible if you cut n/2 by outside 2 then their is only one 2 is left. If you multiply both then 2^2 is ok but you cut it.
@SunTzuTzu-xr9jv
@SunTzuTzu-xr9jv 7 ай бұрын
Sir, English version of your Lectures. Very great content ❤❤❤❤❤❤❤❤❤❤❤❤❤❤
@InformationRealistic_str
@InformationRealistic_str 7 ай бұрын
sir i am facing difficulty in substitution method and iterative method because the method that u use is same as our teacher taught in iterative method . so what is main difference between them can you help me
@InformationRealistic_str
@InformationRealistic_str 7 ай бұрын
Sir guide and help my DAA Paper is on monday 14 april
@aneesshahzad3082
@aneesshahzad3082 Жыл бұрын
2 ( 2T (n/4) + n/2 ) + n [ IN THIS STEP YOU MULTIPLY 2( 2T (n/4) + n/2 ) SO [2^2T(n/4)+2^(n/2)] + n [NOW IN THIS STEP CUTTED THE VALUE OF 2 IN THE FOLLOW EQ 2^(n/2) AND THE FINAL RESULTS OF THE GIVEN STEP IS 2^2T(n/2^2) +n+n => 2^2T(n/2^2) + 2n
@mummykdhaba
@mummykdhaba 11 ай бұрын
2 ki multiple kar di andar n se toh 2n upon 2 hogya fir 2 cancel hogya bacha n +n
@kalashsoni5072
@kalashsoni5072 2 ай бұрын
sir aap hi engg ki naiyaa paar lagaoge 🤩
@sushankbais4702
@sushankbais4702 Жыл бұрын
LORD SPOTTED 🛐🗿
@AnjuKumari-ft6qk
@AnjuKumari-ft6qk Жыл бұрын
Awesome explanation
@afrinmomin9594
@afrinmomin9594 Жыл бұрын
Hello Sir, Answer is T(n)=n+nlogn then how it become O(nlogn). It should be Ω(nlogn), isnt'it?
@ashokrajpurohit3671
@ashokrajpurohit3671 3 жыл бұрын
Acha smjate ho🔥
@Harpreetkaur-fd5fu
@Harpreetkaur-fd5fu 3 жыл бұрын
Happy Teacher's day sir 🙏✨💫
@snehadhulap5377
@snehadhulap5377 2 жыл бұрын
Sir muzhe mathematical induction and recursion ka lec chaiye tha ..video send kro na ap
@moonedCake
@moonedCake 3 жыл бұрын
Love the explanation ❤ No doubt you are a great teacher 🙏🏼 But, Lord knows who edits these videos! Reminding every other minute "subscribing" the channel is so annoying.
@mamtadhalla2718
@mamtadhalla2718 2 жыл бұрын
sir pls explain recurrence relation by iteration of second order equation
@audiozen2910
@audiozen2910 3 ай бұрын
i have a doubt : on 3rd line of answer we eliminated the outside 2 with n/2 then how come on fourth line we have 2^2
@world_of_programming9653
@world_of_programming9653 2 жыл бұрын
Sir how we cancel outer 2 with inner n/2 in 1st two equ's substitution. Coz outer 2 multiplied by all values.
@tahreemabdulqayyum8424
@tahreemabdulqayyum8424 2 жыл бұрын
Same question sir
@srishtishrivastava8818
@srishtishrivastava8818 2 жыл бұрын
2 is cancelled in multiplication with n/2 not in overall bracket after being multiplied by 2T(n/4).
@rahmanuddin184
@rahmanuddin184 2 жыл бұрын
Same question plz sir
@parthbatta7968
@parthbatta7968 2 жыл бұрын
you first do 2 x 2T(n/4) making it 2^2 T(n/4) then we do 2 x (n/2) which cancels 2.
@thedemonlord300
@thedemonlord300 2 жыл бұрын
@@parthbatta7968 thanks!
@takshakno7737
@takshakno7737 Жыл бұрын
sir just a doubt , why do we always take log both side always , i never understood this , 7:29 plz reply fast ...
@zainwasem
@zainwasem Жыл бұрын
Insane so good❤
@sobiarani2359
@sobiarani2359 11 ай бұрын
Great sr
@hisham6899
@hisham6899 Жыл бұрын
if you made these videos in english, it will be a great help to south indians who doesnt understand hindi.
@aartimashram6859
@aartimashram6859 2 жыл бұрын
Thanku sir❣️
@SaifUllahArshad-os8qu
@SaifUllahArshad-os8qu 6 ай бұрын
hats of ustad g 🫡💯
@Lokesh_yadav__
@Lokesh_yadav__ 2 жыл бұрын
Finally digital board😌
@Alan_christo
@Alan_christo 2 жыл бұрын
Thank you sir
@SILENT_4_M_6551
@SILENT_4_M_6551 3 жыл бұрын
Sir please upload AI and ML playlist Please 🙏🙏🙏
@Dimpledurgathenepalli
@Dimpledurgathenepalli 2 ай бұрын
In 3:28 if we write 2 square there, then how can we cancel the above 2 with 2 in n/2 in 3:37
@jies933
@jies933 2 жыл бұрын
Best
@ashni4932
@ashni4932 Жыл бұрын
Sir please do videos in english also 🙏
@sahilpatil5445
@sahilpatil5445 Жыл бұрын
1:00 aur device is suscribe kara doo...Chad moment 😎😂
@souvikbasak4396
@souvikbasak4396 Жыл бұрын
This relation is of which sort technique?
@aryanbatra5335
@aryanbatra5335 3 жыл бұрын
HAPPY TEACHERS DAY SIR!
@archanaverma3344
@archanaverma3344 3 жыл бұрын
Tq so much sir
@sreepornasikdarsikdar6184
@sreepornasikdarsikdar6184 6 ай бұрын
I think there is some mistake in the solution..if you are cancelling outer 2 with n/2 then how again you got that 2^2 ?
@LokeshKumar-jg8md
@LokeshKumar-jg8md 8 ай бұрын
Can we call this as iteration method??
@bunty_98technical4
@bunty_98technical4 3 жыл бұрын
2-way Merge Sort ka recursive equation
@MehndiDesignCollections
@MehndiDesignCollections 3 жыл бұрын
Sir computer vacancy ke preparation hoge kya
@talhariazx786
@talhariazx786 2 жыл бұрын
there is a mistake in the step where you cut 2*2 by 4
@AnimeBoy12377
@AnimeBoy12377 2 жыл бұрын
Sir agar n ke badle cn raha ga to kuch change ho ga kya
@Nuur_Rajput
@Nuur_Rajput Жыл бұрын
How can i solve T(n)=T(n/4)+T(n/2)+n² using recursion tree method
@teekshanheeragcet--
@teekshanheeragcet-- 2 жыл бұрын
ye n/2k kaise =1 daal skte ho marzi se
@anjalicharak2023
@anjalicharak2023 2 жыл бұрын
How can u divide 2 and n/2
@albatablays24
@albatablays24 3 жыл бұрын
yeh 2 square or 2 cube khn se aarha hy?
@amanjain0842
@amanjain0842 2 жыл бұрын
if i do this same question using Master method then the answer is O(n) . why ?
@learncseasily3385
@learncseasily3385 2 жыл бұрын
Because u done mistake
@himankgaming7555
@himankgaming7555 Жыл бұрын
that was the time complexity for merge sort
@radhamadhabpanda941
@radhamadhabpanda941 Жыл бұрын
Sir 2 square kahna se aya uspe
@saifahmed9152
@saifahmed9152 3 жыл бұрын
bhai shuru ki beat ka link bhej de, rap karna hai uspe
@janhaviraj5924
@janhaviraj5924 5 ай бұрын
2 square kaise aaya?
@soumikadey8260
@soumikadey8260 4 ай бұрын
❤🔥
@s.maazullah376
@s.maazullah376 9 ай бұрын
there's a mistake, where's the extra 2 coming from
@scorpionkingcr4523
@scorpionkingcr4523 3 жыл бұрын
Sir can you please make a video on following equation. 8T(n/2)+n^2 here T(1)=1. Plz sir after 15 days I have exams and this question is important 🙏
@akashprajapati2636
@akashprajapati2636 3 жыл бұрын
Bhai n/2 karke solve karta chala ja aa jayega
@abdventures
@abdventures Жыл бұрын
15 din me ek question toh khud se solve kar le bhai ab toh 1 sal ho gye hue kya??
@randomvideos979
@randomvideos979 10 ай бұрын
@anshul8415
@anshul8415 3 ай бұрын
For k time it become T(n/2^k + kn) 🧠
@azmeerasai2005
@azmeerasai2005 Жыл бұрын
By solving this question you did back substitution method wrong check it once.
@egames1877
@egames1877 2 жыл бұрын
yra equation kay numbers peh circle to karo sara time us peh stuck rha
@shivanisingh-ix9qm
@shivanisingh-ix9qm 3 жыл бұрын
👍
@malikahsan4053
@malikahsan4053 2 ай бұрын
Sir log ki base u hi nai ati es ye ati ha jab log n ko log 2 se divide krtey han tab ati ha Verna normally 10 hi hoti ha😁🤪
@saadbinghaffar2269
@saadbinghaffar2269 2 жыл бұрын
can anyone plese tell where these n^2 and n^3 are coming from plz
@anjalicharak2023
@anjalicharak2023 2 жыл бұрын
Where did T go in 4th step
@priyankarathour6222
@priyankarathour6222 3 жыл бұрын
Sir please solve this question by reccurance relations by substitution method an= an-1 +n× 3 power n where a not =1
@realtopg
@realtopg 3 жыл бұрын
Like here if you don't understand hindi but this be your only option🤣
@lord_yzal
@lord_yzal 2 жыл бұрын
completed
@Rinal-fv8ty
@Rinal-fv8ty Ай бұрын
if anyone can solve it for T(n) = T (n/2) + n. It would be great.
@anjalicharak2023
@anjalicharak2023 2 жыл бұрын
And where didn T go
@chaitanyarawat7538
@chaitanyarawat7538 Жыл бұрын
Sir n log(n) Dominating kaise hoga.... For ex: 9 > 9log(9)
@rukshanaaly7794
@rukshanaaly7794 2 жыл бұрын
I wish there is english subtitles for this sir :(
@glazefrect1337
@glazefrect1337 Жыл бұрын
There are...
@vinaykumar-ud7rh
@vinaykumar-ud7rh 3 жыл бұрын
sir 2 ko bracket open kr ke 2t se multiply kr raha ha fir n\2 se usko cancel kasa kr raha ho
@rutikpatil6758
@rutikpatil6758 3 жыл бұрын
By bodmas first solve bracket you have to first multiple 2T by 2 so that it became 2 [4T (n/4) + n] /2 this how it is cut outer 2 by deninometer 2 2 [ 2T (n/4) + n/2] + n 2 [ 4T (n/4) +n ] / 2 + n
@Unique_demon07
@Unique_demon07 Жыл бұрын
thanks
@meenakumar8779
@meenakumar8779 3 жыл бұрын
🙏🙏🙏🙏🙏👍👍👍👍👍
@NITESHKUMAR-sp6qj
@NITESHKUMAR-sp6qj 5 ай бұрын
sir 2 sqaure kaise hua isme
@MikasaAckerman-oz1hd
@MikasaAckerman-oz1hd 5 ай бұрын
2 already tha ak or 2 aya isliye
Accompanying my daughter to practice dance is so annoying #funny #cute#comedy
00:17
Funny daughter's daily life
Рет қаралды 12 МЛН
Don't underestimate anyone
00:47
奇軒Tricking
Рет қаралды 17 МЛН
Каха и лужа  #непосредственнокаха
00:15
Algorithms - Solving Recurrence Relations By Substitution
19:05
Ryan Schachte
Рет қаралды 92 М.
2.1.2 Recurrence Relation (T(n)= T(n-1) + n) #2
16:00
Abdul Bari
Рет қаралды 1 МЛН
Solving Recurrence relation- T(n)=2T(n/2)+1
17:36
Kunj Bihari Meena
Рет қаралды 27 М.
Accompanying my daughter to practice dance is so annoying #funny #cute#comedy
00:17
Funny daughter's daily life
Рет қаралды 12 МЛН