Skip to content

Commit

Permalink
fix #791
Browse files Browse the repository at this point in the history
  • Loading branch information
boazbk committed Jul 24, 2023
1 parent 03f15e3 commit 851edce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lec_03a_computing_every_function.md
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ $$
> ### {.proof data-ref="lookup-rec-lem"}
If the most significant bit $i_{0}$ of $i$ is zero, then the index $i$ is in $\{0,\ldots,2^{k-1}-1\}$ and hence we can perform the lookup on the "first half" of $x$ and the result of $LOOKUP_k(x,i)$ will be the same as $a=LOOKUP_{k-1}(x_0,\ldots,x_{2^{k-1}-1},i_1,\ldots,i_{k-1})$.
On the other hand, if this most significant bit $i_{0}$ is equal to $1$, then the index is in $\{2^{k-1},\ldots,2^k-1\}$, in which case the result of $LOOKUP_k(x,i)$ is the same as $b=LOOKUP_{k-1}(x_{2^{k-1}},\ldots,x_{2^k-1},i_1,\ldots,i_{k-1})$.
Thus we can compute $LOOKUP_k(x,i)$ by first computing $a$ and $b$ and then outputting $IF(i_{k-1},a,b)$.
Thus we can compute $LOOKUP_k(x,i)$ by first computing $a$ and $b$ and then outputting $IF(i_0,b,a)$.


__Proof of [lookup-thm](){.ref} from [lookup-rec-lem](){.ref}.__ Now that we have [lookup-rec-lem](){.ref},
Expand Down

0 comments on commit 851edce

Please sign in to comment.