Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

binary search tree #158

Open
markocska opened this issue Apr 23, 2020 · 1 comment
Open

binary search tree #158

markocska opened this issue Apr 23, 2020 · 1 comment

Comments

@markocska
Copy link

Hi,

I would maybe add for binary search trees that the O(log(n)) complexities are correct for the average complexities. For example if the tree has a "shape of a line" (every node has a child on the left : 10->9->8->7->6->5->4->3->2->1 then the worst case complexities will be O(n) ( search, insert, delete, access). If the values are deliberately written for the average complexities, then sorry for the disturbance :)

Kind Regards, Mark

@Dzhango
Copy link

Dzhango commented Jul 19, 2021

I think you are right. I did see him using BST with a balancing factor on youtube, so pontetially O(logn) is implied.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants