码迷,mamicode.com
首页 >  
搜索关键字:sdbm hash    ( 10452个结果
c++笔记--stl的hash_map
以下内容是转载的:http://stlchina.huhoo.net/bin/view.pl/Main/STLDetailHashMap详细解说STL hash_map系列详细解说STL hash_map系列0 为什么需要hash_map1 数据结构:hash_map原理2 hash_map 使用2...
分类:编程语言   时间:2014-08-31 21:19:51    阅读次数:397
BDB (Berkeley DB)数据库简单介绍(转载)
近期要使用DBD,于是搜了下相关的资料,先贴个科普性的吧:转自http://www.javaeye.com/topic/202990DB综述DB最初开发的目的是以新的HASH訪问算法来取代旧的hsearch函数和大量的dbm实现(如AT&T的dbm,Berkeley的ndbm,GNU项目的gdbm)...
分类:数据库   时间:2014-08-31 17:11:41    阅读次数:600
TopK代码
Hash表#ifndef _HASH_H#define _HASH_H#include#includeclass HashTable{public: HashTable(unsigned int size); ~HashTable(); int get(const char *ke...
分类:其他好文   时间:2014-08-31 17:05:41    阅读次数:219
Lua1.0 代码分析 hash.c
hash.c 代码分析 Lua 中最重要的一个数据结构及相关操作。 主要看下几个对外的接口。 /* **?Create?a?new?hash.?Return?the?hash?pointer?or?NULL?on?error. */ Hash?*lua_hashcreate?(unsigned?i...
分类:其他好文   时间:2014-08-30 17:52:30    阅读次数:168
redis 数据结构一 之t_string
简介 REDIS有非常丰富的数据结构 以及建立在这数据结构上的操作,在源文件中主要集中在 T_hash.c /T_list.c /T_string.c/T_zset.c可以说读懂了这4个源文件 大部分数据结构命令都比较清楚了。 先从T_string.c源文件开始读起:T_string.c SET命令...
分类:其他好文   时间:2014-08-30 17:37:49    阅读次数:376
UVA - 10029 Edit Step Ladders (二分+hash)
Description Problem C: Edit Step Ladders An edit step is a transformation from one word x to another word y such that x and y are words in the dictionary, and x can be transformed to y by...
分类:其他好文   时间:2014-08-30 16:30:19    阅读次数:137
HDU 2815
特判B不能大于等于C高次同余方程#include #include #include #include #include using namespace std;const int Maxn=65535;struct hash{ int a,b,next;}Hash[Maxn*2];int flag...
分类:其他好文   时间:2014-08-30 16:16:29    阅读次数:212
POJ 3243
Babystep算法。具体为什么,我也不太明白,好像资料不多。#include #include #include #include #include using namespace std;const int Maxn=65535;struct hash{ int a,b,next;}Hash[M...
分类:其他好文   时间:2014-08-30 15:02:19    阅读次数:183
[数据库基础]——索引详解
阅读导航提高性能索引 B-tree 索引 Hash 索引 其他类型指针索引百利无一害索引对于接触过数据库的人,都不会很陌生,但是说实话,也不一定很熟悉。先来介绍下索引的优点。提高性能现在有一个数据库表[Words],有[WordID],[WordPage],[[WordName],[WordPron...
分类:数据库   时间:2014-08-30 02:20:38    阅读次数:360
【实习记】2014-08-29算法学习Boyer-Moore和最长公共子串(LCS)
昨天的问题方案一:寻找hash函数,可行性极低。方案二:载入内存,维护成一个守护进程的服务。难度比较大。方案三:使用前5位来索引,由前3位增至前5位唯一性,理论上是分拆记录扩大100倍,但可以就地利用mysql,最易行。方案四:使用方案三,但增加一个表以减少冗余,但代价新开一个表,并且每次查询都se...
分类:其他好文   时间:2014-08-29 22:31:58    阅读次数:300
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!