Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0ffcc8a

Browse files
committed
修正跳表遍历描述
1 parent 8f3b0c8 commit 0ffcc8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎docs/java/concurrent/java-concurrent-collections.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ private static ArrayBlockingQueue<Integer> blockingQueue = new ArrayBlockingQueu
142142

143143
最低层的链表维护了跳表内所有的元素,每上面一层链表都是下面一层的子集。
144144

145-
跳表内的所有链表的元素都是排序的。查找时,可以从顶级链表开始找。一旦发现被查找的元素大于当前链表中的取值,就会转入下一层链表继续找。这也就是说在查找过程中,搜索是跳跃式的。如上图所示,在跳表中查找元素 18。
145+
跳表内的所有链表的元素都是排序的。查找时,可以从顶级链表开始找。一旦发现被查找的元素小于当前访问节点的后继节点(或后继节点为空),就会转入下一层链表继续找。这也就是说在查找过程中,搜索是跳跃式的。如上图所示,在跳表中查找元素 18。
146146

147147
![在跳表中查找元素18](https://oss.javaguide.cn/github/javaguide/java/32005738.jpg)
148148

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /