Binary Search Tree - Deletion

preview_player
Показать описание
Video 67 of a series explaining the basic concepts of Data Structures and Algorithms.

This video explains deletions from a binary search tree.

This video is meant for educational purposes only.
Рекомендации по теме
Комментарии
Автор

case 3 is not correct, if 6 has 2 child (left, right), for example, 5.9 and 6.1. the right way is to find min value of right tree (5.9), replace it with deleted node (replace 5 with 5.9), then call recursive to delete min value (5.9) on right tree (which is back to case 2)

ongxa
Автор

Nice explanation!
Before watching, I was always unsure, rather it is necessary to delete the data inside the node, which we want to delete... But as it seems it is enough, when we just remove the pointer/reference to the node, which we want to delete.(For example in case 1)
As the garbage collector will do the rest.

kevinegal
Автор

Your videos are really easy to understand. Hats off. I build of Binary tree and implemented all operations on my own. Thanks

codewithkolhar
Автор

What if, when deleting 5 and replacing it with 6, if the node 6 also had children, what do we do?

sunnythegreat
Автор

Hello Lalitha, I loved your explanation about deletion, for sure was the best video for me to understand that. Thank you for posting that :)

_paulacr
Автор

Thank you for the clear, and simple explanation! Seems like most tutorials cannot explain it this easily.

dinnerchiahao
Автор

Very clear explanation. Great job . That's a bunch !

AI-AF-
Автор

thank you so much for your amazing helpful simple easy explanation, please keem. making these videos ❤️

mohammadahmedragab
Автор

Thank you very much madam. It is very good to explain your lesson & I like your explanation ❤️

theekshani
Автор

Thanks for your knowledge based class mam

chinnikrishna
Автор

Thank you very much, I like your explanation

toheebajayi
Автор

Mam case 3 is not right LEFT MOST ELEMENT IN RIGHT SUBTREE REVIEW IT PLZ

ultimatefitness
Автор

Thanks for the video! I screenshotted this!

kristofk
Автор

inorder successor of 5 is 4 not 6!

the inorder successor element of its right subtree!

BlackWolF_
Автор

What if the 6 in case 3 already has 2 children?

paulr
Автор

Becouse in binary search tree right side last node is greater than

Pc_talk
Автор

Please make a video in linked list insertion deletion

manikantareddy
Автор

What if 6 has its two children. Then where the left child of 6 goes after performing deletion .

nishanttomar
Автор

U r voice awesome maam....💞 and great

skborton