An interesting data structure with search time O(sqrt n)

Timon Gehr via Digitalmars-d digitalmars-d at puremagic.com
Wed Dec 2 06:29:10 PST 2015


On 12/02/2015 12:26 PM, Timon Gehr wrote:
> ...
> ∑ᵢ[2≤i≤m]·log(i)·∑ₖ[0≤k≤⌊i/2⌋-1]·(2·k+1)
> =
> ∑ᵢ[2≤i≤m]·log(i)·⌊i/2⌋²
>

It should actually be (⌊i/2⌋-1)² here, but this does not change the 
asymptotics.


More information about the Digitalmars-d mailing list