phi}}}}$ is between $\frac{s}{c_0 2^i}$ and $\frac{c_0 s}{ 2^i}$. Refer to these cells formed at the $i$-th level as $L_i$.

\[packingTheTree\] Given a ball $B$ of radius $r$ under $\sqrt{{\ensuremath{D_{s\phi}}}}$, let $i = \log \frac{ s}{c_0 r}$. Then $|L_i \cap B| \leq O(2^d)$ and the side length of each cell in $L_i$ is between $r$ and ${c_0}^2 r$ under $\sqrt{{\ensuremath{D_{s\phi}}}}$. We can also explicitly retrieve the quadtree cells corresponding to $|L_i \cap B|$ in $O(2^d \log n)$ time.

Note that for cells in $L_i$, we have side lengths under $\sqrt{{\ensuremath{D_{s\phi}}}}$ between $\frac{s}{c_0 2^i}$ and $\frac{c_0 s}{2^i}$ by Corollary \[repbis\]. Substituting $i = \log \frac{s}{c_0 r}$, these cells have side length between $r$ and ${c_0}^2 r$ under $\sqrt{{\ensuremath{D_{s\phi}}}}$. By the reverse triangle inequality and a similar argument to Lemma \[ballcover\], we get our required bound for $|L_i \cap B|$. In preconstruction of our quadtree $T$ we maintain for each dimension the corresponding interval quadtree $T_k$, $\forall k\in [1..d]$. Observe this incurs at most $O(n)$ storage, with $d$ in the big-Oh. For retrieving the actual cells $|L_i \cap B|$, we first find the $O(1)$ intervals from level $i$ in each $T_k$ that may intersect $B$. Taking a product of these, we get $O(2^d)$ cells which are a superset of the canonical cells $L_i \subset T$. Each cell may be looked up in $O(\log n)$ time from the compressed quadtree [@snotes] so our overall retrieval time is $O (2^d \log n)$.

Given query point $q$, we first obtain in $O(\log n)$
phi}}}}$ is between $ \frac{s}{c_0 2^i}$ and $ \frac{c_0 s } { 2^i}$. Refer to these cells formed at the $ i$-th level as $ L_i$. 

 \[packingTheTree\ ] Given a musket ball $ B$ of spoke $ r$ under $ \sqrt{{\ensuremath{D_{s\phi}}}}$, let $ i = \log \frac { s}{c_0 r}$. Then $ |L_i \cap B| \leq O(2^d)$ and the side duration of each cellular telephone in $ L_i$ is between $ r$ and $ { c_0}^2 r$ under $ \sqrt{{\ensuremath{D_{s\phi}}}}$. We can also explicitly retrieve the quadtree cells match to $ |L_i \cap B|$ in $ O(2^d \log n)$ time. 

 Note that for cell in $ L_i$, we have side distance under $ \sqrt{{\ensuremath{D_{s\phi}}}}$ between $ \frac{s}{c_0 2^i}$ and $ \frac{c_0 s}{2^i}$ by Corollary \[repbis\ ]. Substituting $ i = \log \frac{s}{c_0 r}$, these cells get side length between $ r$ and $ { c_0}^2 r$ under $ \sqrt{{\ensuremath{D_{s\phi}}}}$. By the reverse triangle inequality and a similar argument to Lemma \[ballcover\ ], we catch our required bound for $ |L_i \cap B|$. In preconstruction of our quadtree $ T$ we assert for each dimension the corresponding interval quadtree $ T_k$, $ \forall k\in [ 1.. d]$. Observe this incurs at about $ O(n)$ storage, with $ d$ in the adult - Oh. For retrieving the actual cells $ |L_i \cap B|$, we first determine the $ O(1)$ intervals from level $ i$ in each $ T_k$ that may intersect $ B$. Taking a product of these, we get $ O(2^d)$ cell which are a superset of the canonical cells $ L_i \subset T$. Each cell may be looked up in $ O(\log n)$ time from the compressed quadtree [ @snotes ] so our overall retrieval time is $ O (2^d \log n)$. 

 Given question detail $ q$, we first prevail in $ O(\log n)$
phi}}}}$ is between $\frac{s}{c_0 2^i}$ and $\frac{c_0 s}{ 2^i}$. Refet ro theve celms formea at the $i$-th level as $L_i$.

\[packmngTyeTret\] Given a ball $B$ of radius $r$ under $\swrt{{\eisuremath{D_{s\phi}}}}$, lxf $i = \lon \frad{ s}{c_0 x}$. Vhen $|L_i \cap B| \lgq O(2^d)$ and tha side length mf ecch cell in $L_i$ is between $r$ and ${c_0}^2 r$ tnder $\sarh{{\ensuremath{D_{s\pri}}}}$. Wt cwn amso explicitly retrieve the quadtrse cellv correspondimg to $|L_i \cap B|$ in $O(2^d \log n)$ timf.

Note that for celps in $L_i$, we havq side lengthr under $\sqgc{{\ensuremath{S_{s\phi}}}}$ between $\frac{s}{c_0 2^i}$ and $\frac{z_0 s}{2^i}$ yy Corollari \[deotis\]. Substitnting $p = \log \frac{s}{c_0 r}$, these cells nave side lengbh bevweeb $r$ and ${c_0}^2 r$ under $\sqrv{{\ensuremath{D_{s\phi}}}}$. By jhe reversa criangle inequality abd a sikilas areymevt uo Kejma \[baplckver\], we gef our requieed bound for $|L_i \cak B|$. Pm preconstrudtion jf our quadtree $T$ we maintain for each dikenaion the corresponding unterval quadtree $T_k$, $\vorall k\ig [1..d]$. Observe this incurs at most $O(n)$ storage, with $d$ in tie biy-Ih. Fof rftrieving the actual cells $|L_i \cap B|$, we first sjnc nhe $O(1)$ intervals fvom level $i$ in eacn $H_k$ jhat may interrect $B$. Taiing a product of hhese, wg get $I(2^d)$ cells rhicn are a superset of the caninical cells $O_i \subset T$. Each czll may be luokec up on $O(\log n)$ time from the comlressed quaftree [@snofds] so our overalu rvtriaval timt is $O (2^d \log n)$.

Giveg query piint $q$, we fkrst obtaig in $O(\log j)$
phi}}}}$ is between $\frac{s}{c_0 2^i}$ and $\frac{c_0 Refer these cells at the $i$-th a $B$ of radius under $\sqrt{{\ensuremath{D_{s\phi}}}}$, let = \log \frac{ s}{c_0 r}$. Then \cap B| \leq O(2^d)$ and the side length of each cell in $L_i$ between $r$ and ${c_0}^2 r$ under $\sqrt{{\ensuremath{D_{s\phi}}}}$. We can also explicitly retrieve the cells to \cap in $O(2^d \log n)$ time. Note that for cells in $L_i$, we have side lengths under between $\frac{s}{c_0 2^i}$ and $\frac{c_0 s}{2^i}$ by Corollary Substituting $i = \log r}$, these cells have side between and ${c_0}^2 under By reverse triangle inequality a similar argument to Lemma \[ballcover\], we get our required bound for $|L_i \cap B|$. In preconstruction our quadtree maintain for dimension corresponding quadtree $T_k$, $\forall Observe this incurs at most $O(n)$ in the big-Oh. For retrieving the actual cells \cap B|$, first find the $O(1)$ intervals from $i$ in each $T_k$ that may intersect $B$. a product of these, we get $O(2^d)$ cells which are a superset of the canonical \subset T$. Each cell be looked up $O(\log time the quadtree [@snotes] our overall retrieval time is $O (2^d \log n)$. Given query $q$, we first obtain in $O(\log n)$
phi}}}}$ is between $\frac{s}{c_0 2^i}$ and $\fraC{c_0 s}{ 2^i}$. Refer tO thesE ceLls FoRmed At thE $i$-th level as $L_i$.

\[pACkinGTheTree\] Given a ball $B$ of rAdius $R$ uNDer $\sQRt{{\EnsurEmath{D_{s\PHi}}}}$, LET $i = \lOg \FrAc{ s}{C_0 r}$. tHeN $|L_i \caP B| \lEq O(2^d)$ and The side lenGth Of Each cell in $L_i$ IS bEtween $r$ and ${C_0}^2 r$ uNder $\sqrt{{\ensuRemAth{D_{s\pHi}}}}$. we cAN also ExpLicitLy retrIEve the Quadtree cElLS correSPonding TO $|l_i \Cap B|$ In $O(2^d \log n)$ time.

Note tHAt FOr cells in $L_i$, we hAve sidE lENgTHS unDer $\Sqrt{{\ensureMaTh{D_{s\pHI}}}}$ betweeN $\FrAC{S}{C_0 2^i}$ aND $\frac{c_0 s}{2^i}$ by CorOllary \[repbiS\]. subStitutInG $i = \lOG \frac{s}{C_0 r}$, theSe CEllS have side leNgth Between $r$ aNd ${c_0}^2 r$ unDEr $\sqrt{{\eNSurematH{D_{s\phi}}}}$. by tHe rEverSE tRiAngLe INeqUAlIty ANd a Similar aRgUmEnt to lemmA \[BALLcovEr\], wE get Our reQuired bound foR $|L_i \Cap B|$. iN prEconsTructIon oF oUr quaDtree $T$ We maiNtAin for each dimenSion The corresPonDiNg iNtErval QUadtreE $T_k$, $\ForAll k\in [1..d]$. observe THis InCURS aT most $O(n)$ storage, with $D$ iN THe Big-Oh. For RetrieVInG tHE actual cElLs $|L_I \cap b|$, WE firsT finD ThE $O(1)$ intervAls froM LeVeL $i$ in eacH $T_K$ that mAy IntErsEct $B$. TAKing A produCt of thesE, we geT $o(2^d)$ cells which arE A superset of thE CaNONiCAl ceLls $l_i \subset T$. EaCh ceLL may Be loOKeD up IN $O(\log N)$ time FrOM tHE compressed quadtree [@SnOtes] so Our ovErall retrievaL time is $O (2^d \lOG N)$.

given queRy poINt $Q$, We first obtain iN $O(\log N)$
phi}}}}$ is between $\frac {s}{c_0 2^ i}$ a nd$\f ra c{c_ 0 s} { 2^i}$. Refer to t hese cells formed at t he $i $- t h le v el  as $ L_i$.
\ [p a c kin gT he Tre e\ ]  G ivena b all $B$  of radius  $r $under $\sqrt { {\ ensuremath {D_ {s\phi}}}}$,  le t $i =  \ log \frac { s }{c_0  r}$.T hen $| L_i \capB| \leq O ( 2^d)$ a n d  t he s ide length of eac h  c e ll in $L_i$ is  betwe en $r $ and  ${ c_0}^2 r$un der $ \ sqrt{{\ e ns u r e mat h {D_{s\phi}}}} $. We can a l soexplic it lyr etriev e the  q u adt ree cells c orre spondingto $|L _ i \capB |$ in $ O(2^d\lo g n )$ t i me .
No te tha t  f orc ell s in $L_ i$ ,we ha ve s i d e leng ths  und er $\ sqrt{{\ensure mat h{D_ { s\p hi}}} }$ be twee n$\fra c{s}{c _0 2^ i} $ and $\frac{c_ 0 s} {2^i}$ by  Co ro lla ry  \[re p bis\].  Su bst ituting  $i = \ l og\f r a c {s }{c_0 r}$, these c el l s  h ave side  lengt h  b et w een $r$an d $ {c_0 } ^ 2 r$unde r  $ \sqrt{{\ ensure m at h{ D_{s\ph i} }}}$.By  th e r evers e  tri angleinequali ty an d  a similar arg u ment to Lemma \[ b a ll c over \],  we get our  req u ired  bou n dfor $|L_i  \cap  B | $. In preconstructionof  our q uadtr ee $T$ we mai ntain fore a c h dimens iont he correspondinginter val quadtr e e $T_k$,  $\fo rall k\i n [1..d]$ . Observethi s i ncu rsa t  m ost $O(n)$ st o r age,  w ith $d$  in  the bi g-O h.For  re tr ieving th e actual  c el ls  $ |L_ i \ca p  B|$, we  f irs tfin d the $O(1)$  inte rval sfr o m l evel $i $  i n each  $ T_ k$ t hat  m ay in ters e ct$B$. Ta king a pr odu c t of  t he se, weget $O(2^d)$ce lls whichar e a  super s e t of the  canonical cells $L_i \ s ubset T $.Eachcell  may be l ook ed upin$ O(\log  n)$ t ime f ro m t h e  comp r e ss edqu adtree [@s n o tes ] soou r ov erall r etrieval time is $ O  (2 ^d \log n)$.
Gi venq u er y p o in t  $q $, wef i rst obtain in $ O(\log n)$ 
phi}}}}$ is_between $\frac{s}{c_0_2^i}$ and $\frac{c_0 s}{_2^i}$. Refer_to_these cells_formed_at the $i$-th_level as $L_i$.

\[packingTheTree\]_Given a ball $B$_of radius $r$_under_$\sqrt{{\ensuremath{D_{s\phi}}}}$, let $i = \log \frac{ s}{c_0 r}$. Then $|L_i \cap B| \leq O(2^d)$_and_the side_length_of_each cell in $L_i$ is_between $r$ and ${c_0}^2 r$_under $\sqrt{{\ensuremath{D_{s\phi}}}}$._We can also explicitly retrieve the quadtree cells_corresponding_to $|L_i \cap_B|$ in $O(2^d \log n)$ time.

Note that for cells_in $L_i$, we have side lengths_under $\sqrt{{\ensuremath{D_{s\phi}}}}$ between_$\frac{s}{c_0_2^i}$_and $\frac{c_0 s}{2^i}$ by_Corollary \[repbis\]. Substituting $i = \log_\frac{s}{c_0 r}$, these cells have side_length between $r$ and ${c_0}^2 r$ under_$\sqrt{{\ensuremath{D_{s\phi}}}}$. By the reverse triangle inequality_and a similar argument to_Lemma \[ballcover\],_we get our required bound_for $|L_i \cap_B|$. In_preconstruction of our_quadtree $T$ we maintain for each_dimension the corresponding_interval quadtree $T_k$, $\forall k\in [1..d]$._Observe_this incurs at_most_$O(n)$_storage, with_$d$ in the_big-Oh._For retrieving_the_actual cells $|L_i \cap B|$, we_first_find the $O(1)$ intervals from level $i$_in each $T_k$ that_may_intersect $B$. Taking a_product of these, we get_$O(2^d)$ cells which are a superset_of the_canonical cells_$L_i \subset T$. Each cell may be looked up in $O(\log_n)$ time from the compressed quadtree_[@snotes] so our overall_retrieval time_is_$O (2^d \log_n)$.

Given_query point_$q$, we first obtain in $O(\log n)$