th. baruchel's blog
http://baruchel.insomnia247.nl/
Recent content on th. baruchel's blog
Hugo  gohugo.io
enus
© th. baruchel
Sun, 12 Jan 2020 00:00:00 +0000

About
http://baruchel.insomnia247.nl/about/
Sun, 12 Jan 2020 00:00:00 +0000
http://baruchel.insomnia247.nl/about/
This blog contains computersciencerelated stuff.

Code snippets for the Binomial modulo 2 transform and its inverse
http://baruchel.insomnia247.nl/posts/20200111binomialtransformcode/
Sat, 11 Jan 2020 00:00:00 +0000
http://baruchel.insomnia247.nl/posts/20200111binomialtransformcode/
While working on my latest paper, I encountered the need to compute the Binomial modulo 2 transform (as well as its inverse). Though the initial definition (which can be found in a comment of sequence A100735) obviously is in $O(n^2)$, it is rather easy to figure out some algorithm for computing it in $O(\log n)$.
The code assumes that the length of the list to be computed is a power of 2.