Binary Search Tree: Deletion Overview

Binary Search Tree: Deletion Overview

NoobCoder

5 лет назад

40,918 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@kazi9071
@kazi9071 - 19.01.2024 09:14

You are wrong on the third case: replacing the node value to be deleted with the smallest node on the right tree not necessarily be the leaf node always. It could be a node with one child that is a right child.

Ответить
@b.pradhan9359
@b.pradhan9359 - 27.11.2023 08:18

beautiful

Ответить
@MrKHOKOLAT
@MrKHOKOLAT - 14.11.2023 20:41

Thanks!

Ответить
@user-gx4ur6hm5w
@user-gx4ur6hm5w - 12.11.2023 15:29

It doesn't get any clearer or more concise , thanks for this.

Ответить
@gerardforster5718
@gerardforster5718 - 29.10.2023 03:12

What if you were deleting 100 from the BST, but neither the key 95, nor the key 110 were in the tree, your successor is 115 (which now has a left-child node of 120) and you predecessor is now 85 (but it has a left-child node of 80). What happens to these child nodes when you replace 100 with either 115 or 85? I imagine you have to move their pointers?

Ответить
@servantofthelord8147
@servantofthelord8147 - 21.09.2023 07:59

Straight to the point, simple, and clear. Thank you!

Ответить
@BoMpOwMsp
@BoMpOwMsp - 25.07.2023 22:21

For clearity, in the case of deleting with 2 children. In the first way we find "inorder successor", and in the second way we find "inorder predecessor"

Ответить
@ZNhatAnhZ
@ZNhatAnhZ - 19.07.2023 10:41

thank you a lot for your understandable explaination

Ответить
@akshatsingh5475
@akshatsingh5475 - 13.07.2023 20:19

Thank you

Ответить
@abdelmoneimelshafei6570
@abdelmoneimelshafei6570 - 17.06.2023 17:27

Best explanation Thanks Bro

Ответить
@claireandolina3876
@claireandolina3876 - 05.05.2023 19:51

Really great video

Ответить
@marvhartigan3677
@marvhartigan3677 - 22.03.2023 15:43

Clear and concise , just what is needed! Thanks a lot.

Ответить
@TikTok_pool
@TikTok_pool - 08.06.2022 12:07

your intro and your voice is like shit

Ответить
@DaiNguyen-gk5qv
@DaiNguyen-gk5qv - 04.05.2022 17:25

can you delete 125

Ответить
@yudilai6704
@yudilai6704 - 02.05.2022 08:08

good stuff

Ответить
@JewelWildmoon
@JewelWildmoon - 03.04.2022 00:29

Thanks for the clear and quick explanation! I was struggling to figure out how to do it deleting the root node and this was the one video simple enough that I could understand

Ответить
@Aji-dj8zm
@Aji-dj8zm - 14.12.2021 10:23

Short but helpful video. Thank you very much.

Ответить
@myazpiration3861
@myazpiration3861 - 10.05.2021 15:06

Thanks for the knowledge shared.Bless you

Ответить
@lucster9317
@lucster9317 - 17.09.2020 20:47

Thanks for the clear explanation.

Ответить