phash.ph: use a bipartite graph to reduce the storage requirements
authorH. Peter Anvin <hpa@zytor.com>
Thu, 30 Aug 2007 23:42:39 +0000 (23:42 +0000)
committerH. Peter Anvin <hpa@zytor.com>
Thu, 30 Aug 2007 23:42:39 +0000 (23:42 +0000)
commitfb5a599c8ac2c67139e2d37c0b7031ea75e1da84
tree45de113bd4ee4e28f5436aaff65fdc6a92cd9ee4
parent74cc5e569c1c8bcdd886734e1ce4c2df741b5b07
phash.ph: use a bipartite graph to reduce the storage requirements

Since we fold the f- and g-functions together, if we guarantee that g is
bipartite, we can make g twice the size of f without cost.  This greatly
improves the odds of generating a smaller hash.
Makefile.in
perllib/phash.ph