Alas, the CSF has closed down, so this class is no longer taught. However, to answer your question, rotations have the effect of shifting nodes from one side of a tree or subtree to the other. That allows us to keep all branches more or less equal (within a factor of 2). Otherwise we risk O(n^2) behavior if the tree is unbalanced.
Very well explained but is there a follow-up on this from where we leave this e.g. What is the advantage of right shift or left shift - how does it help in any practical application?
thanks for not filling this video up with nonsense, like most video makers. you went straight to the point, and you get a thumbs up for it
endauthority 1 month ago
i like it
lalitad539 6 months ago
Nice cat picture
lurconis666 1 year ago 7
Can anyone actually see the letters?, good explanation however
njdahms 1 year ago
Alas, the CSF has closed down, so this class is no longer taught. However, to answer your question, rotations have the effect of shifting nodes from one side of a tree or subtree to the other. That allows us to keep all branches more or less equal (within a factor of 2). Otherwise we risk O(n^2) behavior if the tree is unbalanced.
travelschlepp 2 years ago 2
Very well explained but is there a follow-up on this from where we leave this e.g. What is the advantage of right shift or left shift - how does it help in any practical application?
brilliantlights 2 years ago
thank you so much
tomorrow i have midterm about bst
fresh07man 3 years ago