BigO Flashcards
What is the worst access time of an array?
O(1)
What is the worst access time of a stack?
O(n)
What is the worst access time of a singly-linked list?
O(n)
What is the worst access time of a doubly-linked list?
O(n)
What is the worst access time of a skip list?
O(n)
What is the worst access time of a hash table?
NA
What is the worst access time of a binary search tree?
O(n)
What is the worst access time of a cartesian tree?
NA
What is the worst access time of a b-tree?
O(log(n))
What is the worst access time of a red-black tree?
O(log(n))
What is the worst access time of a splay tree?
NA
What is the worst access time of a AVL tree?
O(log(n))
What is the worst search time of an array?
O(n)
What is the worst search time of a stack?
O(n)
What is the worst search time of a singly-linked list?
O(n)