English

Multidimensional Divide-and-Conquer and Weighted Digital Sums

Data Structures and Algorithms 2010-03-02 v1 Classical Analysis and ODEs

Abstract

This paper studies three types of functions arising separately in the analysis of algorithms that we analyze exactly using similar Mellin transform techniques. The first is the solution to a Multidimensional Divide-and-Conquer (MDC) recurrence that arises when solving problems on points in dd-dimensional space. The second involves weighted digital sums. Write nn in its binary representation n=(bibi1...b1b0)2n=(b_i b_{i-1}... b_1 b_0)_2 and set SM(n)=t=0itMˉbt2tS_M(n) = \sum_{t=0}^i t^{\bar{M}} b_t 2^t. We analyze the average TSM(n)=1nj<nSM(j)TS_M(n) = \frac{1}{n}\sum_{j<n} S_M(j). The third is a different variant of weighted digital sums. Write nn as n=2i1+2i2+...+2ikn=2^{i_1} + 2^{i_2} + ... + 2^{i_k} with i1>i2>...>ik0i_1 > i_2 > ... > i_k\geq 0 and set WM(n)=t=1ktM2itW_M(n) = \sum_{t=1}^k t^M 2^{i_t}. We analyze the average TWM(n)=1nj<nWM(j)TW_M(n) = \frac{1}{n}\sum_{j<n} W_M(j). We show that both the MDC functions and TSM(n)TS_M(n) (with d=M+1d=M+1) have solutions of the form λdnlgd1n+m=0d2(nlgmn)Ad,m(lgn)+cd,\lambda_d n \lg^{d-1}n + \sum_{m=0}^{d-2}(n\lg^m n)A_{d,m}(\lg n) + c_d, where λd,cd\lambda_d,c_d are constants and Ad,m(u)A_{d,m}(u)'s are periodic functions with period one (given by absolutely convergent Fourier series). We also show that TWM(n)TW_M(n) has a solution of the form nGM(lgn)+dMlgMn+d=0M1(lgdn)GM,d(lgn),n G_M(\lg n) + d_M \lg^M n + \sum_{d=0}^{M-1}(\lg^d n)G_{M,d}(\lg n), where dMd_M is a constant, GM(u)G_M(u) and GM,d(u)G_{M,d}(u)'s are again periodic functions with period one (given by absolutely convergent Fourier series).

Cite

@article{arxiv.1003.0150,
  title  = {Multidimensional Divide-and-Conquer and Weighted Digital Sums},
  author = {Y. K. Cheung and Philippe Flajolet and Mordecai Golin and C. Y. James Lee},
  journal= {arXiv preprint arXiv:1003.0150},
  year   = {2010}
}

Comments

44 pages, 8 figures

R2 v1 2026-06-21T14:52:02.734Z