7.8 Max Heap Insertion and Deletion | Heap Tree Insertion and Deletion with example| Data Structure

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 พ.ย. 2024

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

  • @BruceLee-qc2lm
    @BruceLee-qc2lm 9 หลายเดือนก่อน +34

    People at my University always complain about people with accents in videos, but they're actually some of the best videos and provide the best explanations! I understand these videos 10x more than other videos I've seen

    • @khaledmaati
      @khaledmaati 6 หลายเดือนก่อน +4

      I litteraly came back to this exact video because of her lovely accent and clear explaination.

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

      Yeah, a good teacher is good with or without an accent. Only the explanation matters. In this case, it was a great explanation!

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

    Merhaba from Turkey, I am grateful for your helping hand Jenny, it is very nice of you.
    Despite that I am not a student prepping for exams, I found your videos very helpful in my professional life of software.
    In addition to the lecture, array always starts with "0" so that Parent Index: Floor ( (ChildIndex - 1)/2 )
    and as for Children;
    Left Child Index :2xParentIndex + 1 and Right Child Index :2xParentIndex + 2

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

      she has discussed in the previous vedios and thnks for the 0th index formulae

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

      Selamlar

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

      Bro aapko hindi aati hai?

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

      @@741ibrahim2 in which lecture? i am confused about this index 0 and 1

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

    American students also benefiting from your lectures, thank you!

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

      American students are also human being they are not from other world so they can also have difficulties in some stuffs .

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

    I am from Pakistan. My data structure teacher is a PHD holder. and still I didn't understand heaps until I watched this video. Thank u.

  • @theabhisays
    @theabhisays 5 ปีที่แล้ว +381

    I got reappear in data structure in 3rd sem...now im in final year...finally i have cleared my daa exam in last attempt with good grade.....just because of ur lectures ✨.....thanku ma"am😇

    • @JennyslecturesCSIT
      @JennyslecturesCSIT  5 ปีที่แล้ว +97

      Wish u luck 👍

    • @anuraggoyar
      @anuraggoyar 5 ปีที่แล้ว +46

      Bhai guru dakshina to de..🤣

    • @all-rounderchannel835
      @all-rounderchannel835 4 ปีที่แล้ว +33

      @@JennyslecturesCSIT It would be great if u provide a working code in description .plz

    • @Anonymous-gj4km
      @Anonymous-gj4km 4 ปีที่แล้ว +5

      @Jenny's Lectures

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

      So bruh, did you clear it?

  • @mohammedkhalid7539
    @mohammedkhalid7539 5 ปีที่แล้ว +58

    studying 3 hours before an exam and here I am thanks jenny 😍

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

    Mam.....u are the queen of teaching of data structures..... 😘😘😘😘

  • @jithinmv6516
    @jithinmv6516 5 ปีที่แล้ว +70

    The way you connected us from heap tree to heap sort was excellent, I think no one will leave without watching the heap sort :)

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

    Whenever I encounter problems of a structure I tend to your lecture and could finally figure out. Thank you with my whole heart. I love you Jenny!

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

    I've gone thorough the many tutorials for heap, but my search came to end here. I can write heap function by myself. Kudos thanks a ton.

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

    Fantastic explanation thank you so much! American software engineers here, studying for interviews again, this is awesome!

  • @kanavghai887
    @kanavghai887 5 ปีที่แล้ว +68

    Crystal clear concepts and excellent presentation which can put even the professors from best universities to shame. My favorite channel already!

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

    The transition from heap tree to heap sort was smooth as butter

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

    Was getting discombobulated in the beginning but, now, I'm simply swelling with the sheer amount of confidence.
    This wouldn't have been possible, had I not seen the vidoe of yours.
    More power to you, Jayanti!
    :)

  • @nihafarheen
    @nihafarheen 5 ปีที่แล้ว +33

    You're amazing!! Please keep doing more of lectures..it helps us so much during revision as well studying and referring for exams..

  • @ahzam002
    @ahzam002 5 ปีที่แล้ว +8

    I started studying before 1day and due to your hard work I will score good in my exams. The question paper was goosebump giving but u r the best tnxx from bottom of my heart 💜❤

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

    Your teaching method is soooo good .
    I can't tell you my words .
    Your method is like a mogic...
    Thanks alot

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

    Wonderful teaching method ..from pakistan

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

    Most graceful teacher.

  • @freebug8181
    @freebug8181 5 ปีที่แล้ว +6

    Just when i needed help on this topic. You are a life saver madam

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

    You Have all I Need from teacher.
    Now you're my teacher thanks for show me better way.

  • @7291ashish
    @7291ashish 5 ปีที่แล้ว +9

    Mam your teaching is awesome.

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

    I like the way you explain things in great detail. You are a great teacher!

  • @cocoon2024
    @cocoon2024 5 ปีที่แล้ว +22

    Thank you soooooo much - From "Sri lanka"

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

      Aniwa

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

    This is the clearest video I have seen. Thank you!

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

    A big Thank You from Brazil. You're very talented teacher, made my project easier to understand. I'll recommend you to other people

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

    You teaching is absolutely Fantastic mam.

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

    Awesome teaching i never this type teaching... you're teaching like heaven mam

  • @mt-iw1qy
    @mt-iw1qy 3 ปีที่แล้ว +1

    Mam.. Your passion for teaching is really outstanding...thanks for such tutorials..

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

    Mam you are boosting us to become legends in society
    😎😎😎

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

    U r d best teacher in data structure ...no doubt can arise ...i wish u could also give lectures on optimization ...complx questions..

  • @pickleali
    @pickleali 5 ปีที่แล้ว +26

    Thank you for your effort! You really helped me a lot and made everything as clear as possible. Again, thank you so much

  • @Ann-qb8gn
    @Ann-qb8gn 2 ปีที่แล้ว +2

    You are the best teacher!I swear🥺
    And thank you for being my life saviour 💜💜

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

    your lectures is very helpful for me. I am from Pakistan. you will get more views as soon.

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

    Your explanation is clear and understandable.

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

    you are great in dsa

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

    Mam your teaching is very very great and thanks mam for your videos

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

    Jennny love your teaching methods
    You have cleared my all concepts regarding to data structure thank you 😊😊👍

  • @khushalsharma7370
    @khushalsharma7370 5 ปีที่แล้ว

    Mam there are no words to say about you....you are outstanding teacher ever🤗🤗

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

    Such an incredible teacher.. You are a gem of a person..Thank you Ma'am..

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

    mam, seriously you are doing very well and your lectures are according to book curriculum thank you so much ,mam

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

    SHE DESERVES A NOBEL PRIZE IN TEACHING.

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

    You helped me lot man thank you so much for a great sessions 🎉

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

    the way u teach is amazing.mujy teachers ke smj ni ati.ma bus ap k lectures hi consult krti hon.thanks.

  • @ChandraShekhar-by3cd
    @ChandraShekhar-by3cd 5 ปีที่แล้ว +10

    Best Explanation Ever!

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

    i will just says LOVE YOU MAM From pakistan and from 1st semester i followed your lectuure your voice is amazing

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

    Hi. Mam..your videos are very helpful for beginners like me.thank you so much. I have couple of questions
    1. How can we differentiate whether the index starts from 0 or 1.
    2. How can we identify the position of the item which needs to be deleted

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

    i'm Watching her face and her expression more then what she's teaching but teaching is also awesome ma'am as same as your beauty

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

    I really want to become a teacher like you :)😘☺️

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

    I let ,you are wonderful Lecturer.Page replacement lectures is very easy among another......

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

    amazing mam...how clear explanation...😍😍😍

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

    If my teacher would beautiful, intelligent and awesome like you, I could be topper in the class! :D
    Excellent tutorial!

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

    This is the best representation of heap! Thank you!

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

    Mam ur explanation is awesome very clear and simple very much impressed

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

    Such a useful data structure...
    I got introduced to this from a problem on HackerRank

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

    Thanks for making the concept of heap so simple

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

    Mam aese hi bahin rehin eios r Allah apko humisha Khush rakhi r lmbiumr de

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

    Mam your lectures are awesome and i am requesting you to complete all the lectures of data structures mam at your earliest...

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

    Respect from Nepal...

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

    Addicted to this teacher.

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

    Thankyou for providing wonderful concepts in data structures
    Keep on uploading videos mam 💕

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

    04:19 Max heap ensures that every parent node is greater than or equal to its child node.
    08:38 In a max heap, the root node is always the largest element.
    12:57 Inserting and maintaining a max heap
    17:16 Inserting data in a max heap involves maintaining the complete binary tree property and the maxi property.
    21:35 Inserting a node into a max heap involves comparing the value with its parent.
    25:54 To delete from a max heap, remove the root node and adjust the tree.
    30:13 Explanation of max heap insertion and deletion process
    34:28 Explanation of Max Heap Deletion

  • @BILALAhmad-cd5rf
    @BILALAhmad-cd5rf 5 ปีที่แล้ว +2

    Mam ur lectures r always mind blowing

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

    Thank you soooooo much - From "Algeria"

  • @MonikaJ-gl5bk
    @MonikaJ-gl5bk 2 หลายเดือนก่อน

    Crystal clear explanation mam ❤️‍🔥✨

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

    Love you 💓 ma'am ,your way of teaching is amazing

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

    Fabulous explanation Ma'am. God bless you

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

    Very clear cut explaination of every particular topic in every video of yours❤️❤️❤️🔥🔥

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

    Excellent explanation. Bunch of thanks😍😍

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

    you are a briliant teacher mam we appriciate to your effrots

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

    Maam thanks for the video.. It was or rather all ths videos are amazing..
    I hope u were my teacher for DS......and yes u look cute.. 😊😊

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

    Thank you a lot really your explanation is very clear and perfect 👌

  • @MUSKANGUPTA-vi2uu
    @MUSKANGUPTA-vi2uu 5 ปีที่แล้ว +3

    perfect explaination of heap sort

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

    Fabulous teaching✌

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

    Great knowledge and explained in a simple manner 👍👍👍

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

    Thank You! Excellent presentation -- the concept is crystal clear :)

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

    Mam..I like your teaching from June 2019....mam you are gorgeous 😍😍😍😍😍😍😍😍😍😍😍😍😍...and I like you❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️

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

    I love you mam
    Bht help mili apki videos se

  • @piyushpyne1620
    @piyushpyne1620 5 ปีที่แล้ว

    Forget about data structure... U look amazing👌

  • @abypal7
    @abypal7 5 ปีที่แล้ว

    Thank you maam.. You saved my time.... Keep up the good work......

  • @siddhipandey7344
    @siddhipandey7344 5 ปีที่แล้ว +6

    if u have uploaded this video 2 yr back i must have secured O grades additional concept clearance.Thank u so much mam!!
    please upload some video related to placements etc.

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

    thank you so much mam your lecture helps me thanx from PAKISTAN

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

    Mam apka way of teaching bahut jyada saaf h and I have watched many other videos but no one explain like u mam u are the gem of algorithm and one small req can u start array and string coding qustion so that it would help us also plz mam

  • @a.human.
    @a.human. 2 ปีที่แล้ว

    This was very well explained, kudos to you!

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

    It's simply super explanation

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

    Beautifully explained.. 👍👍

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

    Very nice for the content collection and explanation very useful for the students

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

    Yeah u r doing great ma'am . thanks a lot From Kolkata

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

    It's really good mam.... I can understand the heap...... tq so much mam😉

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

    Mam you are a great lecturare
    In this world

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

      Mam you are the best you teach me and i got 30/26 and topped in my class really you are.the best teacher

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

    Mam Thank you so much.
    You are really really a very good teacher 👌
    Very well explained 👌👌

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

    Amazing teaching, thank you

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

    U explain it clear!!!! 👑👑👑🎓

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

    Respect!!!!!🙏🙏🙏. Thank you ma'am.

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

    last step is just like array sequential representation of binary tree in deletion of element in heap

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

    Ma'am Thank u so much!!!! I understood the entire concept....

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

    Superb face to you and lecture mass💙🔥

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

    Thank you mam❤ from Sri Lanka

  • @Lokesh-zl8xw
    @Lokesh-zl8xw 5 ปีที่แล้ว +2

    Superb explanation

  • @b.sainathreddy4567
    @b.sainathreddy4567 4 ปีที่แล้ว +14

    the implementation of the above explanation in cpp (creating a maxheap and deleting all elements one by one
    #include
    using namespace std;
    int maxheap(int arr[], int n, int a)
    {
    n++;
    arr[n] = a;
    int i = n;
    int parent;
    while (i > 1)
    {
    parent = i/2;
    if(arr[parent] < arr[i])
    {
    swap(arr[parent],arr[i]);
    i = parent;
    }
    else
    {
    return 0;
    }
    }
    return 0;
    }
    int dele(int arr[],int n)
    {
    cout