4.6.2 [New] Optimal Binary Search Tree Successful and Unsuccessful Probability - Dynamic Programming

Поділитися
Вставка
  • Опубліковано 2 жов 2024
  • Optimal Binary Search Tree using Successful and Unsuccessful Search Probabilities​
    PATREON : www.patreon.co...
    Courses on Udemy
    ================
    Java Programming
    www.udemy.com/...
    Data Structures using C and C++
    www.udemy.com/...
    C++ Programming
    www.udemy.com/...

КОМЕНТАРІ • 280

  • @rohitdubey6104
    @rohitdubey6104 4 роки тому +214

    Sir you can spend all your life from the blessings and appreciations of the fellow students around the world.

  • @markmerante8342
    @markmerante8342 5 місяців тому +28

    May you please fix the video and audio delay? It's very distracting and I can't really understand since it's not in sync.

    • @sameedstien6118
      @sameedstien6118 4 місяці тому

      My video works fine though

    • @Voltage765
      @Voltage765 3 місяці тому

      True, it really distracts a lot

  • @JennyslecturesCSIT
    @JennyslecturesCSIT 5 років тому +72

    Great explanation..

    • @ShayantanSantra
      @ShayantanSantra 4 роки тому +7

      Hiiiii mam!!!!! You and sir are my favorite teachers!

    • @divyam69
      @divyam69 Рік тому +10

      ma'am aap bhi yaha se study krte ho 😏😏😏😏

    • @amitsaha3858
      @amitsaha3858 3 місяці тому +1

      😂😂

  • @needimanh
    @needimanh 3 роки тому +62

    For students in a hurry learn the formulas and start the video from 34:40

  • @abdullahbabor4876
    @abdullahbabor4876 4 роки тому +297

    I would encourage everyone to try out his Udemy courses. I am not getting paid for saying this, and I am just one of his students from the University of Michigan. May Allah bless The great Abdul Bari Sir.

  • @poojapooh2322
    @poojapooh2322 5 років тому +58

    Sir .Thank u very much for all videos on DAA....V all gave the best in our exams just because of ur videos....the way u thought is just perfect and very effective to us sir...Once again thank you very much sir..
    Looking further for many videos ....

  • @sane7263
    @sane7263 2 роки тому +7

    This videos are awesome ❤
    Question: w[i][j] = w[I][j-1]+Pj+Qj
    So, w[1][1] = w[1][0] + 3 + 3 = N/a + 3 + 3 = 6
    but you go with w[1][1] = 3. Why?

    • @thealchemist1480
      @thealchemist1480 2 роки тому +1

      I am also wondering this

    • @akhilaggarwal8846
      @akhilaggarwal8846 Рік тому

      If you got to know answer please let us also know in the comment.

    • @thuglife8201
      @thuglife8201 Рік тому

      36:20

    • @danielnguyen2624
      @danielnguyen2624 Рік тому

      yeah after all the prasing, he got me confused now, I hate myself cause i don't understand what he said

    • @divyam69
      @divyam69 Рік тому +1

      he wrote W00 as q value, as the formula is Wij = Wi,j-1 + pj + qj and pj which is p0 in this case is not defined as p starts from 1 not 0

  • @alijawad2498
    @alijawad2498 4 роки тому +12

    Thanks sir. I had two questions
    1. c[0,0] should equal to w[0,0] because of the formula "c[i,j] = w[i,j] + mini

  • @RaviKumar-vk6ib
    @RaviKumar-vk6ib 4 роки тому +11

    Not Impressed Sir ...the toughest and the most important part of the problem was to arrive at the equation...and you have skipped the entire concept and have written the formula!!!And the entire 56 minutes video has content which everyone knows...

  • @lakshmiprathyushaveturi4980
    @lakshmiprathyushaveturi4980 3 роки тому +50

    I am really fortunate to have a teacher like u sir for understanding such difficult topics just in few minutes each. I have also bought core Java course in Udemy platform only because of his way of teaching that reaches every student . Even I am thankful to u sir as u r responding to my doubts very quickly in Udemy . Thanks alot sir ....

  • @樂樂-y5j
    @樂樂-y5j 4 роки тому +10

    I wish you could be the professor of Computer Science of Taiwan

  • @Manish-xc6is
    @Manish-xc6is 3 роки тому +3

    19:20 you said for unsuccessful search we need to consider before level and multiply with probability
    But you wrote 4*
    It must be 3* right??

    • @anjus6319
      @anjus6319 Рік тому

      Ya..i had the same question

  • @AkshayrajKore
    @AkshayrajKore 4 роки тому +19

    Once you have the recurrence relation (recursion formula), constructing the table is relatively straightforward. I'd like to find out - how did you come up with the recurrence relation (recursion formula) in the first place ? I don't think you went over that part in the video.

    • @yuvantbesre1297
      @yuvantbesre1297 4 роки тому +3

      There are videos available covering the topic of recurrence relations. Check his algorithm playlists...

  • @raiden3027
    @raiden3027 4 місяці тому +2

    Sir, there is an audio delay starting from 24:40 . I guess you have cut out a part of the audio, but not the video. Could you please fix it. It would be helpful!

  • @keshav-ip7vx
    @keshav-ip7vx 4 роки тому +8

    Sir, why did you stop uploading videos, all your videos inspire me to learn more 🥺🥺🥺🥺🥺

  • @samiamuhammad8140
    @samiamuhammad8140 5 років тому +34

    May Allah gives you the best. The way your explain is much better than a professor who is graduated form Ivy League universities . I bought his course in udmy and the materials became easy.

    • @kusumaseera3753
      @kusumaseera3753 4 роки тому +1

      Is the material available in udemy course??

    • @tanveeralitapya7258
      @tanveeralitapya7258 3 роки тому +5

      @@kusumaseera3753 Yes! His Udemy courses are just extraordinary, just like his YT videos. I'd definitely recommend this to anyone who wants to master Data Structures.

  • @thealchemist1480
    @thealchemist1480 2 роки тому +4

    Sir one question: W is the summation of P and Q values. But while calculating w00,w11,w22... you considered only Q values, Why so?

    • @jswlprtk
      @jswlprtk Рік тому +2

      Because j-i == 0 so there are no nodes in the tree so any search will always be unsuccessful. Seriously implicit big brain move

    • @sussygirlboss
      @sussygirlboss Рік тому

      @@jswlprtk THANK YOU!!!

  • @abhinavdixit3037
    @abhinavdixit3037 4 роки тому +6

    Dear Abdul Bari Sir,
    Thank you So much for all of your videos , which you have provided that too for free in a time where education has certainly became a business may god give you more and more strength and all your dreams come true...#beautyofIndia
    Yours Thankfully,
    Abhinav,
    Indore(M.P.)

  • @pranavnyavanandi9710
    @pranavnyavanandi9710 2 роки тому +2

    How did c[i, j] suddenly become min(i < k

    • @PawanKumar-jk1yy
      @PawanKumar-jk1yy 6 місяців тому

      I think that is only for finding the cost but if you want to find the root then we have to apply the second one .

  • @EyadOfficialy
    @EyadOfficialy 3 роки тому +5

    problem of OBST starts from 24:20

  • @pranavnyavanandi9710
    @pranavnyavanandi9710 2 роки тому +1

    The formula was not explained properly, how did we arrive at the formula for c[i, j]? I only understood till c[0, n]. Someone please clarify this. And what does c[2, 4] even mean? c[0, n] means cost of a binary tree with n nodes given. c[2, 4], what does that mean?

    • @Suvam1508
      @Suvam1508 2 роки тому

      cost means the amount of comparison you need to do minimise the operations from one key to another

  • @ARItoo-pk4lc
    @ARItoo-pk4lc 5 років тому +22

    Assalamualaikum sir G, have a course on "Automata". Watching from Kashmir University.

  • @adityamore90
    @adityamore90 3 роки тому +9

    The most beautiful thing about you is you are so humble sir and keep smiling and teach concept thoroughly.😀Awesome content sir, thank you so much for spreading knowledge in world...

  • @gauravthakkar802
    @gauravthakkar802 5 років тому +11

    Got an exam tomorrow and here I am watching this ..Thank you so much sir

  • @kittuvenkat5157
    @kittuvenkat5157 3 місяці тому +1

    audio is going ahead of the video sir....otherwise it is pretty good....

  • @itsmeuniverse7
    @itsmeuniverse7 2 роки тому +1

    at 38:00 the x axis are the i values, not the j values as you've written. I think it was a mistake?

  • @grekhacreation4876
    @grekhacreation4876 3 роки тому +2

    Bahot sundar

  • @riazquadri
    @riazquadri 4 роки тому +5

    My lecturer for data structures, the best lecturer all the times.👍👍👍

  • @kumarakash5219
    @kumarakash5219 3 роки тому +1

    Sir my college teacher teaches from your videos only

  • @ajaytammineni1696
    @ajaytammineni1696 9 місяців тому +1

    R14 = 1 🙄

  • @Thepankaz1
    @Thepankaz1 5 років тому +5

    isn't null check also a comparison for square nodes.

  • @danielnguyen2624
    @danielnguyen2624 Рік тому +1

    this lesson is so confusing. The explaination is short, and not clear. Why w[1,1] = q1 . Help please

  • @ananyathukral100
    @ananyathukral100 5 років тому +4

    Can you please upload a video of bipartite graph and augmentation concepts!

  • @satya8411
    @satya8411 4 роки тому +2

    I just open ur video first like it and start listening , I know I will obviously like it . Who on earth are not impressed with ur videos!?? ❤️❤️❤️❤️

  • @rajvardhan4615
    @rajvardhan4615 Рік тому +1

    34:38 this is for what all you guys came here for!

  • @Farahat1234
    @Farahat1234 2 роки тому +2

    Maximum subjects i have learnt from you in my engineering, today is 27march2022 and my engineering is completed in 2021🙂

  • @PCCOERCoder
    @PCCOERCoder 5 місяців тому +1

    Best Video on obst. I loved it.

  • @suraj_on_youtube
    @suraj_on_youtube 3 роки тому +1

    Example Problem: 34:38

  • @comatosesperrow
    @comatosesperrow 5 років тому +6

    ABDUL YOU ARE THE MAN!

  • @I_am_Gulfam
    @I_am_Gulfam 10 місяців тому +1

    may Alllah bless you sir , very easy explanation ✨✨✨✨✨✨👌👌👌👌

  • @sidindian1982
    @sidindian1982 Рік тому +1

    Brilliantly Explained .. Cost + Weight & the root

  • @kunalsoni3906
    @kunalsoni3906 2 роки тому +2

    sir in beginning i was unable to understand the concept but as the question starts and you start to explain from there I got the concept and also got myself stress free. Thanks for the video.

  • @islammeanssuccess6377
    @islammeanssuccess6377 5 років тому +1

    Sir plzzzzzzzzzzzzzzz make videos on automata computation .. theory of computation and automata ... Plzzzzzzzzzzzzzzz sir ... Ur way of learning is great .. thank you sir

  • @swagtech4895
    @swagtech4895 2 роки тому +2

    Great explanation sir! Hands off to your teaching skills and also thankful to you for this valuable content. Helped me to understand every critical concept just within minutes.
    👌🙏

  • @rapunzel_tangled
    @rapunzel_tangled 3 роки тому +2

    Thank you so much to your channel🙏🙏🙏Your are helping students a lot in learning this subject. I'm really feeling thankful to you & your videos. That has helped me a lot in getting good Mark's in my semester result. I really felt so doubtfull before watching your videos because in my college they didn't explained this shortcut methods. After watching your videos I got confidence to write my exam & got good grade in that. Thank you so much🙏🙏🙏 I definitely suggest each & every student to use this platform👏👏

  • @arjungarg7656
    @arjungarg7656 Рік тому +1

    w(11) should be equals to p(1)+q(1)=6

  • @nihalsyd7442
    @nihalsyd7442 2 роки тому +1

    Allah aapko hamesha khushh rakhe sir!!😃😃

  • @gibranfahad6876
    @gibranfahad6876 3 роки тому +1

    thank you so much sir for helping me out , i was facing a lot of difficulty prior to now solving this problem..!!

  • @furkankanarya2370
    @furkankanarya2370 2 роки тому +2

    That is the greatest explanation I've ever heard. Thank you so much! I appreciate your work 🙏🙏

  • @Cinemakaka12
    @Cinemakaka12 3 роки тому +1

    Like here

  • @motema_mpembe
    @motema_mpembe Рік тому +1

    Thank You, Sir! This has been extremely helpful and very clear!

  • @GurpreetKaur-vr2wo
    @GurpreetKaur-vr2wo Рік тому +1

    How probably p, q is calulated?

  • @arunitbaidya6118
    @arunitbaidya6118 4 роки тому +1

    Thank you for making video including unsuccessful probability as well

  • @AstroDeeptej
    @AstroDeeptej Рік тому

    [SUGGESTION] the video is nice, but if there are chapters in the video then it makes it easy for learners at different levels to jump right to the section they want to

  • @MuraliKrishna-ut7ir
    @MuraliKrishna-ut7ir Рік тому

    W[i,j]=qi+ { pi+1 to pj & qi+1 to qj}. May be wrong in the example so that it will add up pj while w00,w11,w33,w44 too.. kindly check once.

  • @danielnguyen2624
    @danielnguyen2624 Рік тому

    This starts to give me confusion now. why W[1,1]= q1, but not p1. Is that for the probabilitty of finding the first node?. Someone helps please

  • @noname-jl8sp
    @noname-jl8sp 3 роки тому

    Sir could you please do a onething Sir please sir sir please update c++ programming language solutions,more problems add more questions,add more updates sir please sir please d within one month sir sir it will increase our efficiency your are my favourite sir please sir iam ready to pay 200$ if you update same course but please continue in whiteboard currently i think you may free please sir please in udemy

  • @TracyTang-c9o
    @TracyTang-c9o 13 днів тому

    is it me or that this specific video has lags between vidoe and voice?

  • @ХристоИлиев-ы7с
    @ХристоИлиев-ы7с 5 років тому +6

    Thank you, you are my savior! :)

    • @AS97861
      @AS97861 5 років тому

      Христо Илиев I totally agree!

  • @utkarshpatil244
    @utkarshpatil244 Рік тому

    Why did they take probability level for unsuccessful search for greater than 40 as 4 and not 3 at 19.08 sec.....

  • @shchen16
    @shchen16 8 місяців тому

    c[i, i] should be equal to w[i, i], since each failure nodes still comes with cost.
    Other than that, this video is great at demonstrating the procedure of finding the OBST. Thanks for this video!

  • @skzaffarekbal1820
    @skzaffarekbal1820 5 років тому +1

    Sir I am your big fan. Your explanation are unique. Please sir upload all video on data structures.

  • @ashwaniponia3817
    @ashwaniponia3817 5 років тому +1

    Should the cost of C[0][0],C[1][1],C[2][2],C[3][3],C[4][4] ={2,3,1,1,1 } respectively ?

  • @thechikku
    @thechikku 6 місяців тому

    Where is great explanation nothing here why the students come here because they didn't know how to do the problem and sir your doing short cut pls clear all the values how to take

  • @jeremiahthomas7594
    @jeremiahthomas7594 3 роки тому +1

    Love to shop stock illustration! Great analogy, sir!

  • @pranavnyavanandi9710
    @pranavnyavanandi9710 2 роки тому

    Hello Sir, can you please explain me why the formula for finding the number of possible BSTs for 'n' given nodes is given by ( 2^n C n )/ n + 1? What is the derivation for this? Does anybody else also ponder this? If anyone reading this comment has an idea, please explain. Thanks.

  • @ajmalkhaniit
    @ajmalkhaniit 5 років тому +1

    Assalamu Alaikum Sir there is no one like you in teaching field

  • @Sanmayce
    @Sanmayce 5 років тому +1

    Thanks for the sharing.
    Isn't the B-tree order 3 (2 keys, 3 leaves) better in all scenarios?

  • @divyajami5458
    @divyajami5458 3 роки тому +1

    Thank you for this well explained video :D

  • @ragipindi.dhanalakshmi9643
    @ragipindi.dhanalakshmi9643 3 роки тому +1

    How to take pi and qi values

  • @anjaligupta8562
    @anjaligupta8562 4 роки тому +3

    Sir, While finding value of C[ 0,0 ] , C[ 1,1 ]..... that time first term is not applicable because of value of K but W[i,j] we have to add which is not equal to zero. So why you are not considering that term? I got doubt here. Please reply sir.

  • @kafkatamura2461
    @kafkatamura2461 Рік тому

    I'm getting
    C03 = 23 and r24 = 3 or 4.
    Any other person getting same value like mine ?

  • @TOI-700
    @TOI-700 3 роки тому

    Why sir is not uploading videos nowadays ?,where can I see latest videos,you were my the only teacher, please upload 🙏

  • @ailachanakyadarahas6156
    @ailachanakyadarahas6156 2 роки тому +1

    If every college has a teacher like u than definitely wonders are made....in computer science

  • @kartikshetty4493
    @kartikshetty4493 5 років тому +2

    Advance part of algorithms

  • @JavaAidTutorials
    @JavaAidTutorials 5 років тому +1

    Nice explanation sir..(Y) #JAVAAID

  • @anandbaskaran
    @anandbaskaran 2 роки тому

    I am a bit lost because, I am not clear how the formula is derived (same situation in the previous videos too)

  • @SRNR_PODCAST.
    @SRNR_PODCAST. 3 роки тому +1

    a goldmine in youtube

  • @riyasnaiks1261
    @riyasnaiks1261 4 роки тому +1

    Aslamalekum sir, awesome explaination

  • @tarunsingh2571
    @tarunsingh2571 5 років тому +3

    Sir please continue on your java series plz sir , you're seriously the best teacher . Keep up the good work

  • @YH-cd7xh
    @YH-cd7xh 4 роки тому +4

    The previous videos are really clear, but since the binary search tree, I do not understand what is C[i,j], what is w[i,j], totally confused what happened...

  • @tanishkashinde9383
    @tanishkashinde9383 Рік тому +1

    Sir taught me this concept within an hour when I was struggling to understand this since 3 days. Hats off to you sir

  • @tech-hack-game
    @tech-hack-game Рік тому

    My teacher made this super boring 😂😂
    it's so interesting

  • @swetachoudhary4137
    @swetachoudhary4137 2 роки тому

    What if cost value are same for different keys
    Then which should be taken as minimum and as a route value

  • @tejasdhanagare3698
    @tejasdhanagare3698 3 роки тому +1

    astounding stuff...u r indeed the saviour....thx a lot sir

    • @CodingWithPrakash_
      @CodingWithPrakash_ 3 роки тому

      Mock interview on leetcode problem ua-cam.com/video/SISO0tVk1_c/v-deo.html

  • @alterguy4327
    @alterguy4327 4 роки тому

    Sir your data structures courses is uploaded on UA-cam. And also the same person has provided a malicious link in every video. Please take some actions.

  • @hemesh5663
    @hemesh5663 2 роки тому

    Can somebody tell me please why in first row we are using q(i/j) value alone

  • @noorzainab7462
    @noorzainab7462 Рік тому +1

    Greatest explanation ...

  • @joelnada3483
    @joelnada3483 3 роки тому +1

    Thank you very much sir

  • @jasminpurani3479
    @jasminpurani3479 5 років тому +1

    Sir can you please explain graph matching and edmond's blossom algorithm to compute augmenting path! please .......

  • @indra9013
    @indra9013 2 роки тому +1

    You are the god’s gift to us…. This semester you helped us a lot, I have purchased your data structure course,and going to buy Java course, if you can create two or three courses of engineering subject, it will light the life of many…. No other academic teacher like you..

  • @imee29
    @imee29 3 роки тому

    sir in the question p and q values are given in decimals how did you conv
    ert them in to integers sir will you plz explain it sir?

  • @pritomdasradheshyam2154
    @pritomdasradheshyam2154 4 роки тому +2

    Your explanations are so good sir, my master's Univ teachers can't even teach to your simplicity and fun way.

  • @rajeshdonepudi1
    @rajeshdonepudi1 5 років тому +1

    Awesome teaching nobody can teach like this..

  • @snehaguttula3792
    @snehaguttula3792 2 роки тому

    Sir will we have the successful searches and unsuccessful searches in the question or not

  • @26-e-kiranraut4
    @26-e-kiranraut4 Рік тому +1

    Vedio helped a lot thanku

  • @afshanfathima976
    @afshanfathima976 4 роки тому

    Can somebody please get me the derivation of the optimal binary search tree recursive formula urgently!!!

  • @born_for_drama
    @born_for_drama 5 років тому +3

    Congratulations for 100k Subscribers Sir 😍😍

  • @littlemisterlong7292
    @littlemisterlong7292 Рік тому

    so do you have to find the successful search/unsuccessful search or its given?

  • @srivathsanv9116
    @srivathsanv9116 3 роки тому

    if it's level -1, why is he using 4 *.. int unsuccessfull search