YouTube网址算法?算法、网址、YouTube

由网友(承诺太假)分享简介:你会如何去产生独特的视频URL的YouTube使用?How would you go about generating the unique video URL's that YouTube uses?例如:http://www.youtube.com/watch?v=CvUN8qg9lsk推荐答案使用一些不平凡...

你会如何去产生独特的视频URL的YouTube使用?

How would you go about generating the unique video URL's that YouTube uses?

例如:

http://www.youtube.com/watch?v=CvUN8qg9lsk

推荐答案

使用一些不平凡的哈希函数。冲突的概率非常低,根据功能,所述参数和所述输入域。请记住,密码散列是专门设计成具有非常低的碰撞率,非随机输入(即完全不同的哈希两个亲密的,但是,不平等输入)。

Using some non-trivial hashing function. The probability of collision is very low, depending on the function, the parameters and the input domain. Keep in mind that cryptographic hashes were specifically designed to have very low collision rates for non-random input (i.e. completely different hashes for two close-but-unequal inputs).

本帖由杰夫·阿特伍德是一个很好的概述的话题。

This post by Jeff Attwood is a nice overview of the topic.

在这里和是一个在线散列运算,你可以玩。

And here is an online hash calculator you can play with.

阅读全文

相关推荐

最新文章