Something that came up in an assignment, and could be due to my potato laptop, but I was interested in when a StackOverflow happens for an unbalanced BST (on purpose).
So I'm comparing the worst performance searching an AVL tree vs unbalanced BST, and the same method that searches for an element works for the AVL, but I get StackOverflow error for the BST. The BST ends up just being a linked list with the "bad data" being fed into it (alphabetical names; around 10000), so at what number of calls to entryExists would it produce that error?
I know the unbalanced BST obviously performs much worse than an AVL at worst case, but I want to limit the search queries to acquire some kind of time number.
[I don't think posting the actual code is necessary, but if anyone needs it, I'll upload it - as far as I can tell, it's not just me doing infinite recursion (same method used for both).]