Great video many thanks. However I don't agree with binary search trees allowing multiple keys of the same value. As it will result in retrieving the same key each you search for it & not the other key
He answers the question @ 23:00 wrong - that left/right (min/max) rule neither exists nor makes sense. Imagine a value smaller than anything in the BST, there wont be any right (towards greater values) walks, thus the rule cannot apply.
Isn't allowing duplicates in only one side, much easier to search/manage? If both sides are allowed the duplicates, we will have to search for left, right node recursively till we don't find new nodes. If duplicates are allowed only on one side, we have to search less, only for say right nodes...
This is why there is no point going to my university for lectures... Not only do the lecturers just read from their slides, but they do a crap job at explaining.
With lectures like this, I can stay home where it's nice and warm, not waste 1hour on travel there and 1hour travel back, and I learn something!
Loves these videos :) he is awsome teacher. One problem is while explaining one operation sometime Prof performs another associative operation w/out explaining that one clearly which might be issue with first timers. like while drawing new tree @ 39 min he replace 12 with 13 but how 14 takes the place of 13 is abstract.
@rockvista 14 takes place of 13 because it is suposed to.. it is just like we want to delete 13 from the tree.. you remove it and then you replace it with its only child. so 14 takes place of 13. i dont know if i am clear on my explanation..
hey, can you tell me wich one of this combinations generates a self-balanced BST?
18,21,23,25,15,19,16,12 or 18,23,16,21,15,19,12,25 ?? i can't understand the concept behind "self balanced" is it the number of nodes, or the height? help me please i have a test tomorrow!
@AnepuSchwarzwolf Oops, already answered, that will teach me to respond before I read all the comments, instead of bouncing around the comments. *self depreciating chuckle*
@AnepuSchwarzwolf Except that to reach 29 you had to take a left branch (taking you through 28), the maximum value is the farthest to the right of the tree, not the farthest right deepest in the tree. Its one of the easiest things to mix up when trying visualize with tree structures.
I just don't understand that when we insert a key, what is the second Object (associated value)? so let's say we're inserting a 7 to a tree then what is its associated value?
Thanks for the video sir.. But I have a question.. why do we allow duplicate keys in this kind of structure? I just want to clarify it thanks.
eventviewer26 3 weeks ago
They use Java as an example. Pffft.
MoonLightFacade 1 month ago
The invariant is wrong: Left sub tree is less than root. Right subtree is GREATER THAN OR EQUAL TOO.
LilKilla15 2 months ago
@LilKilla15 no it isn't, @ 10:12
ShokoDemon 2 weeks ago
Great video many thanks. However I don't agree with binary search trees allowing multiple keys of the same value. As it will result in retrieving the same key each you search for it & not the other key
rpowell1986 3 months ago
greattttttttttttttttttttttttttttttttttttttt! i love you i mustt say :)
pogota1 3 months ago
thank you for the excellent presentation.
smayengbam 3 months ago
This proff is really passionate into teaching .. other proffs usually don't like their stuff to go online
RohitDumbre86 3 months ago
This is very good!
thebuzz2010 3 months ago
hes cool
dineshthedemonised 3 months ago
Malkovich?
Malcovich malkovich.
Malkovich malkovich, malkovich!
brianjv99 4 months ago
Brilliant ppl don't deserve to be that coool!!! he's perfect...
shafayetbu 5 months ago
There is no safe container to store your values while you’re at work; not living your deepest values will leak on you
No sudden moves: You’re looking emotional commitment right in the eye. slapCompany Question to you: Where do you stand?
slapcompany 5 months ago
This is a very good explanation. Thank you.
dying2l 5 months ago
mand these ph.d have some crappy hand writings haha
eatmyshorts2007 7 months ago
he reminds me of Dr Reid from Criminal Minds lol
ssjg0ten 8 months ago
@ssjg0ten I was just about to make that same comment lol ..
chinnywurl 6 months ago
For the removal operation, if when you search the right subtree for the last left leaf: what if the sub tree right subtree has no left leaf?
stb6688 9 months ago
YES! He sound like John Malkovich! LOL
undergroundo 9 months ago
He answers the question @ 23:00 wrong - that left/right (min/max) rule neither exists nor makes sense. Imagine a value smaller than anything in the BST, there wont be any right (towards greater values) walks, thus the rule cannot apply.
iambmelt 10 months ago
also Freakfest looks like fun
johnbeatle 10 months ago
can i get his writing font in ms word? lol
johnbeatle 10 months ago 2
Is it just me or does he look/sound like John Malkovich?
lycheewater 11 months ago 22
This has been flagged as spam show
@lycheewater he looks like a fucking faggot, if you ask me. I long to rip his throat from his neck.
valdezmiguel2 10 months ago
@lycheewater I was thinking of the same think a lot of videos ago.
kostantinos74757 7 months ago
Isn't allowing duplicates in only one side, much easier to search/manage? If both sides are allowed the duplicates, we will have to search for left, right node recursively till we don't find new nodes. If duplicates are allowed only on one side, we have to search less, only for say right nodes...
brijix1111 1 year ago
This has been flagged as spam show
Thanks to youtube and Berkeley for this videos
mogra671 1 year ago
Comment removed
mogra671 1 year ago
it hurts to watch him write, hahaha, it's so ugly! but he did well teaching, thanks! =]
RichTCovers 1 year ago
This is why there is no point going to my university for lectures... Not only do the lecturers just read from their slides, but they do a crap job at explaining.
With lectures like this, I can stay home where it's nice and warm, not waste 1hour on travel there and 1hour travel back, and I learn something!
Thanks!!
Time4TruthDOTorg 1 year ago 2
Very Good Lecturer Of Data Structure.
MrUsman4040 1 year ago
lol java
oscar341 1 year ago
Nicely elaborated......awesome lecture.....thank you for the video
yapabh 1 year ago
in java
biiiik 1 year ago
can somebody give me a
sample program for binary search tree??
biiiik 1 year ago
@biiiik I have 1, if you are still interested. Let me know.
Time4TruthDOTorg 1 year ago
Loves these videos :) he is awsome teacher. One problem is while explaining one operation sometime Prof performs another associative operation w/out explaining that one clearly which might be issue with first timers. like while drawing new tree @ 39 min he replace 12 with 13 but how 14 takes the place of 13 is abstract.
rockvista 1 year ago
@rockvista 14 takes place of 13 because it is suposed to.. it is just like we want to delete 13 from the tree.. you remove it and then you replace it with its only child. so 14 takes place of 13. i dont know if i am clear on my explanation..
jimgeroul 1 year ago
This comment has received too many negative votes show
what a fag. Keep that dork professor on the teaching staff, he wouldn't last 2 seconds on a team project.
tantrikwizard 1 year ago
@tantrikwizard sure u can do a better job!! if u r so good, come up with ur own video as**ole.
learn to be grateful for what u r getting for free.
hexam1ner 1 year ago 12
hey, can you tell me wich one of this combinations generates a self-balanced BST?
18,21,23,25,15,19,16,12 or 18,23,16,21,15,19,12,25 ?? i can't understand the concept behind "self balanced" is it the number of nodes, or the height? help me please i have a test tomorrow!
bazucccada 1 year ago
Nevermind my other comment.
I've just thoght it all over and came to the conclusion that it's just a matter of designing the tree ^^
AnepuSchwarzwolf 1 year ago
@AnepuSchwarzwolf yeah, the thing is node 29 could NOT have node 31
Dagguh 1 year ago
@AnepuSchwarzwolf Oops, already answered, that will teach me to respond before I read all the comments, instead of bouncing around the comments. *self depreciating chuckle*
Jaggling 1 year ago
First to say: I really enjoy this lessons :)
But there are two or rather one thing that i don't really get.
He says the very last node on the left side IS the minimum key and the very last node on the right IS the maximum key.
If i'm looking at the graph he drew at 22:27 that doesn't quite work for me.
Key '29' could have a right node with key value '31' if i'm not completly wrong.
Method last() would return key '30' even though key '31' is the maximum key.
Please correct me if im wrong :)
AnepuSchwarzwolf 1 year ago
@AnepuSchwarzwolf Except that to reach 29 you had to take a left branch (taking you through 28), the maximum value is the farthest to the right of the tree, not the farthest right deepest in the tree. Its one of the easiest things to mix up when trying visualize with tree structures.
Jaggling 1 year ago
John Malkovich is eerily convincing as a CS instructor.
LieutenantFakenham 1 year ago
I would however prefer recursive code.
patilsw 1 year ago
very helpful and informative, thank you =)
hovrashko 1 year ago
thx, very helpful for stupid exam
ghodkiller000 1 year ago
Really thanks a lot for this video, it has been very helpful.
gurth4ng 2 years ago
thanks a lot for this lecture..
MrRavisankar 2 years ago
He totally sounds just like John Malkovich.
Scarabus82 2 years ago
thanks a lot, even in english its more understandable for me than at lessons in institue =)
mnightt 2 years ago 2
agreed
Crawletas 2 years ago
ahh! i was worried maybe there isn't any tutorials on this :p
Johannady 2 years ago
hi, thanks for this lecture.
I just don't understand that when we insert a key, what is the second Object (associated value)? so let's say we're inserting a 7 to a tree then what is its associated value?
NajanJan 3 years ago
wow .
i like BST's but i wish i could implement at least the Node itself :P loooool
nice video , this is serious coding !
hetler25 3 years ago
You look like that guy and sound like that guy of criminal minds it so cool.
vkgoku2012 3 years ago