Data Structures & Algorithms

Advanced Tricks

These topics are the part of competitive programming that is hardest to compress into one sentence but easiest to recognize after enough practice.

7 published notes
5 planned topics
3 advanced or expert notes
intermediate starting level

Advanced Tricks

Offline reordering, amortized arguments, and techniques that show up when standard tools are almost enough.

Overview

This category is for techniques that are not a single data structure or a single graph routine, but still recur often enough that they deserve a stable write-up.

Examples

Mo's algorithm, offline reordering, sqrt decomposition, amortized arguments, and parametric search all live here for the same reason: once the pattern is visible, many problems stop feeling ad hoc.

How this branch is distributed

The labels are not cosmetic. They are there to signal the amount of prerequisite structure and implementation fragility you should expect before opening the note.

basic: 0 intermediate: 4 advanced: 3 expert: 0
4 intermediate
intermediate

These notes assume the base routine is already familiar and focus on the first real structural upgrades.

Binary Search on Answer, Mo's Algorithm, Offline Queries, Sqrt Decomposition

3 advanced
advanced

These are the notes where proofs, reductions, or implementation details become the main bottleneck.

Parallel Binary Search, Small-to-Large Merging, Bitset Optimization

What is already written

These are the finished note pages in this category, each with rendered TeX, C++ code, references, and practice suggestions.

Recommended order to read this branch

The default order follows each note's dependency weight: early notes establish primitives, later notes reuse them or assume the same invariants without re-explaining them.

Next topics in this branch

These are still intentionally shown as planned or outline topics rather than shallow filler. The branch should feel incomplete in honest places instead of fake-complete everywhere.

Divide and conquer on answer planned Randomization planned Amortized analysis planned Potential method planned Parametric search planned

Source Files and Assets

Raw files are still available here when you want the original TeX, C++, or statement assets.

Show raw files