# 数据结构列表

数据结构是数据在计算机内存或存储中的一种具体组织方式，它支持插入、查找、删除、范围扫描等特定操作，且这些操作的代价是可预测的。本文综述主要的数据结构族（线性、树、哈希、图以及专用结构）、它们的操作代价、真实实现的表现，以及它们在生产系统中的用途。

| 关键事实 | 详情 |
|---|---|
| 集合结构的核心代价 | 链表与无序数组：插入、删除、查找均为 O(n)；有序数组：查找 O(log n)，插入 O(n)；平衡二叉搜索树：插入、删除、查找均为 O(log n)；哈希表：插入、删除、查找平均 O(1)<sup>[1](https://mj.ucw.cz/vyuka/dsnotes/ds.pdf)</sup> |
| 平衡树的保证 | 红黑树：最坏情况 O(log n)；跳表与树堆：期望 O(log n)；替罪羊树：摊还 O(log n)；B 树查找：O(log n)，在外存中为 O(log_B n)<sup>[2](https://opendatastructures.org/newhtml/ods/latex/intro.html)</sup> |
| 哈希表的注意事项 | 常数时间只在平均意义下成立；最坏情况是线性的，且多数实现在负载因子越过约 0.75 时重哈希（把桶数组加倍）<sup>[1](https://mj.ucw.cz/vyuka/dsnotes/ds.pdf)</sup><sup> • </sup><sup>[3](https://hld.handbook.academy/curriculum/prerequisites/data-structures-for-systems/)</sup> |
| 缓存的实际情况 | n=30 次试验的随机访问：静态数组 35.14 ms，LLC 缺失率 4.29%；哈希表 64.51 ms，6.20%；二叉搜索树 209.42 ms，18.20%；链表 258.62 ms，22.17%<sup>[4](https://www.computersciencejournals.com/ijcpdm/archives/2026/vol7issue1/PartA/7-1-1-107.pdf)</sup> |
| 数据库引擎 | B 树主导读密集的联机事务处理（OLTP）（PostgreSQL、MySQL/InnoDB）；LSM 树主导写密集与时序负载（Cassandra、RocksDB、ScyllaDB）<sup>[3](https://hld.handbook.academy/curriculum/prerequisites/data-structures-for-systems/)</sup> |
| B 树的规模 | 页大小 4 KB、分支因子 500 的四层树可存储最多 250 TB；B 树的深度通常为 3 到 4 层<sup>[5](https://strafo.net/blog/postgresql-internals/)</sup> |
| 近期新增 | C++26 新增 inplace_vector（大小可变、容量固定）和 hive（复用已删除元素的内存）；ARCTIC 是一种无锁自适应基数树，已集成进 RocksDB 和 Turso<sup>[6](https://cppreference.com/cpp/container)</sup><sup> • </sup><sup>[7](https://www.usenix.org/system/files/osdi26-ni.pdf)</sup> |

## 概述与分类

数据结构与它所实现的抽象数据类型是两回事。举例来说，字典是一种抽象类型，它存储一组互不相同的键，每个键关联一个值，其行为相当于一个可以用任意键索引的广义数组；哈希表、平衡树或跳表都是它的实现，而多数集合实现只要在存放键的地方顺带存放值，就自然而然地扩展成了字典<sup>[1](https://mj.ucw.cz/vyuka/dsnotes/ds.pdf)</sup>。

基于哈希的结构用哈希函数把键映射到桶<sup>[1](https://mj.ucw.cz/vyuka/dsnotes/ds.pdf)</sup>。专用结构服务于特定的访问模式，包括外存变体和空间变体，例如缓冲树和 R 树<sup>[8](https://www.ittc.ku.edu/%7Ejsv/Papers/Vit.IO_book.pdf)</sup>。

第二条分类轴把无序集合（USet）与有序集合（SSet）区分开来。多数 SSet 实现的查找是对数级的，而链式哈希表的查找是常数期望时间，因此通行的建议是：除非确实需要范围查询、后继查询这类有序集合功能，否则就用 USet<sup>[2](https://opendatastructures.org/newhtml/ods/latex/intro.html)</sup>。对研究文献本身的分析表明，大多数结构都由两个逻辑块组成，而数组、B 树和 LSM 树则是推敲设计权衡的主要试验场<sup>[9](https://scholar.harvard.edu/files/stratos/files/periodictabledatastructures.pdf)</sup>。

## 线性结构

数组把元素连续存放；在一项随机访问基准测试中，静态数组是被测结构里最快的，平均 35.14 ms，LLC 缺失率 4.29%<sup>[4](https://www.computersciencejournals.com/ijcpdm/archives/2026/vol7issue1/PartA/7-1-1-107.pdf)</sup>。链表用指针把每个元素单独存放，插入、删除、查找均为 O(n)，局部性很差<sup>[1](https://mj.ucw.cz/vyuka/dsnotes/ds.pdf)</sup>。

标准库把这些选择落到了实处。C++ 提供序列容器 vector、inplace_vector、forward_list、list 和 deque，另有 array（定长连续），以及 C++26 中的 hive——它复用已删除元素的内存<sup>[10](https://eel.is/c++draft/containers)</sup><sup> • </sup><sup>[6](https://cppreference.com/cpp/container)</sup>。Java 则把接口直接对应到结构上：HashSet 是哈希表，TreeSet 是平衡树，LinkedHashSet 是哈希表加链表，ArrayList 是可扩容数组，LinkedList 是链表，ArrayDeque 是可扩容数组<sup>[11](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/doc-files/coll-overview.html)</sup>。

在这里，实测表现与渐近分析的说法相差极大。在随机访问基准测试中链表表现最差，因为访问要反复解引用指针，局部性差，预取几乎帮不上忙<sup>[4](https://www.computersciencejournals.com/ijcpdm/archives/2026/vol7issue1/PartA/7-1-1-107.pdf)</sup>。在 1000 万条记录时，std::list 的删除耗时 65,682 ms，而哈希表只要 1 ms<sup>[12](https://github.com/victory113/ADT-Performance)</sup>。

## 树结构

二叉搜索树让键保持有序，因此在平衡时查找、插入、删除的代价都是 O(log n)。平衡机制各有不同：红黑树保证最坏情况 O(log n)；树堆和跳表借助随机性给出 O(log n) 的期望时间；替罪羊树给出摊还 O(log n)<sup>[2](https://opendatastructures.org/newhtml/ods/latex/intro.html)</sup>。堆以 O(1) 回答最小值查询，插入与删除则为摊还（二叉堆）或期望（可合并堆）O(log n)<sup>[2](https://opendatastructures.org/newhtml/ods/latex/intro.html)</sup>。

**B 树**把搜索树推广到多路节点，节点大小按磁盘页或缓存行来定，正因如此它们在外存中占据主导：在字典操作与一维范围查询方面，它们是最广泛使用的在线外存结构；而外存哈希字典可以用一两次 I/O 回答点查询<sup>[8](https://www.ittc.ku.edu/%7Ejsv/Papers/Vit.IO_book.pdf)</sup>。B 树发明于一篇重要综述发表约 40 年前，不到 10 年后便被称为无处不在，如今 B 树索引运行在从手持设备到大型机与服务器农场的各种系统上<sup>[13](https://dl.acm.org/doi/10.1561/1900000028)</sup>。算术解释了它的形状：页大小 4 KB、分支因子 500 时，四层树可寻址最多 250 TB，深度通常为 3 到 4 层<sup>[5](https://strafo.net/blog/postgresql-internals/)</sup>。[PostgreSQL](https://www.edgepedia.org/zh/postgresql) 的 B 树索引是多层树，每一层同时又是页的双向链表，第一个段文件开头有一个单独的元页（metapage）<sup>[14](https://www.postgresql.org/docs/15/btree-implementation.html)</sup>。

前缀树（trie）逐位索引键：对 w 位键，二叉前缀树每次操作代价 O(w)，XFastTrie 的查找是 O(log w) 期望时间<sup>[2](https://opendatastructures.org/newhtml/ods/latex/intro.html)</sup>。[Linux 内核](https://www.edgepedia.org/zh/linux-kernel)的 XArray 在 Linux 4.20 中取代了页缓存的基数树，它是一棵前缀树，内部节点通常有 64 个子节点，对 64 位索引最多约 11 层<sup>[15](https://kernelpath.vercel.app/module/t7-03)</sup>。

## 基于哈希的结构

哈希表用算术方法从键算出一个桶，插入、删除、查找平均为 O(1)；但与基于比较的结构不同，它不依赖任意的可比较次序，而需要一个把键映射到桶的哈希函数，而且常数时间的界只在平均意义下成立<sup>[1](https://mj.ucw.cz/vyuka/dsnotes/ds.pdf)</sup>。C++ 标准对其无序容器明确说明了这一点：大多数操作的最坏复杂度是线性的，而平均情况要快得多<sup>[10](https://eel.is/c++draft/containers)</sup>。

多数实现在负载因子越过约 0.75 时重哈希，把桶数组加倍<sup>[3](https://hld.handbook.academy/curriculum/prerequisites/data-structures-for-systems/)</sup>。Redis 展示了这周围的工程考量：它的哈希在低于可配置的大小阈值时使用紧凑的 listpack 编码，超过后升级为带增量重哈希的链式哈希表——扩容期间两张哈希表并存，每次访问迁移一部分条目<sup>[16](https://www.techinterview.org/post/3233473071/lld-redis-internals/)</sup>。哈希质量在实践中很重要；基准测试工作表明，哈希函数对输入值产生的哈希值的高位特性会影响映射容器的性能<sup>[17](https://martin.ankerl.com/2022/08/27/hashmap-bench-01/)</sup>。

## 图结构与专用结构

一项对 20 多个动态图容器的基准测试发现，用现成 B 树搭成的简单容器平均耗时仅为高度优化的静态结构的 1.22 倍，而最好的专用动态结构（由未压缩的 PaC 树组成的向量、支持内联更新）与静态 CSR 基线的差距在 1.11 倍以内<sup>[18](https://arxiv.org/pdf/2405.11671)</sup>。

专用结构填补特定的空白。缓冲树是批量化的动态 B 树变体，用于外存扫描线应用中的搜索树和优先队列；R 树这类多维 B 树扩展使用线性磁盘空间，通常表现良好，尽管最坏情况性能很差<sup>[8](https://www.ittc.ku.edu/%7Ejsv/Papers/Vit.IO_book.pdf)</sup>。跳表无需旋转即可给出 O(log n) 的期望查找；Redis 用改进的跳表实现有序集合，允许分值重复，分值相同时按卫星元素比较，并带一个第 1 层回指指针以支持反向迭代<sup>[3](https://hld.handbook.academy/curriculum/prerequisites/data-structures-for-systems/)</sup>。布隆过滤器用常数次哈希探测就能排除不存在的键，它与 B 树、哈希表并列为三种最流行的传统索引方法<sup>[5](https://strafo.net/blog/postgresql-internals/)</sup><sup> • </sup><sup>[19](https://link.springer.com/article/10.1186/s40537-026-01542-1)</sup>。

## 数字一览

| 结构 | 查找 | 插入 | 删除 | 说明 |
|---|---|---|---|---|
| 链表 / 无序数组 | O(n) | O(n) | O(n) | 缓存局部性最差；链表 LLC 缺失率 22.17%<sup>[1](https://mj.ucw.cz/vyuka/dsnotes/ds.pdf)</sup><sup> • </sup><sup>[4](https://www.computersciencejournals.com/ijcpdm/archives/2026/vol7issue1/PartA/7-1-1-107.pdf)</sup> |
| 有序数组 | O(log n)<sup>[1](https://mj.ucw.cz/vyuka/dsnotes/ds.pdf)</sup> | O(n) | O(n) |  |
| 平衡树（红黑树、AVL） | O(log n) | O(log n) | O(log n) | 随机访问基准中 LLC 缺失率 18.20%<sup>[2](https://opendatastructures.org/newhtml/ods/latex/intro.html)</sup><sup> • </sup><sup>[4](https://www.computersciencejournals.com/ijcpdm/archives/2026/vol7issue1/PartA/7-1-1-107.pdf)</sup> |
| 哈希表 | 平均 O(1)，最坏 O(n) | 平均 O(1) | 平均 O(1) | 缺失率 6.20%；负载因子约 0.75 时重哈希<sup>[1](https://mj.ucw.cz/vyuka/dsnotes/ds.pdf)</sup><sup> • </sup><sup>[3](https://hld.handbook.academy/curriculum/prerequisites/data-structures-for-systems/)</sup> |
| 跳表 / 树堆 | 期望 O(log n) | 期望 O(log n) | 期望 O(log n) | 无需旋转<sup>[2](https://opendatastructures.org/newhtml/ods/latex/intro.html)</sup> |
| B 树 | O(log n)，外存 O(log_B n) | 摊还 O(B + log n) | O(log n) | 节点平均占用率约 70%<sup>[20](https://queue.acm.org/doi/10.1145/3212477.3220266)</sup> |
| 二叉堆 | 最小值查询 O(1) | 摊还 O(log n) | 摊还 O(log n) | 优先队列结构<sup>[2](https://opendatastructures.org/newhtml/ods/latex/intro.html)</sup> |

实测的常系数进一步印证了这一排序。在 1000 万条记录时，哈希表插入比 AVL 树插入快约 66%，比 BST 插入快约 56%，而查找与删除在各种数据规模下都在 1 ms 上下<sup>[12](https://github.com/victory113/ADT-Performance)</sup>。在对六种结构、最多 100 万元素的 26,000 次基准测试中，哈希表在创建、插入和查找上最快，而链表的查找要慢上几个数量级<sup>[21](https://medium.com/@jthgraphics/do-data-structures-really-scale-i-ran-26-000-benchmarks-to-find-out-992dafe1e45b)</sup>。内存开销方面，链式数组树（Linked Array Tree，LAT）占用最低，在 100 万元素时降到每元素 1 字节以下，而链表每元素超过 20 字节；规模增大时 LAT 与哈希表保持在每元素 60 字节以下，而树、前缀树和跳表则要多出 2 到 3 倍<sup>[21](https://medium.com/@jthgraphics/do-data-structures-really-scale-i-ran-26-000-benchmarks-to-find-out-992dafe1e45b)</sup>。

## 对比：如何选择结构

选择取决于工作负载的主导操作。对于无序键上的点查询，哈希表是默认选择：平均查找 O(1)，实测结果也证实，在大规模数据下，它在插入与查找上都胜过树<sup>[3](https://hld.handbook.academy/curriculum/prerequisites/data-structures-for-systems/)</sup><sup> • </sup><sup>[12](https://github.com/victory113/ADT-Performance)</sup>。但哈希表不保留键的顺序，无法高效地做范围查询，因此不适合，比如说，城市数据库；B+ 树支持大型数据库、记录的插入删除以及范围查询，而当数据库只创建一次、之后不再变化时，简单的线性索引更为合适<sup>[22](https://opendsax.cs.vt.edu/ODSA/Books/CS3/html/IntroDSA.html)</sup>。

对有序数据，比较发生在 B 树与 LSM 树之间。B 树在磁盘上原地更新，并靠在有序节点内二分查找来保证对数级查找；LSM 树把写缓冲在内存驻留表里，再把排好序的内容刷写到磁盘，以更贵的读取和合并压缩（compaction）为代价优化写性能<sup>[20](https://queue.acm.org/doi/10.1145/3212477.3220266)</sup>。写放大决定难分伯仲的情形，而证据是有条件的、并非一边倒：当缓存容纳了大部分数据、或平均记录大小在 512 B 以上时，B+ 树的写放大可以远低于 LSM 树；但在 8 KB 的页内修改一条 32 B 记录，B+ 树刷写时的写放大是 256，而典型 LSM 树约为 20<sup>[23](https://www.usenix.org/publications/loginonline/revisit-b-tree-vs-lsm-tree-upon-arrival-modern-storage-hardware-built)</sup>。LSM 树的合并压缩本身会把数据重写 10 到 30 次，分层合并压缩以更低的写放大（约 9 倍）换取大合并期间约 100% 的瞬时磁盘开销<sup>[24](https://hld.handbook.academy/curriculum/data-systems/storage-engines/)</sup>。

空间效率也不同：B 树节点平均占用率约为 70%，预留的空间用于原地更新；而 LSM 树不预留空余空间，且由于文件不可变而允许块压缩<sup>[20](https://queue.acm.org/doi/10.1145/3212477.3220266)</sup>。

## 近期进展

**学习型索引**用数据的模型取代结构的一部分。一篇 2026 年的系统综述把 B 树、哈希表和布隆过滤器列为三种最流行的传统索引方法，并指出这些结构与数据分布无关，因而放弃了优化机会——它们没有利用偏斜分布、时间动态或空间聚集<sup>[19](https://link.springer.com/article/10.1186/s40537-026-01542-1)</sup>。学习型索引用线性回归这类简单模型拟合键的累积分布，在分布有利时把二分查找 O(log n) 的开销换成接近 O(1) 的查找代价<sup>[25](https://dl.acm.org/doi/abs/10.1145/3736168)</sup>。LOFT（EuroSys 2025）用无锁自适应学习型索引把这一思路扩展到动态负载，面向内存数据库，以及 [Memcached](https://www.edgepedia.org/zh/memcached)、Redis 这类键值存储<sup>[26](https://csyhua.github.io/csyhua/hua-eurosys2025.pdf)</sup>。

**无锁与 GPU 结构**也取得了进展。ARCTIC 是一种无锁自适应基数树；把它加入 RocksDB 和 Turso 后，在两者写密集的负载上，相比它们默认使用的跳表，吞吐分别最多提升 40% 和 12%；在 80 个线程下，它相对 ART 的提升从 YCSB-C 的 1.3 倍一直到 YCSB-A 的 7.7 倍<sup>[7](https://www.usenix.org/system/files/osdi26-ni.pdf)</sup>。它要求 128 位原子比较交换（compare-and-swap）和一套 hazard-keys 内存回收机制；对整数键而言，内存开销是 ART 的 0.97 到 1.5 倍<sup>[7](https://www.usenix.org/system/files/osdi26-ni.pdf)</sup>。值得注意的是，同一篇论文报告说，采用乐观锁耦合的基于锁的 B+ 树表现远好于最先进的无锁 Bw 树，可见无锁并不自动意味着更快<sup>[7](https://www.usenix.org/system/files/osdi26-ni.pdf)</sup>。在 GPU 上，FliX 用“计算到桶”的映射取代索引层遍历，相比领先的 GPU B 树把查询延迟最多降低 6.5 倍，相比领先的 GPU LSM 树降低 1.5 倍，插入吞吐则比最接近的全动态有序基线高出 8 倍以上<sup>[27](https://arxiv.org/abs/2604.16725)</sup>。

**标准库**新增了对缓存友好的容器：C++26 带来 inplace_vector——一种大小可变、容量固定、原地连续存放的容器——以及 hive，它复用已删除元素的内存<sup>[6](https://cppreference.com/cpp/container)</sup>。

## 真实系统中的数据结构

**数据库。** PostgreSQL 的默认索引是 B 树（严格说是 B+ 树的变体），基于莱曼与姚（Lehman and Yao）的高并发 B 树管理算法；任何能排序成明确定义线性序的数据类型都可以建索引，限制是索引项经 TOAST 压缩后不能超过约三分之一页，而 PostgreSQL 的数据库页通常是 8 KB<sup>[28](https://github.com/postgres/postgres/tree/master/src/backend/access/nbtree)</sup><sup> • </sup><sup>[29](https://www.postgresql.org/docs/current/btree.html)</sup><sup> • </sup><sup>[5](https://strafo.net/blog/postgresql-internals/)</sup>。B 树适合 PostgreSQL 和 MySQL/InnoDB 中带范围扫描的读密集联机事务处理（OLTP），而 LSM 树适合 [Cassandra](https://www.edgepedia.org/zh/apache-cassandra)、RocksDB、ScyllaDB 中写密集与时序负载，其顺序写为摊还 O(1)，但合并压缩的写放大达 10 到 30 倍<sup>[3](https://hld.handbook.academy/curriculum/prerequisites/data-structures-for-systems/)</sup>。TiKV 正是出于这个理由为它的键值引擎选择了 LSM 树：写性能更好，代价是读更差<sup>[30](https://tikv.github.io/deep-dive-tikv/key-value-engine/B-Tree-vs-Log-Structured-Merge-Tree.html)</sup>。

**实测对比。** 对 150 GB、128 字节记录的数据集，RocksDB（LSM 树）占用 218 GB，WiredTiger（B+ 树）占用 280 GB，体现了 LSM 树的存储效率<sup>[23](https://www.usenix.org/publications/loginonline/revisit-b-tree-vs-lsm-tree-upon-arrival-modern-storage-hardware-built)</sup>。在 16 个客户端线程下，WiredTiger 达到 71K 点读 TPS，而 RocksDB 和一种 B--树变体达到 57K TPS，约低 19.7%；在随机点写下，B--树的写吞吐比 RocksDB 高 19%，比 WiredTiger 高约 2.1 倍；RocksDB 的范围扫描吞吐明显更差，因为扫描要读遍 LSM 树的各层，读放大很高<sup>[23](https://www.usenix.org/publications/loginonline/revisit-b-tree-vs-lsm-tree-upon-arrival-modern-storage-hardware-built)</sup>。

**内存系统。** Redis 把列表实现为 quicklist（由 listpack 节点组成的双向链表），两端的插入与弹出都是 O(1)；有序集合则实现为跳表加哈希表的组合，按成员查分值是 O(1)，排名与范围操作是 O(log N)；Redis 选择跳表而非平衡二叉搜索树，是因为跳表的范围操作实现起来更简单，内存开销也相当<sup>[16](https://www.techinterview.org/post/3233473071/lld-redis-internals/)</sup>。

**内核与文件系统。** Linux 内核使用红黑树，它保证树高至多 2 log2(n)，插入、删除、查找最坏为 O(log n)<sup>[15](https://kernelpath.vercel.app/module/t7-03)</sup>。内核的 hlist 用指针的指针这一技巧，让哈希桶头只花一个指针而不是两个，从而实现 O(1) 删除；而对于少于约 32 个元素的链表，尽管渐近复杂度更差，朴素链表遍历的实际耗时常常胜过红黑树<sup>[15](https://kernelpath.vercel.app/module/t7-03)</sup>。XFS 用 B+ 树维护每个分配组内的记账信息，并配合延迟的基于区段（extent）的分配来改善数据连续性与 IO 性能<sup>[31](https://www.kernel.org/pub/linux/utils/fs/xfs/docs/xfs_filesystem_structure.pdf)</sup>。

**教科书说法与实测相遇之处。** 反复出现的教训是：渐近分析定不了的，由常系数和缓存行为来定。哈希表在纸面上和多数基准中都胜过树，但在较大的批量插入上，扁平哈希集合可以比 Abseil B 树快约 3 倍，体现了查询与更新之间的权衡<sup>[18](https://arxiv.org/pdf/2405.11671)</sup>。具体到 C 与 C++ 的哈希表库，插入整数键时 STC 的 hmap 最快，查找已有整数键时 M*LIB 的 DICT 最快，而迭代最快的是 stb_ds 的 hm 和 sh<sup>[32](https://jacksonallan.github.io/c_cpp_hash_tables_benchmark/)</sup>。在内核里，少于大约 32 个元素时朴素链表就会取胜，无论大 O 怎么说<sup>[15](https://kernelpath.vercel.app/module/t7-03)</sup>。

## References

1. [Lecture notes on data structures (Charles University)](https://mj.ucw.cz/vyuka/dsnotes/ds.pdf)
2. [Open Data Structures, Introduction (Pat Morin)](https://opendatastructures.org/newhtml/ods/latex/intro.html)
3. [Data Structures for Distributed Systems (Handbook Academy curriculum)](https://hld.handbook.academy/curriculum/prerequisites/data-structures-for-systems/)
4. [A comparative research of cache-friendly data structures for beginner-level algorithms (2026)](https://www.computersciencejournals.com/ijcpdm/archives/2026/vol7issue1/PartA/7-1-1-107.pdf)
5. [Database internals (part 1): notes on storage engines and PostgreSQL (Strafo)](https://strafo.net/blog/postgresql-internals/)
6. [Containers library, cppreference.com](https://cppreference.com/cpp/container)
7. [ARCTIC: a practical lock-free adaptive radix tree (OSDI 2026)](https://www.usenix.org/system/files/osdi26-ni.pdf)
8. [Algorithms and Data Structures for External Memory (Jeffrey S. Vitter)](https://www.ittc.ku.edu/%7Ejsv/Papers/Vit.IO_book.pdf)
9. [Periodic Table of Data Structures (Stratos Idreos et al., Harvard)](https://scholar.harvard.edu/files/stratos/files/periodictabledatastructures.pdf)
10. [C++ standard draft, [containers] clause](https://eel.is/c++draft/containers)
11. [Collections Framework Overview (Oracle JDK 11)](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/doc-files/coll-overview.html)
12. [ADT-Performance: measured search/insert/delete timings at scale (GitHub)](https://github.com/victory113/ADT-Performance)
13. [Modern B-Tree Techniques (Foundations and Trends in Databases)](https://dl.acm.org/doi/10.1561/1900000028)
14. [PostgreSQL Documentation: B-Tree Implementation](https://www.postgresql.org/docs/15/btree-implementation.html)
15. [Kernel Data Structures (KernelPath)](https://kernelpath.vercel.app/module/t7-03)
16. [Redis Internals (TechInterview)](https://www.techinterview.org/post/3233473071/lld-redis-internals/)
17. [Comprehensive C++ Hashmap Benchmarks 2022 (Martin Ankerl)](https://martin.ankerl.com/2022/08/27/hashmap-bench-01/)
18. [Benchmarking dynamic graph data structures across 20 containers and 10 graphs (arXiv)](https://arxiv.org/pdf/2405.11671)
19. [Indexing meets machine learning: a systematic literature review of learned indexes (Journal of Big Data, 2026)](https://link.springer.com/article/10.1186/s40537-026-01542-1)
20. [Algorithms Behind Modern Storage Systems (ACM Queue)](https://queue.acm.org/doi/10.1145/3212477.3220266)
21. [Do data structures really scale? I ran 26,000 benchmarks to find out (Medium)](https://medium.com/@jthgraphics/do-data-structures-really-scale-i-ran-26-000-benchmarks-to-find-out-992dafe1e45b)
22. [CS3 Data Structures & Algorithms (Virginia Tech ODSA)](https://opendsax.cs.vt.edu/ODSA/Books/CS3/html/IntroDSA.html)
23. [Revisiting B+-tree vs. LSM-tree upon the arrival of modern storage hardware (USENIX ;login:)](https://www.usenix.org/publications/loginonline/revisit-b-tree-vs-lsm-tree-upon-arrival-modern-storage-hardware-built)
24. [Storage Engines: B-Trees, LSM-Trees (Handbook Academy curriculum)](https://hld.handbook.academy/curriculum/data-systems/storage-engines/)
25. [Towards Optimizing Learned Index for High Performance, Memory Efficiency and NUMA Awareness (ACM TACO)](https://dl.acm.org/doi/abs/10.1145/3736168)
26. [LOFT: A Lock-free and Adaptive Learned Index with High Scalability for Dynamic Workloads (EuroSys 2025)](https://csyhua.github.io/csyhua/hua-eurosys2025.pdf)
27. [FliX: Flipped-Indexing for Scalable GPU Queries and Updates (arXiv)](https://arxiv.org/abs/2604.16725)
28. [postgres/src/backend/access/nbtree (PostgreSQL source)](https://github.com/postgres/postgres/tree/master/src/backend/access/nbtree)
29. [PostgreSQL Documentation: B-Tree Indexes](https://www.postgresql.org/docs/current/btree.html)
30. [B-Tree vs Log-Structured Merge-Tree (Deep Dive TiKV)](https://tikv.github.io/deep-dive-tikv/key-value-engine/B-Tree-vs-Log-Structured-Merge-Tree.html)
31. [XFS Filesystem Structure (kernel.org)](https://www.kernel.org/pub/linux/utils/fs/xfs/docs/xfs_filesystem_structure.pdf)
32. [An Extensive Benchmark of C and C++ Hash Tables (Jackson Allan)](https://jacksonallan.github.io/c_cpp_hash_tables_benchmark/)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Algorithms and computational methods › Data structures

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/list-of-data-structures

English original: https://www.edgepedia.org/list-of-data-structures
