Try   HackMD
  •  
    Programming Notes
    ·
    Last edited by 林立倫 on Aug 4, 2021
    Linked with GitHub
    Contributed by
  • Edit
Last changed by 

 
Programming Notes
0
187

Read more

Fenwick Tree

Motivation Given a list of elements, we want to calculate cumulative total based on an associative binary operation. Moreover, efficient modification is desired. Naive Concept Using an array arr to store each element in the original list.

Nov 26, 2021
Disjoint Sets

Motivation Design a data structure that stores a partition of a set. With the operations of union, find, etc. Naive Way-A: Update the Set Each Element Belongs to Find: $O(1)$ Make Union: $O(N)$

Nov 26, 2021
Segment Tree

Range Minimum (Maximum) Query class SegmentTree { public: SegmentTree(size_t size) : N(size), arr(size << 2, 0), tag(size << 2, 0) {} int query(int left, int right) { return query(1, 1, N, left, right); } void modify(int left, int right, int val) {

Nov 26, 2021
BigInteger

Nov 23, 2021
Read more from Programming Notes

Published on HackMD

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up