Home » Source Code » Hash algorithms » lshcode/lshhash.m

lshcode/lshhash.m ( File view )

  • By 毛宁 2014-10-28
  • View(s):33
  • Download(s):0
  • Point(s): 1
			function [hkey,hpos] = lshhash(keys)
% hkey = lshhash(keys)
%
% Simple one-level hashing function to speed up bucket search in LSH.
% Input:
% keys(i,:) is an array representing an LSH key (bucket ID).
% 
% Output:
% hkey(i) is an integer key computed for keys(i,:)
% 
% hpos contains indices of key positions used to compued hkey, i.e., the
% values used are keys(:,hpos).
%
% (C) Greg Shakhnarovich, TTI-Chicago (2008)
%
% Inspired by http://www.mathworks.com/matlabcentral/fileexchange/15831

% identity plus some prime numbers
%P = [1 2 3 5 7 11 13 17 19 23];
P = [1 2 5 11 17 23 31 41 47 59];

[n,m]=size(keys);

...
...
(Please download the complete source code to view)
			
...
Expand> <Close

Want complete source code? Download it here

Point(s): 1

Download
0 lines left, continue to read
Sponsored links

File list

Tips: You can preview the content of files by clicking file names^_^
Name Size Date
0.00 B2009-06-26|22:00
findbucket.m653.00 B2008-11-10|12:45
lpnorm.m3.79 kB2008-11-10|12:45
lsh.m3.18 kB2008-11-10|12:45
lshfunc.m2.94 kB2008-11-10|12:45
lshhash.m957.00 B2008-11-10|12:45
lshins.m3.21 kB2008-11-10|12:45
lshlookup.m3.07 kB2009-06-26|21:35
lshprep.m1.56 kB2008-11-10|12:45
lshstats.m2.36 kB2009-06-26|21:36
processRange.m1.01 kB2008-11-10|12:45
README10.58 kB2009-06-26|22:00
...
Sponsored links

lshcode/lshhash.m (12.66 kB)

Need 1 point
Your Point(s)

Your Point isn't enough.

Get point immediately by PayPal

More(Debit card / Credit card / PayPal Credit / Online Banking)

Submit your source codes. Get more point

LOGIN

Don't have an account? Register now
Need any help?
Mail to: support@codeforge.com

切换到中文版?

CodeForge Chinese Version
CodeForge English Version

Where are you going?

^_^"Oops ...

Sorry!This guy is mysterious, its blog hasn't been opened, try another, please!
OK

Warm tip!

CodeForge to FavoriteFavorite by Ctrl+D