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

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 ส.ค. 2021
  • 👉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/gatesmashersofficial
    ► Follow us on Threads: www.threads.net/@gate.smashers
    --------------------------------------------------------------------------------------------------------------------------------------
    ►For Any Query, Suggestion or notes contribution:
    Email us at: gatesmashers2018@gmail.com

ความคิดเห็น • 141

  • @khushigandhi7322
    @khushigandhi7322 2 ปีที่แล้ว +52

    This channel needs more recognition and reach! Amazing work!

    • @abhinay552
      @abhinay552 หลายเดือนก่อน

      Hi

  • @akshayavbca6704
    @akshayavbca6704 2 ปีที่แล้ว +2

    honestly my savior , you're the best fam , you always keep things simple. love your videos keep doing 'em

  • @shaniabalkhi8065
    @shaniabalkhi8065 2 ปีที่แล้ว +3

    Awesome explanation! You just gained another subscriber!

  • @nabilmalik5042
    @nabilmalik5042 ปีที่แล้ว +12

    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

  • @DineshSingh-hx5kw
    @DineshSingh-hx5kw 2 ปีที่แล้ว +5

    Owsm sir...keep doing this we extremely need this❣

  • @SAKSHIKUMARIP
    @SAKSHIKUMARIP 2 ปีที่แล้ว +5

    god bless you sir...most useful one!!!

  • @mdtalhashaikh7650
    @mdtalhashaikh7650 ปีที่แล้ว +4

    love you sir, The way of your explanation is too good

  • @amaanullah13
    @amaanullah13 2 ปีที่แล้ว +1

    Sir bhot Bdhya samjhaya aapne
    Glad that I found this channel before time.

  • @tanzidfardin5946
    @tanzidfardin5946 4 หลายเดือนก่อน

    Nah man U deserve love. really grateful my frnd u just made it simple

  • @jyeshnupaturi9784
    @jyeshnupaturi9784 7 หลายเดือนก่อน +1

    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

  • @kaushikpubg5387
    @kaushikpubg5387 ปีที่แล้ว +1

    Sir your explanation and you both are outstanding

  • @Rijul_Anand
    @Rijul_Anand 2 ปีที่แล้ว +5

    Great Explanation 😊😊
    Keep it up ❤️💙

  • @vikrantprashantgurav9811
    @vikrantprashantgurav9811 2 ปีที่แล้ว

    Sir you are an absolute legend

  • @amitgoswami7856
    @amitgoswami7856 2 ปีที่แล้ว +10

    Sir congratulations to complete 6lakh subscriber

  • @romanasalim5335
    @romanasalim5335 2 ปีที่แล้ว +14

    So what is the difference between iterative and substitution method in this qtn sir?

  • @Smartcity3184
    @Smartcity3184 ปีที่แล้ว +3

    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

  • @ishitapaneru5023
    @ishitapaneru5023 2 ปีที่แล้ว +2

    Thank you so much sir 💗☺️

  • @user-dg7yo9nz4x
    @user-dg7yo9nz4x 27 วันที่ผ่านมา

    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..

  • @aamirdehngal2280
    @aamirdehngal2280 2 ปีที่แล้ว +3

    Bhai Allah aapku himmat de 6 lakh sus.but 8 hours views only 800 ❤️❤️❤️

  • @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!

  • @ihsankhattakofficial154
    @ihsankhattakofficial154 8 หลายเดือนก่อน

    Best Teacher ever.

  • @zainwasem
    @zainwasem ปีที่แล้ว

    Insane so good❤

  • @Harpreetkaur-fd5fu
    @Harpreetkaur-fd5fu 2 ปีที่แล้ว +1

    Happy Teacher's day sir
    🙏✨💫

  • @shwetankjoshi3011
    @shwetankjoshi3011 2 ปีที่แล้ว

    Every one make sure u like every one of sir's vdo other wise u will forget this in ur exam

  • @akashpb4179
    @akashpb4179 2 ปีที่แล้ว +13

    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 9 หลายเดือนก่อน +1

      Beta Dil se padhate he iss liye padho padho

  • @devpatel1298
    @devpatel1298 9 หลายเดือนก่อน +3

    Thanks sir,
    Aaj me phone leke gaya tha Exam hall me aur ye question aagaya 😂
    Course: B.E (IT Branch)

  • @AnjuKumari-ft6qk
    @AnjuKumari-ft6qk ปีที่แล้ว

    Awesome explanation

  • @zeeshanfarooq4204
    @zeeshanfarooq4204 2 ปีที่แล้ว +1

    Congo sir 600k
    Love from pak ❤️

  • @mohitkaushik21
    @mohitkaushik21 ปีที่แล้ว +1

    Thanks sir 😊

  • @aryanbatra5335
    @aryanbatra5335 2 ปีที่แล้ว

    HAPPY TEACHERS DAY SIR!

  • @dressbydeen
    @dressbydeen หลายเดือนก่อน

    The way sir says subscribe bahut zaroori hai
    Hits hard more than time complexity 2 ki power n

  • @user-dh4dr2wm2g
    @user-dh4dr2wm2g 8 หลายเดือนก่อน +11

    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 หลายเดือนก่อน +2

      bro multiply 2 with bracket... you will get 4T(T/4)+2n/2 and in next step take 4 as 2^2... got it..!!!

    • @user-bu1ef8qh6q
      @user-bu1ef8qh6q หลายเดือนก่อน

      Thanks bhai​@@xenonudaykhandare2836

  • @rajarshimandal3235
    @rajarshimandal3235 2 ปีที่แล้ว +5

    Missing the old board😌

  • @abhi34776
    @abhi34776 ปีที่แล้ว

    thankyou so much sir

  • @archanaverma3344
    @archanaverma3344 2 ปีที่แล้ว

    Tq so much sir

  • @mamtadhalla2718
    @mamtadhalla2718 2 ปีที่แล้ว

    sir pls explain recurrence relation by iteration of second order equation

  • @afrinmomin9594
    @afrinmomin9594 ปีที่แล้ว +1

    Hello Sir, Answer is T(n)=n+nlogn then how it become O(nlogn). It should be Ω(nlogn), isnt'it?

  • @ashokrajpurohit3671
    @ashokrajpurohit3671 2 ปีที่แล้ว +1

    Acha smjate ho🔥

  • @KHALDANASREEN-uf7bl
    @KHALDANASREEN-uf7bl ปีที่แล้ว

    you are very very very good teacher 😊and looking like 😍😎❤

  • @067-subhannitasaha8
    @067-subhannitasaha8 ปีที่แล้ว +48

    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 ปีที่แล้ว +1

      same ques

    • @raksharthjangid7506
      @raksharthjangid7506 ปีที่แล้ว +13

      the first 2 is multiplied individually inside the bracket. [ 2(2T(n/4)) ] + [ 2*n/2 ]

    • @jeetmallick508
      @jeetmallick508 ปีที่แล้ว +2

      Bhai mereko bhi ye doubt hua tha. Dobara uss line ka calculation karo individually. Hojaeyga.

    • @sjsjdfe3332
      @sjsjdfe3332 ปีที่แล้ว

      I also had this doubt

  • @sobiarani2359
    @sobiarani2359 7 หลายเดือนก่อน

    Great sr

  • @aartimashram6859
    @aartimashram6859 2 ปีที่แล้ว

    Thanku sir❣️

  • @Akash-dd6ev
    @Akash-dd6ev ปีที่แล้ว

    thank you sir

  • @shivanisingh-ix9qm
    @shivanisingh-ix9qm 2 ปีที่แล้ว +1

    👍

  • @takshakno7737
    @takshakno7737 9 หลายเดือนก่อน +1

    sir just a doubt , why do we always take log both side always , i never understood this , 7:29 plz reply fast ...

  • @SunTzuTzu-xr9jv
    @SunTzuTzu-xr9jv 3 หลายเดือนก่อน

    Sir, English version of your Lectures. Very great content ❤❤❤❤❤❤❤❤❤❤❤❤❤❤

  • @SILENT_4_M_6551
    @SILENT_4_M_6551 2 ปีที่แล้ว +1

    Sir please upload AI and ML playlist
    Please 🙏🙏🙏

  • @moonedCake
    @moonedCake 2 ปีที่แล้ว +5

    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.

  • @UmerKhan-ro3dy
    @UmerKhan-ro3dy ปีที่แล้ว

    Best

  • @sushankbais4702
    @sushankbais4702 ปีที่แล้ว +1

    LORD SPOTTED 🛐🗿

  • @world_of_programming9653
    @world_of_programming9653 2 ปีที่แล้ว +58

    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 ปีที่แล้ว +4

      Same question sir

    • @srishtishrivastava8818
      @srishtishrivastava8818 2 ปีที่แล้ว +24

      2 is cancelled in multiplication with n/2 not in overall bracket after being multiplied by 2T(n/4).

    • @rahmanuddin184
      @rahmanuddin184 2 ปีที่แล้ว +1

      Same question plz sir

    • @parthbatta7968
      @parthbatta7968 2 ปีที่แล้ว +20

      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!

  • @snehadhulap5377
    @snehadhulap5377 2 ปีที่แล้ว +1

    Sir muzhe mathematical induction and recursion ka lec chaiye tha ..video send kro na ap

  • @SaifUllahArshad-os8qu
    @SaifUllahArshad-os8qu หลายเดือนก่อน

    hats of ustad g 🫡💯

  • @Lokesh_yadav__
    @Lokesh_yadav__ 2 ปีที่แล้ว +1

    Finally digital board😌

  • @bunty_98technical4
    @bunty_98technical4 2 ปีที่แล้ว +1

    2-way Merge Sort ka recursive equation

  • @Nuur_Rajput
    @Nuur_Rajput ปีที่แล้ว

    How can i solve T(n)=T(n/4)+T(n/2)+n² using recursion tree method

  • @souvikbasak4396
    @souvikbasak4396 9 หลายเดือนก่อน

    This relation is of which sort technique?

  • @himankgaming7555
    @himankgaming7555 ปีที่แล้ว

    that was the time complexity for merge sort

  • @lord_yzal
    @lord_yzal ปีที่แล้ว

    completed

  • @anjalicharak2023
    @anjalicharak2023 2 ปีที่แล้ว +1

    How can u divide 2 and n/2

  • @chaitanyarawat7538
    @chaitanyarawat7538 ปีที่แล้ว

    Sir n log(n)
    Dominating kaise hoga....
    For ex:
    9 > 9log(9)

  • @ashni4932
    @ashni4932 ปีที่แล้ว

    Sir please do videos in english also 🙏

  • @meenakumar8779
    @meenakumar8779 2 ปีที่แล้ว +1

    🙏🙏🙏🙏🙏👍👍👍👍👍

  • @hisham6899
    @hisham6899 ปีที่แล้ว

    if you made these videos in english, it will be a great help to south indians who doesnt understand hindi.

  • @LokeshKumar-jg8md
    @LokeshKumar-jg8md 4 หลายเดือนก่อน

    Can we call this as iteration method??

  • @sreepornasikdarsikdar6184
    @sreepornasikdarsikdar6184 หลายเดือนก่อน

    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 ?

  • @talhariazx786
    @talhariazx786 ปีที่แล้ว

    there is a mistake in the step where you cut 2*2 by 4

  • @saadbinghaffar2269
    @saadbinghaffar2269 ปีที่แล้ว

    can anyone plese tell where these n^2 and n^3 are coming from plz

  • @ABDURREHMAN-ze8bn
    @ABDURREHMAN-ze8bn 2 หลายเดือนก่อน +1

    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

    • @ABDURREHMAN-ze8bn
      @ABDURREHMAN-ze8bn 2 หลายเดือนก่อน

      Sir guide and help my DAA Paper is on monday 14 april

  • @MehndiDesignCollections
    @MehndiDesignCollections 2 ปีที่แล้ว +1

    Sir computer vacancy ke preparation hoge kya

  • @rukshanaaly7794
    @rukshanaaly7794 ปีที่แล้ว

    I wish there is english subtitles for this sir :(

  • @smrpkrl
    @smrpkrl 2 หลายเดือนก่อน

    3:13

  • @amanjain0842
    @amanjain0842 2 ปีที่แล้ว +1

    if i do this same question using Master method then the answer is O(n) . why ?

  • @scorpionkingcr4523
    @scorpionkingcr4523 2 ปีที่แล้ว +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 2 ปีที่แล้ว

      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 5 หลายเดือนก่อน

  • @priyankarathour6222
    @priyankarathour6222 2 ปีที่แล้ว

    Sir please solve this question by reccurance relations by substitution method an= an-1 +n× 3 power n where a not =1

  • @aneesshahzad3082
    @aneesshahzad3082 7 หลายเดือนก่อน

    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 7 หลายเดือนก่อน

      2 ki multiple kar di andar n se toh 2n upon 2 hogya fir 2 cancel hogya bacha n +n

  • @AnimeBoy12377
    @AnimeBoy12377 2 ปีที่แล้ว

    Sir agar n ke badle cn raha ga to kuch change ho ga kya

  • @user-bc8fi3xl3b
    @user-bc8fi3xl3b ปีที่แล้ว

    thanks

  • @egames1877
    @egames1877 ปีที่แล้ว

    yra equation kay numbers peh circle to karo sara time us peh stuck rha

  • @anjalicharak2023
    @anjalicharak2023 2 ปีที่แล้ว

    Where did T go in 4th step

  • @s.maazullah376
    @s.maazullah376 4 หลายเดือนก่อน

    there's a mistake, where's the extra 2 coming from

  • @azmeerasai2005
    @azmeerasai2005 10 หลายเดือนก่อน

    By solving this question you did back substitution method wrong check it once.

  • @saifahmed9152
    @saifahmed9152 2 ปีที่แล้ว +1

    bhai shuru ki beat ka link bhej de, rap karna hai uspe

  • @albatablays24
    @albatablays24 2 ปีที่แล้ว

    yeh 2 square or 2 cube khn se aarha hy?

  • @teekshanheeragcet--
    @teekshanheeragcet-- 2 ปีที่แล้ว +1

    ye n/2k kaise =1 daal skte ho marzi se

  • @anjalicharak2023
    @anjalicharak2023 2 ปีที่แล้ว

    And where didn T go

  • @sahilpatil5445
    @sahilpatil5445 ปีที่แล้ว

    1:00 aur device is suscribe kara doo...Chad moment 😎😂

  • @radhamadhabpanda941
    @radhamadhabpanda941 ปีที่แล้ว

    Sir 2 square kahna se aya uspe

  • @vinaykumar-ud7rh
    @vinaykumar-ud7rh 2 ปีที่แล้ว

    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 2 ปีที่แล้ว +5

      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

  • @janhaviraj5924
    @janhaviraj5924 11 วันที่ผ่านมา

    2 square kaise aaya?

  • @shivakarthikrathod2026
    @shivakarthikrathod2026 2 ปีที่แล้ว

    u changed the board

  • @Nuur_Rajput
    @Nuur_Rajput ปีที่แล้ว

    Sir??

  • @basanghimire8119
    @basanghimire8119 ปีที่แล้ว

    Is this Iteration Method?

    • @umairbhai4257
      @umairbhai4257 ปีที่แล้ว

      Yr batao yeh iteration ha I am also confuse

  • @realtopg
    @realtopg 2 ปีที่แล้ว +1

    Like here if you don't understand hindi but this be your only option🤣

  • @NITESHKUMAR-sp6qj
    @NITESHKUMAR-sp6qj 20 วันที่ผ่านมา

    sir 2 sqaure kaise hua isme

  • @anjalicharak2023
    @anjalicharak2023 2 ปีที่แล้ว

    Ye toh galat hai

  • @piyushrajak8973
    @piyushrajak8973 2 ปีที่แล้ว

    Sir u forget to cut one of the 2's

  • @pubgsgreat3499
    @pubgsgreat3499 2 ปีที่แล้ว

    didnt understand on 3:28 how 2^2 is made plz can anyone explain me this !!!!!!!!!!!!!!

    • @rutikpatil6758
      @rutikpatil6758 2 ปีที่แล้ว

      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

    • @Senpai45389
      @Senpai45389 2 ปีที่แล้ว +1

      @@rutikpatil6758 thanks

  • @yusufarsln98
    @yusufarsln98 2 ปีที่แล้ว

    don't give an english topic if you will not speak English!

    • @motivationnationchannel1824
      @motivationnationchannel1824 3 หลายเดือนก่อน

      If you're not Indian.. Tell your people from your country who speak the same language to make tutorial video