码迷,mamicode.com
首页 >  
搜索关键字:hash-table    ( 402个结果
NoSQL详解
键值数据模型 键值数据库是一张简单的hash table,主要用在所有数据库访问均通过主键来操作的情况下。讨论每一种NoSQL数据库的特征时,都要了解其”一致性“、”事务性“、查询特性、数据结构和可扩展性。 文档数据模型 列族数据模型 相同点 如上图三种面向聚合的数据模型的共同点是,他们都是用聚合这一概念,而且聚合中都有一个可以查找其内容的索引键。在集群上运行时,聚合...
分类:数据库   时间:2015-01-23 20:09:04    阅读次数:156
[C++]LeetCode: 105 Longest Substring Without Repeating Characters
题目: Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for "abcabcbb" is "abc", which the length is ...
分类:编程语言   时间:2015-01-17 18:10:44    阅读次数:251
Redis研究(六)—集合类型
一、介绍 一个集合类型(set)键可以存储至多2^32-1个字符串。 集合类型在Redis内部是使用值为空的散列表(hash table)实现的,所以操作的复杂度为O(1)。多个集合类型键之间还可以进行并集、交集和差集运算。 二、命令 1.增加/删除元素 sadd key member srem key member sadd用来向集合中增加一个或者多个元素,如果键不存...
分类:其他好文   时间:2015-01-15 23:56:37    阅读次数:499
leetcode 149. Max Points on a Line
Givennpoints on a 2D plane, find the maximum number of points that lie on the same straight line.两层循环,将在同一直线上的点放入hash table,找到hash table中的最大值。 1 int m...
分类:其他好文   时间:2015-01-13 19:36:55    阅读次数:95
[C++]LeetCode: 82 Fraction to Recurring Decimal
题目: Given two integers representing the numerator and denominator of a fraction, return the fraction in string format. If the fractional part is repeating, enclose the repeating part in parent...
分类:编程语言   时间:2015-01-09 15:37:55    阅读次数:295
Java并发编程之ConcurrentHashMap
原文地址:http://www.iteye.com/topic/1103980ConcurrentHashMap 是一个线程安全的Hash Table,它的主要功能是提供了一组和HashTable功能相同但是线程安全的方法。ConcurrentHashMap可以做到读取数据不加锁,并 且其内部的结构...
分类:编程语言   时间:2015-01-06 15:11:43    阅读次数:197
算法导论之十(十一章散列表11.1-4大数组实现直接寻址方式的字典操作)
算法导论第三版,第十一章散列表 习题11.1-4 大数组实现直接寻址方式的字典操作。...
分类:编程语言   时间:2015-01-05 16:36:47    阅读次数:95
[C++]LeetCode: 66 Single Number
题目: Given an array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm should have a linear runtime complexity. Could you implement it without us...
分类:编程语言   时间:2015-01-04 23:10:13    阅读次数:286
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
PHP内核探索之变量(4)- 数组操作
上一节(PHP内核探索之变量(3)- hash table),我们已经知道,数组在PHP的底层实际上是HashTable(链接法解决冲突),本文将对最常用的函数系列-数组操作的相关函数做进一步的跟踪。 本文主要内容: PHP中提供的数组操作函数数组操作函数的实现结语参考文献 一、PHP中提供的数组操作函数 可以说,数组是PHP中使用最广泛的数据结构之一,正因如此,PHP为开发者提供...
分类:编程语言   时间:2014-12-25 16:35:28    阅读次数:333
402条   上一页 1 ... 32 33 34 35 36 ... 41 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!