Skip to content

Update fenwick.md #1410

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Conversation

arjunUpatel
Copy link

The current bounds on j in the function do not match the summation a few lines above where the lower bound is g{i) and the upper bound is i. This change attempts to fix this disparity.

The current bounds on j in the function do not match the summation a few lines above where the lower bound is g{i) and the upper bound is i. This change attempts to fix this disparity.
@jxu
Copy link
Contributor

jxu commented Jan 6, 2025

The page is already being overhauled at #1376 so you can look at the draft there. Maybe I will just make the changes and merge

@adamant-pwn
Copy link
Member

It seems to me the current version is correct, as each $t[j]$ holds the sum from $g(j)$ to $j$, so when we update $i$, we only need to update $j$ s.t. $g(j) \leq i \leq j$.

@mhayter mhayter closed this Apr 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants