"algorithms 4th"---symbol table

来源:互联网 发布:文章采集软件 编辑:程序博客网 时间:2024/06/05 15:19


Symbol tables are used to store key-value pairs. In common arrays, we just take keys as the order index from 0 to n, and we save value.

Symbol tables used for searching by their keys not their values, so their keys needs to be comparable.

There are two kinds of data structures, the first kind is sequential table, implemented by list; the second kind is tree structure, which aims to meet demand for both binary search and insertion speed.

We usually use hash tables in application in order for convenience rather than BBST.

0 0
原创粉丝点击