Skip to content

I calculated eytz layout for range(10) and it seems you should be getting 6 3 8 1 5 7 9 0 2 4 but you had the 7 and 8 switched. #319

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions content/english/hpc/data-structures/binary-search.md
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ The only problem arises when we need to restore the index of the resulting eleme

<!--
array: 0 1 2 3 4 5 6 7 8 9
eytzinger: 6 3 7 1 5 8 9 0 2 4
eytzinger: 6 3 8 1 5 7 9 0 2 4
1st range: ------------------- k := 1
2nd range: ------------- k := 2*k = 2 (6 ≥ 3)
3rd range: ------- k := 2*k = 4 (3 ≥ 3)
Expand All @@ -356,7 +356,7 @@ eytzinger: 6 3 7 1 5 8 9 0 2 4

<pre class='center-pre'>
array: 0 1 2 3 4 5 6 7 8 9
eytzinger: <u>6</u> <u>3</u> 7 <u>1</u> 5 8 9 0 <u>2</u> 4
eytzinger: <u>6</u> <u>3</u> 8 <u>1</u> 5 7 9 0 <u>2</u> 4
1st range: ------------?------ k := 2*k = 2 (6 ≥ 3)
2nd range: ------?------ k := 2*k = 4 (3 ≥ 3)
3rd range: --?---- k := 2*k + 1 = 9 (1 < 3)
Expand Down