As I mentioned we have to use hashing using Separate Chaning to find the
element in constant time . This is different than than opening addresing
which added the element to the next free slot in case of a collision , so
we cann't  keep track of the element in a constant . In sepate Chaning the
elements when collision is found the element will be in the stored in the
form of the linked list on the same slot . IN worst case if all the element
give collision then  the time complexity can be of O(n) .  But chossing the
proper hash key can give the result in constant time .

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to