Skip to content

Commit da216d6

Browse files
committed
fix example
1 parent 6d15c3f commit da216d6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

content/english/hpc/data-structures/binary-search.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -354,13 +354,13 @@ eytzinger: 6 3 7 1 5 8 9 0 2 4
354354
-->
355355

356356
<pre class='center-pre'>
357-
array: 0 1 2 3 4 5 6 7 8 9
358-
eytzinger: <u>6</u> <u>3</u> 7 <u>1</u> 5 8 9 0 <u>2</u> 4
359-
1st range: ------------------- k := 1
360-
2nd range: ------------- k := 2*k = 2 (6 ≥ 3)
361-
3rd range: ------- k := 2*k = 4 (3 ≥ 3)
362-
4th range: --- k := 2*k + 1 = 9 (1 < 3)
363-
5th range: - k := 2*k + 1 = 19 (2 < 3)
357+
array: 0 1 2 3 4 5 6 7 8 9
358+
eytzinger: <u>6</u> <u>3</u> 7 <u>1</u> 5 8 9 0 <u>2</u> 4
359+
1st range: ------------?------ k := 2*k = 2 (6 ≥ 3)
360+
2nd range: ------?------ k := 2*k = 4 (3 ≥ 3)
361+
3rd range: --?---- k := 2*k + 1 = 9 (1 < 3)
362+
4th range: ?-- k := 2*k + 1 = 19 (2 < 3)
363+
5th range: !
364364
</pre>
365365

366366
<!-- do we need the last comparison? -->

0 commit comments

Comments
 (0)