Let $A = \{J \in \mathcal{D}^d([0, 1]^d) \mid |J| = 2^{-n}\}$ be the set of all dyadic rectangles in the $d$-dimensional unit cube with volume $2^{-n}$, where $J = I_1 \times \cdots \times I_d$ with $I_i$, $i = 1, \ldots, d$, dyadic intervals in $[0, 1]$. I want to find the cardinality of $A$. In fact I want to show that $\mathbf{card}(A) \approx 2^n n^{d - 1}$. I'll give an example: In the case $d=2$, we have $\mathbf{card}(A) =2^n (n+1)$, i.e, $n+1$ possible partitions of the square $[0,1]^2$. In each partitions the rectangles have area $2^{-n}$.
-
Request clarification. If by dyadic rectangle, you mean the co-ordinates of the vertices are any dyadic rationals in [0,1] ( with the usual def'n ), then with d=1 and n=1., the set A is infinite. – DanielWainfleet Aug 09 '15 at 03:11
-
@user254665 I believe that OP means the vertices belong to the dyadic grid of scale $2^{-n}$. – Silvia Ghinassi Aug 09 '15 at 03:16
1 Answers
Take the cube $Q=[0,1]^d$ and consider the dyadic grid of scale $2^{-n}$ (that is, subdivide $Q$ in $2^{dn}$ cubes of sidelength $2^{-n}$ and volume $2^{-dn}$). Now we want to count how many rectangles of volume $2^{-n}$ there are. There are several different types of rectangles with $(0,0,\dots,0)$ as a corner, and then shifted versions of those.
Fix one of those shapes, and let $Q_{k_1, \dots, k_d}$ be a $d$-dimensional rectangle of volume $2^{-n}$, sides of length $2^{-k_1}, \dots, 2^{-k_d}$, where $k_i \geq 0$ for $i=1,\dots,d$ and $k_1 + \dots +k_d=n$, and having $(0,0,\dots,0)$ as a corner.
We have two things to count:
- How many different types of rectangles can we have?
- Given one type, how many different rectangles of the same type can we have inside $Q$?
For the first question, this corresponds to the number of solutions of $k_1 + \dots +k_d=n$. By Theorem two the number of solutions is ${n+d-1}\choose{n}$ which has the order of $n^{d-1}$ (as can be seen by writing out the factorials).
For the second question, fix a rectangle $Q_{k_1,\dots,k_d}$ and translate it so that one of its corners is the $(1,1,\dots,1)$ corner of $Q$. Now look at the translate of $(0,0,\dots,0)$, say $(p_1,\dots,p_d)$ (i.e. the point that $(0,0,\dots,0)$ is mapped to by the translation). We want to count the number of points $(x_1,\dots,x_d) \in Q$ of the dyadic grid of scale $2^{-n}$ with $x_i \leq p_i$ for every $i=1,\dots,d$. These are precisely the points we can translate the $(0,0,\dots,0)$ corner of $Q_{k_1,\dots,k_d}$ to so that it is still contained in $Q$.
We have $$ \prod_{i=1}^d \left( \frac{1-2^{-k_i}}{2^{-n}}+ 1\right) $$ points. In fact, fix the $i$-th coordinate. We have $p_i=1-2^{-k_i}=\frac{2^n-2^{k_1 \dots \hat{k_i}\dots k_d}}{2^n}$ and we want to count how many choices of $x_i$ there are. This is just the length of the interval $[0, p_i]$ divided by the scale of the grid, adding $1$ to include the right endpoint. Repeating the process for every coordinate and taking the product we get the expression above.
Now we have $$ \prod_{i=1}^d \left( \frac{1-2^{-k_i}}{2^{-n}}+ 1\right) \approx \prod_{i=1}^d \left( \frac{1-2^{-k_i}}{2^{-n}}\right) = 2^{dn} \prod_{i=1}^d \frac{2^{k_i}-1}{2^{k_i}} = \frac{2^{dn}}{2^n} \prod_{i=1}^d (2^{k_i}-1) \approx \frac{2^{dn}}{2^n} 2^n = 2^{dn}. $$
By multiplying the two results, we get $\mathbf{card}(A) \approx 2^{dn} n^{d-1}$. Note that your claim has a different exponent of $2$.
- 4,707
-
-
For the question 2 in the case $d=3$ and $n=2$ one can see (geometrically) that we have $2^n$ rectangules of the same type. I don't understand why you find $2^{nd}$. Who is $(p_1,\ldots, p_d)$? Please, help. – omonda nii Aug 14 '15 at 14:53
-
Would you mind explain to me how do you get $2^n$ rectangles? I can't see that. $(p_1, \dots, p_d)$ is just a name for the translate of the origin, as explained in the answer. – Silvia Ghinassi Aug 14 '15 at 15:09
-
In this case ($d=3$ and n=2) the rectangules are rectangular parallelepipeds with volume given by $V=L \times W \times H$ . The possible cases would be: $V=1\times \frac{1}{2} \times \frac{1}{2}$, $V=\frac{1}{2} \times 1 \times \frac{1}{2}$, $V=\frac{1}{2} \times \frac{1}{2}\times 1$, $V=\frac{1}{4} \times 1 \times 1$, $V= 1 \times 1 \times \frac{1}{4}$ and $V= 1\times \frac{1}{4} \times 1$. Drowing all this cases with the shifted versions, one can see $2^n$ copies, i.e, 4 copies. – omonda nii Aug 14 '15 at 16:12
-
1In the case $V=1\times \frac{1}{2} \times \frac{1}{2}$ there are 9 possibilities. It is true that in the case $V= 1\times \frac{1}{4} \times 1$ there are only 4. Anyway your example is too small, and the approximation gets better when $d$ and $n$ gets larger. If you need a specific case you need to do it by hand, as stated mine is just an approximation. – Silvia Ghinassi Aug 14 '15 at 16:23
-