Complexity Analysis of Binary Tree Flashcards

In order-Trversal

1
Q

Inorder, preorder,postorder

A

In-order traversal- time complexity ->
auxilary space
O(n), O(n)
Pre-order traversal -o(n), o(n)
Post-order Traversal-same for all
Insertion(unbalanced)
Searching(unbalanced)
Deletion(unbalanced)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly