1. Home
  2. Computing & Technology
  3. C / C++ / C#
photo of David Bolton
David's C / C++ / C# Blog

By David Bolton, About.com Guide to C / C++ / C#

CMPH - C Minimal Perfect Hashing Library

Wednesday January 23, 2008
Coincidentally, following yesterday's entry about the state of computer science education, I came across an excellent Sourceforge project CMPH (C Minimal Perfect Hashing Library). It's not too bad to use - it's written in C but unusually for open source projects, it includes a considerable amount of theory at a level I'd guess of second or third year undergraduate.

Hash functions are used everywhere in desktop and server applications to transform an identifying element of data, typically a key, into a small number that can be used to index that data. Doing this well depends on the type and size of the data. The CMPH library offers four algorithms which between them can use small memory or work very fast or handle hundreds of millions of items of data. Good luck understanding all the maths! I've added a link this into the C Library.

Comments

No comments yet. Leave a Comment

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

Explore C / C++ / C#
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. C / C++ / C#

©2009 About.com, a part of The New York Times Company.

All rights reserved.