<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>评论：各种字符串Hash函数比较</title>
	<atom:link href="http://www.byvoid.com/blog/string-hash-compare/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.byvoid.com/blog/string-hash-compare/</link>
	<description></description>
	<lastBuildDate>Wed, 28 Jul 2010 12:00:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>来自：sky</title>
		<link>http://www.byvoid.com/blog/string-hash-compare/comment-page-1/#comment-3146</link>
		<dc:creator>sky</dc:creator>
		<pubDate>Sat, 27 Feb 2010 12:06:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.byvoid.com/blog/?p=286#comment-3146</guid>
		<description>厄，明白了，谢谢！顺便附上Pascal版的BKDRhash
function BKDRHash(s1:string):dword;      //qword used;
    var
      i:integer;
      hash:qword;
    begin
        hash:=0;
        for i:=1 to length(s1) do
            hash:=(hash*seed+ord(s1[i])) and $FFFFFFFF;
        exit((hash and $7FFFFFFF) mod p);
   end;
是这个意思吗？我想应该是……</description>
		<content:encoded><![CDATA[<p>厄，明白了，谢谢！顺便附上Pascal版的BKDRhash<br />
function BKDRHash(s1:string):dword;      //qword used;<br />
    var<br />
      i:integer;<br />
      hash:qword;<br />
    begin<br />
        hash:=0;<br />
        for i:=1 to length(s1) do<br />
            hash:=(hash*seed+ord(s1[i])) and $FFFFFFFF;<br />
        exit((hash and $7FFFFFFF) mod p);<br />
   end;<br />
是这个意思吗？我想应该是……</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：BYVoid</title>
		<link>http://www.byvoid.com/blog/string-hash-compare/comment-page-1/#comment-3145</link>
		<dc:creator>BYVoid</dc:creator>
		<pubDate>Sat, 27 Feb 2010 12:02:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.byvoid.com/blog/?p=286#comment-3145</guid>
		<description>Hash值還要模一個大質數的，數組大小就是這個質數的大小。具體事規模而定。</description>
		<content:encoded><![CDATA[<p>Hash值還要模一個大質數的，數組大小就是這個質數的大小。具體事規模而定。</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：sky</title>
		<link>http://www.byvoid.com/blog/string-hash-compare/comment-page-1/#comment-3144</link>
		<dc:creator>sky</dc:creator>
		<pubDate>Sat, 27 Feb 2010 12:00:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.byvoid.com/blog/?p=286#comment-3144</guid>
		<description>我处理冲突开个链表拉长，如果这样的话，我想问数组得开多大呢？因为and了2^31-1，所以数组上界不大确定，我就想问这个上界是什么。</description>
		<content:encoded><![CDATA[<p>我处理冲突开个链表拉长，如果这样的话，我想问数组得开多大呢？因为and了2^31-1，所以数组上界不大确定，我就想问这个上界是什么。</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：BYVoid</title>
		<link>http://www.byvoid.com/blog/string-hash-compare/comment-page-1/#comment-3143</link>
		<dc:creator>BYVoid</dc:creator>
		<pubDate>Sat, 27 Feb 2010 11:56:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.byvoid.com/blog/?p=286#comment-3143</guid>
		<description>要看你做什麽，用不用處理衝突。而且要注意的一點是即使你開得再打，也有可能衝突，需要用鏈錶或其他數據結構輔助處理。</description>
		<content:encoded><![CDATA[<p>要看你做什麽，用不用處理衝突。而且要注意的一點是即使你開得再打，也有可能衝突，需要用鏈錶或其他數據結構輔助處理。</p>
]]></content:encoded>
	</item>
</channel>
</rss>
