-
Notifications
You must be signed in to change notification settings - Fork 511
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
Wavelet Tree Module #4813
base: master
Are you sure you want to change the base?
Wavelet Tree Module #4813
Conversation
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
Changed time complexity Added braces
Changed the uniqueID
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
All the issues were answered. |
This pull request has been automatically marked as stale because it has not had recent activity. Please address the requested changes and re-request reviews. Thank you for your contribution! |
for more information, see https://pre-commit.ci
This pull request has been automatically marked as stale because it has not had recent activity. Please address the requested changes and re-request reviews. Thank you for your contribution! |
|
||
$$ | ||
\begin{aligned} | ||
\texttt{occurrences}(l, r) = \texttt{occurrences}(r) - \texttt{occurrences}(l) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick, but shouldn't it be - occurrences(l - 1)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No because I am doing including, excluding i.e [l, r)
When $\texttt{occurrences}(y)$ is the number of occurences of x in the first y elements. | ||
aka | ||
$$ | ||
\text{occurrences} = \sum_{i=1}^{y} \mathbb{1}(x_i = x) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i don't think writing out the formula is necessary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It wasnt clear before (I was asked about it), so I added it to make it a little more clear.
Latex fix Co-authored-by: Justin Ji <[email protected]>
Place an "x" in the corresponding checkbox if it is done or does not apply to this pull request.