Course Hero Logo

CSC111HashActivity 2 .pdf - CSC 111 – Data Structures and...

This preview shows page 1 - 2 out of 2 pages.

CSC 111Data Structures and AbstractionSpring 2022UcheHash ActivityThursday, May 5Learning ObjectivesConstruct a hash table usingseparate chainingandlinear probingcollision policiesUpdate hash tables after deletion and insertion operationsCompute search performance forseparate chainingandlinear probingcollision policiesAssume an 11-item hash table using the hash functionh(i) = (2i + 5) mod 11for the following key values in order12, 44, 13, 88, 23, 94, 11, 39, 20, 16, 5.1.Construct a hash table using the following collision policies.a.Separate chainingb.Linear probing2.For each table, show the state of the table after performing the following operations in order:Delete 88, 11, 39Insert 66, 33.What is the performance as measured by comparisons for the following searches for each
End of preview. Want to read all 2 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Summer
Professor
NoProfessor
Tags
hash function, Uche, 11 item hash table

Newly uploaded documents

Show More

Newly uploaded documents

Show More

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture