How to calculate Catalan Number | Find Nth catalan number in most efficient ways (3 methods)

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ก.ย. 2024
  • This video explains how to calculate catalan numbers by using 3 methods. The methods include recursive, dynamic programming and binomial coefficient.If you find any difficulty or have any query then do COMMENT below. PLEASE help our channel by SUBSCRIBING and LIKE our video if you found it helpful...CYA :)
    PROOF of Time Complexity: stackoverflow....
    CODE LINK: drive.google.c...

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

  • @amarnath3660
    @amarnath3660 5 ปีที่แล้ว +20

    The simplicity of your explanation makes the videos very interesting. Superb explanation on Catalan number

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

    Cool Algo Buddy. I had solved problem 96 on leetcode by memoization but was wondering how to do it iteratively. And you nailed it

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

    all videos are very well compiled and explained. really impressed.

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

    Superb Explanation Sir...Three Approaches are explained very clearly...

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

    Best video available on this topic..........

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

    In the DP solution algo, at the end it will be return c[n-1] since it is 0 based. Great video!

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

    discrete math is so helpful in these situations, but I don't think I can remember 90% of what I learned from that class.... :(

  • @ShivamSingh-it8te
    @ShivamSingh-it8te 4 ปีที่แล้ว +2

    Crystal clear explanation! Maja aa gaya!😃😃👍

  • @vivekyadav-zx1kw
    @vivekyadav-zx1kw 3 ปีที่แล้ว

    Today i just left a question in Publicis Sapient "Number of Binary Search Tree"based on catalan number..
    Thanks for this video..

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

    as always fantastic and clear explanation

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

    watching 4th time actually😅..thanks

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

      Great ❤️ I think you have seen all my videos till date 😀

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

    Great..!!!
    Each step explained clearly

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

    triangular shape in space is minimized by square dynamic programming or it arrangement in space such that its row is the key of function of space management that is pascal's triangle.

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

    Explanation level 💯

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

    Awesome Explanation !

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

    Such a helpful explanation 😊 about Catalan ☺️☺️.. thank you sir ..

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

    thanks a lot bhaiya god bless u too 😍😍

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

    watching 3rd time😅..thanks🤭

  • @AmanKumar-ht8xi
    @AmanKumar-ht8xi 4 ปีที่แล้ว +2

    awesome explanation bro.. thank you

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

    such a helpful explanation.. Thanks a lot sir!

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

    Best explanation

  • @AyushGupta-kp9xf
    @AyushGupta-kp9xf 4 ปีที่แล้ว +1

    please always keep up your work.. all the best to you and thanks a lot

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

      Welcome bro :) I will continue if I continue getting support :)

    • @AyushGupta-kp9xf
      @AyushGupta-kp9xf 4 ปีที่แล้ว

      @@techdose4u full support to you always. 😊

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

    clean and best explanation

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

    Great Explanation sir

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

    Very well explained...loved it

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

    Your words at end of video's "feel free to ask" it's like " In desert someone ask me 'can you want water' "
    Thinking of DP problems by recursive approach ,do I need think a tree diagram every time 😓 , or I have just formulate the equation and then call recursively by taking care of time complexity.

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

      Thinking about recursive solution is I think the easiest way to form a dp formula. It works for me.

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

      @@techdose4u I mean, when you solving problems on Dp(problems based on recursive as we'll as tabular), your first step is made equation for the problem , and second step making the function for this problem by this equation and call it recursively, and taking care of base case , - IN this whole process did you think of tree diagram ? for entire recursive calls .

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

    Thanks again.....🙃🙃

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

    remembering my higher school mathematical concept

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

    Here's the easiest way. Begin (1, 1,) dot (1, 1) = 2. Place the 2 on the right of (1, 1,) getting (1, 1, 2). Reverse and take the dot product of (1, 1, 2) and (2, 1, 1), getting (2 + 1 + 2) = 5. Then place the 5 to the right of 1, 1, 2, 5 and take the dot product of the reverse,(5, 2, 1, 1) getting (5 + 2 + 2 + 5) = 14. Put 14 to the right of the ongoing string getting (1, 1, 2, 5, 14) and take the dot product of the reverse, so dot product of (1, 1, 2, 5, 14) and (14, 5, 2, 1, 1) = (14 + 5 + 4 + 5 + 14) = 42., etc.

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

    Can u explain the implementation of cataln mumber using recursion sir

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

      I will try that too

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

      @@techdose4u thank u sir

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

    Thank you

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

    You are doing great job 🥰

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

    Nice explanation sir.....

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

    great work sir

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

    understood the catalan number calculation but how to identify problems where this can be applied???

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

      Difficult to identify. You should either remeber Catalan number or remeber the problems where they are used. Otherwise if you see a series then confirm it on internet

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

      @@techdose4u thanks!!:)

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

    Simply best

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

    U r simply amazing

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

    there is direct formula for that is : Cn = [2*(2*n-1)*(Cn-1) ]/n+1

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

    If we give n=384 it is giving wrong output.. could u please check

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

    you are awesome man

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

    thank u sir!

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

    Sir can I use memorization for recursive approach 😊?.. I think it's stops again and again calculation 😊..

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

    how catalan(n)=2ncn/(n+1)
    could u plz tell what is mathematical intitution btwn them

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

      you can look wikipedia proof as author mentioned

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

    Thanks

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

    post more problems on dynamic programming

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

      Doing it bro :)

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

    U are awesome!

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

    good video!!

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

    can I get your handnotes please will be very grateful towards you!!!

  • @HimanshuSingh-ob9qo
    @HimanshuSingh-ob9qo 4 ปีที่แล้ว +1

    👍