L-2.7: Recurrence Relation [ T(n)= T(n/2) +c] | Master Theorem | Example-2 | Algorithm

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ม.ค. 2020
  • #MasterMethod#algorithm
    👉Subscribe to our new channel: / @varunainashots
    ►How Master Theorem Works: • L-2.6: Recurrence Rela...
    ►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

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

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

    I've been following you for almost a year now. It's been really helpful throughout. I've suggested your videos to other students as well. Thank you for wrapping up the whole idea in a few minutes clearly.

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

    Such an amazing Master theorem explanation! Literally the best on the internet! Thanks a lot for this @Gate Smashers ❤

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

    In a very short time u became my hero in all the teachers. Please keep teaching sir very soon you will become the best teacher. I really appreciate and very much impressed with your knowledge sir. Not only this subject u cover every part of DAA, CAO, Electronics which were burden of yesterday, you made it all crystal clear

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

    Whenever im free , i put on his video on youtube but i dont watch it, so that he gets the views and ads for doing such a great work for free :) @Gate Smashers

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

      Wow.. Thank you so much

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

      One gmail account gives only one view no matter how many times you see

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

      ​@@hemanthsaimadala4135not now

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

      ​@@hemanthsaimadala4135perhaps viewed hours are counted

    • @mutant_X_wolverine
      @mutant_X_wolverine 4 หลายเดือนก่อน +2

      ​@@hemanthsaimadala4135To ek hi vid thodi dektha hoga sari dekhta hog na bhi.... akela admi aur kya kre 😅😅😅😅

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

    brilliantly explained ... just 2 hours ago before viewing this series, I knew nothing and now I can say i know significant stuffs... thanks a lot ..

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

    great teaching skills!! on the point video!! really appreciate your efforts!!

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

    Thanks Sir It helped me after 1 year of upload and helpful to others too. 😊😊
    Thank You For practice questions 😃!!

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

    Do we need to necessarily bring down the constant while calculating the U(n) ?
    (The one which we multiplied with logn)
    Because through the table only the logarithm part is said to be considered

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

    you're great sir !!! what amazing tricks you have for studies, big fan sir

  • @nandiniagrawal3591
    @nandiniagrawal3591 4 ปีที่แล้ว

    Thank you sir for all the questions you provided. It helped me so much for my exams.

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

    This tutorial is very helpful and it is explained in very good manner .
    Thnks bhai/sir

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

    One of best videos
    i ever seen sir. Thank you so much sir. waiting for more videos related to gate exam ?

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

    sir i really appreciate your efforts and your teaching skills. i have a request could you please make videos on iteration and recursion tree method?

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

      Soon we will upload...

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

    thanks u sooo much ,wasa utube pa jldy kisi ki samj ni ati pr apka lectures ki samj ati ha .Great skills

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

    thank you sirji for the questions also, got'em all.

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

    The video was really good and helpful. Thank you for the practice questions!

    • @ophelia-_-aaa
      @ophelia-_-aaa 14 วันที่ผ่านมา

      I cannot find the practice questions. Can you please share the link?

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

    short and easily explained ...thanks a lot

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

    3:52 great explanation!
    thanks a lot ❤

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

    Thankyou so much sir, for your great efforts.

  • @infinity5503
    @infinity5503 4 ปีที่แล้ว

    crystal clear concept explanation.

  • @ajith.studyingmtech.atbits1512
    @ajith.studyingmtech.atbits1512 3 ปีที่แล้ว

    Excellent commitment.

  • @69upasonabiswas88
    @69upasonabiswas88 3 ปีที่แล้ว

    Thank you for the practice problems sir..:)

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

    Thank you Sir . outstanding explanation.

  • @himagnamallikorg
    @himagnamallikorg 17 วันที่ผ่านมา +1

    you are hope of many engineers 😊

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

    Thank you so much for the practice questions .. love you sir ..

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

      u can share with me those practise questions

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

    👍 Thank you sir!

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

    Excellently explain...

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

    Boht badiya. Thank you so much.

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

    Is it always the case that we get the log to the base 2 in the third case for U(n)?

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

    gjb gjb gjb....... superb sir.......

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

    practice set , and pdf ,,,It's very helpful
    Thank you sir
    Sir please provide gate previous year question and discuss this question...

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

    Well explained sir!!thnku

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

    Jahapna tusi great ho... Toufa Kabul kro🙏🏻🙏🏻

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

    Hi sir your videos are most interactive and easy to understand I have one query regarding the question 3 in the document provided in the link. If I calculate it is resulting me 8T(n/2)+qn = n, but the correct option in the sheet provided as n^3 could you please, explain this problem.

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

    wowww amazing lecture

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

    The running time of an algorithm T(n), where ‗n‘ is the input size, is given by-
    T (n) = T(n/2)+ logn, if n > 1 = p, if n = 1
    where p, q are constants. The order of this algorithm is-
    (a) n2(b) loglogn
    (c) logn (d) (logn)2
    i am getting loglogn as answer on this problem sir.

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

    Really great sir.

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

    Thank you for giving practice questions.
    Ab sabke Gate SMASH kar dunga!

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

    Please Discuss/ Explain Recursion Tree Problem also

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

    Tq so so much sir. This video is very useful.... sir can u pl make d videos on imp topics, tricks and tips for questions on algorithms considering nic -nileit exam

  • @atishayjain1303
    @atishayjain1303 4 ปีที่แล้ว

    Thanks sir for the great video, practice questions really help.

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

    T(n)= 8T(n/2) + (n^3/ log^2 n) sir for this question your method does not work h(n) is does not have category for to get u(n)
    T(n)=4T(n/2) + (n^2/ log n) same for this question

  • @GAU-C--RATNAKANTAHANSE
    @GAU-C--RATNAKANTAHANSE 3 ปีที่แล้ว

    Thank you sir...

  • @TheInfoGenie-bv2wt
    @TheInfoGenie-bv2wt 3 ปีที่แล้ว +1

    SIR YOUR CONTENT IS VERY LESS BUT ITS EFFICIENT IN MAY TIMES

  • @69upasonabiswas88
    @69upasonabiswas88 3 ปีที่แล้ว

    thank you sir..:)

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

    Sir daa ki series aage bhi bnao pls,, aapne bohat kam topics cover kiye h, jo sufficient nhi h slabus point of view se gate k... Nice video

  • @omyrazeem2571
    @omyrazeem2571 4 ปีที่แล้ว

    Good lecture

  • @NidhiSingh-qi5ip
    @NidhiSingh-qi5ip 3 ปีที่แล้ว +1

    Sir if there will be log in f(n) then how to solve that by this table for example T(n) =2T(n/2)+n/(log^2n)

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

    all great videos sir

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

    Thank you sir for the questions

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

    thankyou sir

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

    Great

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

    Thankyou sir

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

    hello sir, can you please explain this question
    The running time of an algorithm T(n), where ‗n‘ is the input size, is given by-
    T (n) = T(n-1)+ 1, if n > 1 = p, if n = 1
    where p, q are constants. The order of this algorithm is-

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

      try back substitution. Master's Theorem is invalid for this question.

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

    Good explanation

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

    In i was see this topic .I think like this is very dificult topic now this time this very easist topic in this syallbus

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

    Where is the link for questions?

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

    sir what if we get h(n) = (log n)^-1 then it will go in which case???
    the question was T(n)=4T(n/2) + n^2/log n
    kindly answer this sir, your method is very effective but I cant get this question
    @Gate Smashers

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

    The running time of an algorithm T(n), where ‗n‘ is the input size, is given by-
    T (n) = 3T(n/3)+ n/2, if n > 1
    The order of this algorithm is-
    If we solve this que by master method, then h(n) value will come constant. Isn't it?

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

      When h(n) will be constant then convert h(n) to third form (logn)^i,i>=O and then after solving t(n)=nlogn.

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

    Tnx sir👍❤️

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

    Thanks 😊🇧🇩

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

    The running time of an algorithm T(n), where ‗n‘ is the input size, is given by-
    T (n) = 8T(n/2)+ qn, if n > 1 = p, if n = 1
    where p, q are constants. The order of this algorithm is-
    (a) n 2 (b) n n
    (c) n 3 (d) n
    Solution: Option (c)
    Sir, how it is n^3 ? I got n as an answer. Please explain..

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

      Log a to the base b will be 3.. so it will be n3 .. and U(n) will come as O(1)

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

    sir if log(base2)power(n) = nlog2 = O(n)
    then why we put it O(log2N) atlast

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

    I solved the questions in the doc given in description & got all 7 correct 😉

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

      last question m n(logn)^2 kaisa aya ?? i got n +(log n)^2 as answer so where did the n come from in answer??

    • @GauravSharma-rb9mm
      @GauravSharma-rb9mm 2 หลายเดือนก่อน

      can u plz provide docs link

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

    Sir what about master theorem for substract and conquer... Please upload sir

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

    Sir gate exam ke liye master theorm par jyada focus kre ya substitution method par recurrence relation mein??

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

    Thank you for the material of questions

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

    Where is the Question File?
    I couldn't find it in the description box..
    Thank you for the amazing lectures sir❤

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

    Sir, Can we get the answers uploaded for the practise questions you have shared so that i can verify the steps followed are right or wrong?

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

      Where is the link please share here i didn't get it

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

    good class

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

    So beautiful sir.From Bangladesh.

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

    Sir i have a question..
    if my eq is t(n) = 8T(n/2)+3n^2 how should i solve it

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

    In the first question of the pdf the answer comes out to be O(n log n). But its given as O(n). Can u please explain.

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

    U are god

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

    Sir , would U pls attach answers for the qns using substitution method . Using master method it's easy to solve but using substitution method I am not getting ans .
    If any one solved using substitution method for the practice qns pls .... provide ans document

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

    sir please slove this
    T(n)=2T(n/2)+n/logn

  • @satyajitroul8180
    @satyajitroul8180 4 ปีที่แล้ว

    Thank you sir..for the PDF..😊

  • @adityatyagi898
    @adityatyagi898 4 ปีที่แล้ว

    Sir, is this another method of master's theorem?

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

    I can't find the link to the file where more problem questions are given. can you reply me with the link in comment?

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

    kindly solve the recurrence relation t(n)=t(3n/4)+1

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

    completed

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

    ❤️❤️

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

    T(n) = 8T(n/2) + n^3/logn
    what is the time complexity of this question and why

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

    Sir, Is this method applicable to decreasing functions also? for example t(n) = 2T(n-2) + n

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

      No, bcz b should greater then 1

  • @rsinfotech6792
    @rsinfotech6792 4 ปีที่แล้ว

    Sir iteration method ki video plz

  • @Naveenkumar-oz1rt
    @Naveenkumar-oz1rt 4 ปีที่แล้ว

    Sir i don't know how to solve log question.............means what is value for nlog33

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

    How did the value of i=0 ? please you didn't explain it.

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

    There s a table of h(n) and u(n) ....from there what s " i " ?

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

    Can you please solve T(n) = 2T(n/2) + nlogn using the same concept ?

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

    Can you please explain the Given Pdf Link Questions =...:) I have solved the Questions but there is confusion in Some Questions...

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

    i have doubt in a question plz rply me sir question is T(n)=25t(n/5)+n^4

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

    sir wheres the link for extra questions

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

    Please provide me the solution of Q3 in the attached practice sheet.?

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

    h(n) log base 2 n
    Right?

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

    can anyone explain why we took base as 2, as in log base 2 n)^0, isn't it given the common log in 3rd case??

    • @Coder-rohits
      @Coder-rohits ปีที่แล้ว

      bcz here the problem is based on binary algo.

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

    If sir H(n) =2^n then what will be the value of U(n)?

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

      Did you find any answer to this? Or does this method doesn't work for this

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

    Sir it's not working on 5T(n/4) + n^2,

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

    Where can i find the notes?? Can anyone help i can't find those notes of unsolved questions

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

    f(2N+1)=f(2N)=f(N)+logN sir how can solve it the answer give in upper bound

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

    please upload solution of practice questions,

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

      where are the practice question bro