Skip to content

haitrungle/hash_table_comparison

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hash table comparison

This project implements different hash tables and compare them. The two factors distinguishing each implmentation are

  1. Hashing methods ("hasher" folder)
    • Modular (division) hashing
    • Multiplicative hashing
  2. Collision resolution strategy ("hashtable" folder)
    • Separate chaining
    • Linear probing
    • Quadratic probing

Detailed comments about the implementation can be found in the *.cpp files under "hasher" and "hashtable" folders.

Compile and run benchmarks

Require make and bash (also works on WSL). To compile and benchmark implementation 1 (separate chaining, modular hashing):

make
./benchmark.sh 1

The "Report.pdf" file contains more details.

About

A comparison of different hashing methods and collision resolution strategies for hash table in C++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published