Skip to main content

Kenyth Zeng's Library tagged algorithm   View Popular

15 Sep 09

B-tree - Wikipedia, the free encyclopedia

  • a B-tree is a tree data structure that keeps data sorted and allows searches, insertions, deletions, and sequential access in logarithmic amortized time.
  • The B-tree is a generalization of a binary search tree in that more than two paths diverge from a single node[1]
  • 19 more annotations...
11 Sep 09

Deterministic algorithm - Wikipedia, the free encyclopedia

  • In computer science, a deterministic algorithm is an algorithm which, in informal terms, behaves predictably. Given a particular input, it will always produce the same output, and the underlying machine will always pass through the same sequence of states.
  • One simple model for deterministic algorithms is the mathematical function
04 Sep 09

Algorithm Education in Python

  • Unfortunately, the use of traditional programming languages forces students to deal with details of data structures and supporting routines, rather than algorithm design. Python represents an algorithm-oriented language that has been sorely needed in education.
  • . One reason is that these languages require declaration of global variables, local variables, and parameters before they can be used. Another reason, more importantly, is that many data structures such as lists, linked data structures, and specialized arrays must be designed and implemented to support the algorithm
  • 3 more annotations...
17 Aug 09

Encoding - Protocol Buffers - Google Code

  • The binary version of a message just uses the field's number as the key – the name and declared type for each field can only be determined on the decoding end by referencing the message type's definition (i.e. the .proto file).
27 Jul 09

Binary tree - Wikipedia, the free encyclopedia

    • The number of nodes n in a perfect binary tree can be found using this formula: n = 2h + 1 − 1 where h is the height of the tree.
    • The number of nodes n in a complete binary tree is minimum: n = 2h and maximum: n = 2h + 1 − 1 where h is the height of the tree.
    • The number of nodes n in a perfect binary tree can also be found using this formula: n = 2L − 1 where L is the number of leaf nodes in the tree.
    • The number of leaf nodes n in a perfect binary tree can be found using this formula: n = 2h where h is the height of the tree.
    • The number of NULL links in a Complete Binary Tree of n-node is (n+1).
    • The number of leaf node in a Complete Binary Tree of n-node is UpperBound(n / 2).
    • For any non-empty binary tree with n0 leaf nodes and n2 nodes of degree 2, n0 = n2 + 1.[1]
  • In depth-first order, we always attempt to visit the node farthest from the root that we can, but with the caveat that it must be a child of a node we have already visited.
29 May 09

谷歌浏览器里牛逼的中文分词

  • 今天突然发现谷歌浏览器(chrome/chromium)居然实现了中文词语之间的跳转
  • 深入研究了一下这个有趣的功能,发现是IBM的ICU库提供的,每个Chrome安装文件夹下面都有一个icudt38.dll,这里面包含了一份中文词语表
27 May 09

Public-key cryptography - Wikipedia, the free encyclopedia

Memcache Hash算法值得探索的内容 - 西湖边的穷秀才-文初 - BlogJava

  • 存储数据如何均匀分散。如何把数据尽可能的散开存储,这样对于Memcache的可扩展性才会有充分利用

技术文摘: 字符串hash算法比较

  • 链表查找的时间效率为O(N),二分法为log2N,B+ Tree为log2N,但Hash链表查找的时间效率为O(1)。
30 Apr 09

MapReduce - Wikipedia, the free encyclopedia

  • The framework is inspired by map and reduce functions commonly used in functional programming,[2]
  • Map takes one pair of data with a type on a data domain, and returns a list of pairs in a different domain:


    Map(k1,v1) -> list(k2,v2)

  • 7 more annotations...
1 - 17 of 17
Showing 20 items per page

Diigo is about better ways to research, share and collaborate on information. Learn more »

Join Diigo