Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fenwick Tree: Rewrite to focus on 1-based indexing #1346

Copy link
Copy link
Open
@jxu

Description

@jxu
Issue body actions

Article: Fenwick Tree

Problem:
Would you support a rewrite of the article to introduce 1-based indexing first? I believe this would simplify the exposition a lot (it did for me). That's also how Fenwick introduces it in his original paper https://web.archive.org/web/20160307203033/http://olds.blogcn.com/wp-content/uploads/67/6754/2009/01/bit.pdf
Apparently the getsum index operation i -= i & -i can also be written i &= i-1

Btw, wikipedia says the BIT was first introduced by Boris Ryabko in 1989, but I can't actually read it (and it doesn't have nice diagrams) https://web.archive.org/web/20190717074430/http://boris.ryabko.net/dan1989.pdf (English https://boris.ryabko.net/[ryabko1992.pdf](https://boris.ryabko.net/ryabko1992.pdf))

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.