For the following symbol table implementations, unordered linked list, ordered a
ID: 3839460 • Letter: F
Question
For the following symbol table implementations, unordered linked list, ordered array, binary search tree (BST), red-black BST, hashing with separate chaining, hashing with linear probing Which one(s) can have constant running time for search and insertion in average-case? Which one(s) has (have) O(logN) running time for insertion in average-case? Which one(s) has (have) O(N) running time for search in worst-case? Which one(s) has (have) O(N) running time for insertion in worst-case? Which one(s) can support order symbol table efficiently?Explanation / Answer
1) hashing
2)Bst
3) unordered array and bst(skew)
4) hashing (chaining in worst case we might have to travel entire list)
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.