Balanced Families of Perfect Hash Functions and Their Applications
Abstract
The construction of perfect hash functions is a well-studied topic. In this paper, this concept is generalized with the following definition. We say that a family of functions from to is a -balanced -family of perfect hash functions if for every , , the number of functions that are 1-1 on is between and for some constant . The standard definition of a family of perfect hash functions requires that there will be at least one function that is 1-1 on , for each of size . In the new notion of balanced families, we require the number of 1-1 functions to be almost the same (taking to be close to 1) for every such . Our main result is that for any constant , a -balanced -family of perfect hash functions of size can be constructed in time . Using the technique of color-coding we can apply our explicit constructions to devise approximation algorithms for various counting problems in graphs. In particular, we exhibit a deterministic polynomial time algorithm for approximating both the number of simple paths of length and the number of simple cycles of size for any in a graph with vertices. The approximation is up to any fixed desirable relative error.
Keywords
Cite
@article{arxiv.0805.4300,
title = {Balanced Families of Perfect Hash Functions and Their Applications},
author = {Noga Alon and Shai Gutner},
journal= {arXiv preprint arXiv:0805.4300},
year = {2008}
}