结构的哈希函数 [英] Hash function of structs

查看:74
本文介绍了结构的哈希函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我正在寻找一个哈希函数用于哈希表

,它将包含某种结构。我已经查看了

Sourceforge.net,但到目前为止我发现只有字符串的哈希函数

(字符串 - >索引)...你知道在某个地方是否存在这样的功能吗?

谢谢

解决方案

Alexander Mahone写道:


>

你好,我正在寻找一个用于哈希的哈希函数

表将包含某种结构。我已经看了

到Sourceforge.net,但到目前为止我发现只有哈希函数

for strings(string-> index)...你知道在某个地方是否存在这样一个

的功能吗?



尝试:< http://cbfalconer.home.att.net/download/hashlib.zip>


用标准C编写,并在GPL下发布。


-

[邮件]:Chuck F(cinefalconer at maineline dot net)

[page]:< http://cbfalconer.home.att.net>

尝试下载部分。

**发自 http://www.teranews.com **


< blockquote> CBFalconer写道:


Alexander Mahone写道:


>你好,我在找用于散列函数,用于包含某种结构的散列表。我已经看过Sourceforge.net了,但到目前为止我发现只有字符串的哈希函数(string-> index)...你知道是否存在这样的
功能在哪里?



尝试:< http://cbfalconer.home.att.net/download/hashlib.zip>


用标准C编写,并在GPL下发布。



很好,你介意在BSD下双重授权,还是你需要

是否按项目考虑?


-

Pietro Cerutti


Pietro Cerutti < ga ** @ gahr.chwrote in message

新闻:Vd **************************** **@giganews.com ...


CBFalconer写道:


> Alexander Mahone写道:


>>您好,我正在寻找一个哈希函数用于包含某种结构的哈希表。我已经看过Sourceforge.net了,但到目前为止我发现只有字符串的哈希函数(string-> index)...你知道是否存在这样的
功能在哪里?


尝试:< http://cbfalconer.home.att.net/download/hashlib.zip>

用标准C编写,并在GPL。



很好,您是否介意在BSD下对其进行双重许可,或者您是否会将其视为
项目基础?



如果你想找到一个具有特定要求的特定工具(比如BS中的BSD

许可哈希表),我会先找到外观将是sourceforge。

http://sourceforge.net/ projects / uthash /

**发自 http:// www.teranews.com **


Hello, I''m looking for an hash function to be used for an hash table
that will contain structs of a certain kind. I''ve looked into
Sourceforge.net, but so far I''ve found only hash functions for strings
(string->index)...Do you know if there exist such a function
somewhere?
Thanks

解决方案

Alexander Mahone wrote:

>
Hello, I''m looking for an hash function to be used for an hash
table that will contain structs of a certain kind. I''ve looked
into Sourceforge.net, but so far I''ve found only hash functions
for strings (string->index)...Do you know if there exist such a
function somewhere?

Try: <http://cbfalconer.home.att.net/download/hashlib.zip>

Written in standard C, and released under GPL.

--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home.att.net>
Try the download section.
** Posted from http://www.teranews.com **


CBFalconer wrote:

Alexander Mahone wrote:

>Hello, I''m looking for an hash function to be used for an hash
table that will contain structs of a certain kind. I''ve looked
into Sourceforge.net, but so far I''ve found only hash functions
for strings (string->index)...Do you know if there exist such a
function somewhere?


Try: <http://cbfalconer.home.att.net/download/hashlib.zip>

Written in standard C, and released under GPL.

Nice, would you mind to double-license it under BSD, or would you take
it into consideration on a per-project basis?

--
Pietro Cerutti


"Pietro Cerutti" <ga**@gahr.chwrote in message
news:Vd******************************@giganews.com ...

CBFalconer wrote:

>Alexander Mahone wrote:

>>Hello, I''m looking for an hash function to be used for an hash
table that will contain structs of a certain kind. I''ve looked
into Sourceforge.net, but so far I''ve found only hash functions
for strings (string->index)...Do you know if there exist such a
function somewhere?


Try: <http://cbfalconer.home.att.net/download/hashlib.zip>

Written in standard C, and released under GPL.


Nice, would you mind to double-license it under BSD, or would you take it
into consideration on a per-project basis?

When you want to find a specific tool with specific requirements (like a BSD
licensed hash table in C) the first place I would look would be sourceforge.

http://sourceforge.net/projects/uthash/
** Posted from http://www.teranews.com **


这篇关于结构的哈希函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆