题目
题目
单项选择题

What is the best case time complexity of deleting a key from a linear probe table?

选项
A.a. O(1)
B.b. O(N) where N is the number of keys in the hash table
C.c. O(M) where M is the capacity of the table
D.d. O(hash)
题目图片
查看解析

查看解析

标准答案
Please login to view
思路分析
Question: What is the best case time complexity of deleting a key from a linear probe table? Option a: O(1) - In the best case, the key to delete is located in the first probe position without any collisions. If the slot is found immediately, the delete operation can be performed in constant time. This mirrors the optimal scenario for open addressing......Login to view full explanation

登录即可查看完整答案

我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。

类似问题

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!