ICFP 2025
Sun 12 - Sat 18 October 2025 Singapore
co-located with ICFP/SPLASH 2025
Mon 13 Oct 2025 17:15 - 17:40 at Orchid Plenary Ballroom - Algorithms Chair(s): Kimball Germane

Fenwick trees, also known as binary indexed trees are a clever solution to the problem of maintaining a sequence of values while allowing both updates and range queries in sublinear time. Their implementation is concise and efficient—but also somewhat baffling, consisting largely of nonobvious bitwise operations on indices. We begin with segment trees, a much more straightforward, easy-to-verify, purely functional solution to the problem, and use equational reasoning to explain the implementation of Fenwick trees as an optimized variant, making use of a Haskell EDSL for operations on infinite two’s complement binary numbers.

Mon 13 Oct

Displayed time zone: Perth change

16:00 - 17:40
AlgorithmsICFP Papers / JFP First Papers at Orchid Plenary Ballroom
Chair(s): Kimball Germane Brigham Young University
16:00
25m
Talk
Pushing the Information-Theoretic Limits of Random Access Lists
ICFP Papers
Edward Peters , Yong Qi Foo National University of Singapore, Michael D. Adams National University of Singapore
DOI
16:25
25m
Talk
Truly Functional Solutions to the Longest Uptrend Problem (Functional Pearl)
ICFP Papers
Alexander Dinges RPTU Kaiserslautern-Landau, Ralf Hinze RPTU Kaiserslautern-Landau
DOI
16:50
25m
Paper
Bottom-up computation using trees of sublists
JFP First Papers
Shin-Cheng Mu Academia Sinica, Taiwan
DOI
17:15
25m
Paper
You could have invented Fenwick treesRemote
JFP First Papers
Brent Yorgey Hendrix College
DOI