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

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

  • @learnandtravel7722
    @learnandtravel7722 ปีที่แล้ว +218

    Exam in a hour

    • @R00059
      @R00059 9 หลายเดือนก่อน +7

      R.I.P

    • @Hercules-rf8ry
      @Hercules-rf8ry 8 หลายเดือนก่อน +3

      2pm bro

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

      Same

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

      Exam in minutes

    • @MuhammadUsman-nn9ff
      @MuhammadUsman-nn9ff 7 หลายเดือนก่อน

      To bhai comment kyon karrae o

  • @icewiz7347
    @icewiz7347 8 หลายเดือนก่อน +4

    Subscribers bahut zaroori hai.

    • @defterwings1
      @defterwings1 8 หลายเดือนก่อน +1

      Subscribers bahut zaroori hai.

  • @OTAKU_1818
    @OTAKU_1818 3 หลายเดือนก่อน +11

    Last night before exam 😂

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

      1 hour before the exam😆

    • @programmar-jn4oe
      @programmar-jn4oe หลายเดือนก่อน

      30 min before exam 😂​@@shambhavirani87

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

    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.

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

    ap nahi hote toh humara kya hota sir

    • @Patra_Kirsani
      @Patra_Kirsani 23 วันที่ผ่านมา

      DP se ta ledki lag rehi ho... Number share karna ta banta hai bhai..

    • @Nirmala1824
      @Nirmala1824 23 วันที่ผ่านมา

      @@Patra_Kirsani chappal ka number chaiye ya jutte ka?

    • @Patra_Kirsani
      @Patra_Kirsani 23 วันที่ผ่านมา

      @@Nirmala1824 Are bhai mojak kar raha thaa... Dil pe kyuin le lete ho yaar

    • @pristudyin
      @pristudyin 16 วันที่ผ่านมา

      😂😭😂

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

    Sir I studied half of my BSCS course from your TH-cam videos

  • @AstonMartin-h6k
    @AstonMartin-h6k 9 หลายเดือนก่อน +5

    Exam in few minutes 😬

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

      Chuhun

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

      Same condition 😰

  • @SupaStrikers-pr6bc
    @SupaStrikers-pr6bc 5 หลายเดือนก่อน +3

    On morning my exam and I am seeing video 😅

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

      Bhai konsi degree ka exam de rhe ho

  • @cricketclip357
    @cricketclip357 ปีที่แล้ว +7

    Solve the following recurrence equations: (8 Marks)
    (i) T(n) = 2T(n/2) + 0(n)
    (ii) T(n) = T(n - 1) + 0(n)

    • @sohangchaudhari1219
      @sohangchaudhari1219 9 วันที่ผ่านมา

      i) O(n log n)
      ii ) O(n^2)
      Best and Worst case time complexity respectively.

  • @जयमहाकाल-स7ड
    @जयमहाकाल-स7ड ปีที่แล้ว +7

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

  • @Manishkumar-yb6xw
    @Manishkumar-yb6xw 2 ปีที่แล้ว +4

    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

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

    How did you calculate height of tree as " log n " ?? 😔🤔🤔

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

      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 :)

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

      Log is the number of times a number is divided.

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

      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

  • @ARSAGAMING69
    @ARSAGAMING69 5 หลายเดือนก่อน +1

    Sir humne yaha divide kiu kia hai
    n fir 2n fir 3n ....
    Esa kiu nahi liya hai ????
    Plzz answer 🙏

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

    Baal katwa liye bhaiya iss vedio mein 😂😂

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

    Video is useful 👍

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

    Very nice lecture very helpful 👌

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

    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,

  • @amandeep-op2up
    @amandeep-op2up 3 ปีที่แล้ว +4

    Nice explanation sir 👍👍👍

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

    Sir humne yaha divide kiu kia hai
    n fir 2n fir 3n ....
    Esa kiu nahi liya hai ????
    Plzz answer 🙏

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

    Is there an English version? Please try a(n+1)=3*a(n)^(1/3)/(2+a(n)), a(0)=1/2.

  • @AYUSHCHAUHAN-p1m
    @AYUSHCHAUHAN-p1m 21 วันที่ผ่านมา +1

    love you sir

  • @RahulSharma-iu5ox
    @RahulSharma-iu5ox ปีที่แล้ว

    thanku sir

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

    subscribers is very important broo !!! Or else u won't understand bro!

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

    Subscribers bhot jaroori hai😂

  • @DineshSingh-hx5kw
    @DineshSingh-hx5kw 3 ปีที่แล้ว

    Awsm Sir

  • @gunjanpandey1466
    @gunjanpandey1466 9 วันที่ผ่านมา

    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 😂

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

    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.

  • @kripashankartiwari721
    @kripashankartiwari721 3 ปีที่แล้ว

    Big fan from vadodara

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

    Sir humne yaha divide kiu kia hai
    n fir 2n fir 3n ....
    Esa kiu nahi liya hai ????
    Plzz answer 🙏❤

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

    Sir m apke bare m jitna likhon utna km h ap bhot achha samjhate ho sir 😊

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

    Sir humne yaha divide kiu kia hai
    n fir 2n fir 3n ....
    Esa kiu nahi liya hai ????
    Plzz answer 🙏❤❤

  • @Drago20041
    @Drago20041 4 หลายเดือนก่อน +1

    sir pls do your content in english sir

  • @FireGaming-vq3nh
    @FireGaming-vq3nh ปีที่แล้ว +4

    Thank you so much sir you save my whole tym☺️🥰❤️

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

    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.

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

    aap ko c nahi likhna chahiye sath..kyun ke c to end pe aye ga :)

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

    Sir polytechnic lecturer ke liye koi course series laiye

    • @Aarti-Sweetshots
      @Aarti-Sweetshots 3 ปีที่แล้ว

      I also willing for same

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

      Beta vo polytechnic ko nhi padhayenge chutiye ko nhi padhate h

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

      @@Akori_vlogs I think you are too educated 🙏

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

      @@Aarti-Sweetshots I will take free class for polytechnic if you interested reply me

  • @carrotiq6879
    @carrotiq6879 3 หลายเดือนก่อน +1

    bhagvan aap k jise beard sab ko de 😍

  • @sarfrazahmed4282
    @sarfrazahmed4282 3 ปีที่แล้ว

    Super

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

    thnx Just understood this concept in few mins .keep it up

  • @APstudent-y6s
    @APstudent-y6s 7 หลายเดือนก่อน

    1:26 ok sir

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

    Congratulations to 10 million TH-cam subscribers

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

    sir very gooodu teaching sir😀

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

    Sir meko ye video smjh aa gya lekin isse related questions me doubt h vo kaise clear kru?😢

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

    so this method is for special case or every case?

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

    everything is temporary but subscribers boht zaruri hai is permanent

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

    Sir i have a question that why shuold i take only 3 levels in tree...not more or less

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

    Aur devices se subscribe karke kya karu jab muje ek hi device se parna hai😂

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

    Who is having exam tomorrow 😄?

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

    Nice explanation sir☺️☺️☺️👌👌

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

      I am not like you i am studying before two months

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

    Kal subha 6th semester ka exam hain

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

    marhaba..ya habibi..

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

    Yes sir padhai se jyada important h subscribe 💀

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

    Thank you so much sir❤😍

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

    Exam in one minute 😊

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

    Net jrf ke liye padhte padhte ab soch raha ki gate bhi dedu

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

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

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

      do let me know if you find the answer for n/3

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

    Sir is it possible by substitution method?

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

    Exam in few hours

  • @SalimAnsari-cy8iw
    @SalimAnsari-cy8iw 2 หลายเดือนก่อน

    Already in exam hall😅

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

    thanks bhai🙏🙏

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

    you literally save my life and grade before every paper!!

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

      Kuch nahi hona wala bhai Tera exam mai

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

      ​@@saptarshideb Bhai nahi behen hai😂😂😂

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

    sir iska answer subsitution se O(n^2) aa rha hai.

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

      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

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

      Aur master theorem Se bhi o(n^2) aa rha hai
      🤔🤔

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

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

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

    Quiz in a hour 😅

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

    Hlo sir plxx make video on decision tree

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

    Exam in 20 min

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

    He looks like Swagger Sharma

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

    explain about master therom please

  • @Ramlakhan123-gg1qk
    @Ramlakhan123-gg1qk ปีที่แล้ว

    Are chaccha algorithm bhi batana tha

  • @MayaTech-lm7pm
    @MayaTech-lm7pm 10 หลายเดือนก่อน

    Amazing very helpful before one day of exam

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

    Solve this problem sir please

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

    okay

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

    Thank you sir it helps a lot

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

    Nai smj aya

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

    6:20 pe kya kar dia smajh nahi aaya

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

    can you plz solve T(n)= 2t(n/2)+nlogn with substitution method , n>1?

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

    thankyou so much sir

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

    Tq❤

  • @a.n.a.n.y.a
    @a.n.a.n.y.a ปีที่แล้ว

    Thank you sir

  • @EUCB-ASMITHAAA
    @EUCB-ASMITHAAA 2 ปีที่แล้ว

    Sir,Can you pls explain in English..Humble request

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

    completed

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

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

    ❤❤

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

  • @TechAndroJavaOfficial
    @TechAndroJavaOfficial 3 ปีที่แล้ว

    Thank u🌷

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

    What about the 2t??

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

    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

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

      superb 😃

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

    O(Awesome)!

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

    #question
    can somebody tell me how height is Log-n ?

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

      vahi to samjh nah aya ....

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

      formula hai wo

    • @suryasikharej5511
      @suryasikharej5511 11 หลายเดือนก่อน +1

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

  • @HarshithReddyVoladri-hc2lh
    @HarshithReddyVoladri-hc2lh 5 หลายเดือนก่อน

    hi

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

    Sns

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

    Sir recurrence relation,iteration method say kesay ho ga .is pr bi koi video bna den....

  • @vinayaksharma-ys3ip
    @vinayaksharma-ys3ip 2 ปีที่แล้ว

    😊😊💯💯👍👍👍

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

    Thank you sir ...

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

    Sir isko master theorem Se krne pr o(n^2) aa rha hai

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

      O(nlogn) aayega Yaar ध्यान se check करो

  • @principalrsr3499
    @principalrsr3499 3 ปีที่แล้ว

    Thank you sir

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

    Thank you sir 😌

  • @amirkhan-ok7gx
    @amirkhan-ok7gx 2 ปีที่แล้ว

    2.8 video sy agai mazak kr Raha hai..
    Topi pehna raha hai😒

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

    Great sir

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

    Exam is in next 30 mins 😢😢

  • @hope50_78
    @hope50_78 18 วันที่ผ่านมา

    I wish I knew Hindi🫠