最快的哈希算法文本数据算法、文本、最快、数据

2023-09-02 11:55:59 作者:我想有个家

我想选择一个哈希算法比较约最多20个不同的文本数据。

I'm trying to choose a hash algorithm for comparing about max 20 different text data.

这哈希对这些要求的更好?

Which hash is better for these requirements?

在较少CPU功耗 占地面积小(小于等于32字节) 在冲突不是什么大不了的事 可以从.NET框架2产生(不应该是一个第三方库)

我使用的哈希值较少的内存占用和性能比较的

推荐答案

如果碰撞不是什么大不了的,你可以把每个文件的第一个字母。或者你也可以使用文字或字符串文本的长度。

If collision is not a big deal you can take the first letter of each document. Or you can use the length of the text or the string with the text.