Skip to content

Commit

Permalink
Merge pull request #2 from milkliker/master
Browse files Browse the repository at this point in the history
修复错字 bug ,感谢 @milkliker 的贡献。
  • Loading branch information
huangzworks committed Mar 13, 2013
2 parents 20ee93f + 1183d01 commit deb9b1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compress-datastruct/intset.rst
Original file line number Diff line number Diff line change
Expand Up @@ -369,9 +369,9 @@ intset 运行实例
读取
^^^^^^^^

有两种方式读取 ``intset`` 的元素,一种是 ``_intsetSet`` ,另一种是 ``intsetSearch`` :
有两种方式读取 ``intset`` 的元素,一种是 ``_intsetGet`` ,另一种是 ``intsetSearch`` :

- ``_intsetSet`` 接受一个给定的索引 ``pos`` ,并根据 ``intset->encoding`` 的值进行指针运算,计算出给定索引在 ``intset->contents`` 数组上的值。
- ``_intsetGet`` 接受一个给定的索引 ``pos`` ,并根据 ``intset->encoding`` 的值进行指针运算,计算出给定索引在 ``intset->contents`` 数组上的值。

- ``intsetSearch`` 则使用\ `二分查找 <http://en.wikipedia.org/wiki/Binary_search_algorithm>`_\ 算法,判断一个给定元素在 ``contents`` 数组上的索引。

Expand Down

0 comments on commit deb9b1f

Please # to comment.