mirror of
https://github.com/krahets/hello-algo.git
synced 2025-11-02 12:58:42 +08:00
Remove center-table from docs.
Add header to the tables.
This commit is contained in:
@ -43,8 +43,7 @@
|
||||

|
||||
|
||||
上述几种方法的操作效率与特性如下表所示。
|
||||
|
||||
<div class="center-table" markdown>
|
||||
<p align="center"> 表:查找算法效率对比 </p>
|
||||
|
||||
| | 线性搜索 | 二分查找 | 树查找 | 哈希查找 |
|
||||
| ------------ | -------- | ------------------ | ------------------ | --------------- |
|
||||
@ -55,8 +54,6 @@
|
||||
| 数据预处理 | / | 排序 $O(n \log n)$ | 建树 $O(n \log n)$ | 建哈希表 $O(n)$ |
|
||||
| 数据是否有序 | 无序 | 有序 | 有序 | 无序 |
|
||||
|
||||
</div>
|
||||
|
||||
除了以上表格内容,搜索算法的选择还取决于数据体量、搜索性能要求、数据查询与更新频率等。
|
||||
|
||||
**线性搜索**
|
||||
|
||||
Reference in New Issue
Block a user