码迷,mamicode.com
首页 >  
搜索关键字:hash    ( 10449个结果)
从12306帐号泄漏谈用户密码安全
新闻回顾 12月25日圣诞节,据漏洞反馈平台乌云网显示,大量12306用户数据在互联网疯传。本次泄露的用户数据包括用户帐号、明文密码、身份证、邮箱等。 随后,12306官方发表公告,称经过认真核查,此泄露信息全部含有用户的明文密码。12306网站数据库所有用户密码均为非明文转换码,网上泄露的用户信息系经其他网站或渠道流出。 12月26日,中国铁路官方微博发消息,铁路公安机关将涉嫌窃取...
分类:其他好文   时间:2014-12-27 21:48:56    阅读次数:237
【字符串哈希】bzoj3098 Hash Killer II
教育我们做Rabin-Karp的时候一定要把模数取大?还是上溢好了。#include#includeusing namespace std;int main() { puts("100000 13"); for(int i=1;i<=100000;i++) putchar(rand...
分类:其他好文   时间:2014-12-27 17:28:33    阅读次数:114
Python标准库:内置函数hash(object)
本函数返回对象的哈希值。返回的哈希值是使用一个整数表示,通常使用在字典里,以便实现快速查询键值。参数object输入是数字类型时,是根据数值来计算的,比如1和1.0计算出来是一样的哈希值,因此说这个函数是不区分不同的数值类型。例子:#hash() print(hash('abc')) print(hash(2.0)) print(hash(2))结果输出如下:70073777522 蔡军生  Q...
分类:编程语言   时间:2014-12-27 12:45:23    阅读次数:141
LA 4513 hash表示字符串后缀
https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&category=&problem=2514&mosmsg=Submission+received+with+ID+1623942 Dr. Ellie Arroway has established cont...
分类:其他好文   时间:2014-12-27 11:24:11    阅读次数:166
LintCode-Rehashing
The size of the hash table is not determinate at the very beginning. If the total size of keys is too large (e.g. size >= capacity / 10), we should do...
分类:其他好文   时间:2014-12-27 06:43:00    阅读次数:359
ACdreamOJ 1116 斐波那契数列+hash计算后缀
http://acdream.info/problem?pid=1116 Problem Description give you a string, please output the result of the following function mod 1000000007 n is the length of the string f() is the funct...
分类:其他好文   时间:2014-12-26 21:44:24    阅读次数:218
AC dreamoj 1011 树状数组+hash维护字符串的前缀和
http://acdream.info/problem?pid=1019 Problem Description Now we have a long long string, and we will have two kinds of operation on it. C i y : change the ith letter to y. Q i j : check whet...
分类:编程语言   时间:2014-12-26 16:41:35    阅读次数:338
PHP内核探索之变量(4)- 数组操作
上一节(PHP内核探索之变量(3)- hash table),我们已经知道,数组在PHP的底层实际上是HashTable(链接法解决冲突),本文将对最常用的函数系列-数组操作的相关函数做进一步的跟踪。 本文主要内容: PHP中提供的数组操作函数数组操作函数的实现结语参考文献 一、PHP中提供的数组操作函数 可以说,数组是PHP中使用最广泛的数据结构之一,正因如此,PHP为开发者提供...
分类:编程语言   时间:2014-12-25 16:35:28    阅读次数:333
改进hash遍历
STL中实现的hash_map和MFC中实现的CMap数据结构均为hash。普通的hash在遍历时,效率会比较慢。hash_map与CMap的遍历均顺序访问每一个桶,因此会在空桶上浪费一定的时间。 1. 改进的hash 哈希结点结构如图1-1(a)所示,其中data为存储的数据,next为指向下一个哈希结点的指针。哈希头结点如图1-1(b)所示,其中preBucket为前一个有数据的桶号,ne...
分类:其他好文   时间:2014-12-25 16:28:29    阅读次数:157
REDIS与MEMCACHED的区别(转)
出处:http://www.blogjava.net/paulwong/archive/2013/09/06/403746.html如果简单地比较Redis与Memcached的区别,大多数都会得到以下观点:1 Redis不仅仅支持简单的k/v类型的数据,同时还提供list,set,hash等数据结...
分类:系统相关   时间:2014-12-25 16:01:21    阅读次数:210
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!