AlgoWikiAlgoWiki

  • Home
  • All pages
  • Categories
  • Help

This page


  • Edit
  • See history
  • See raw source
  • View on GitHub

Mo's algorithm

  • Algorithm techniques

Problems

  • D-query
  • Powerful Array
  • Curious Cupid
  • Jeff and Removing Periods
  • Tree and Queries
  • Sherlock and Inversions
  • Zero Query

Techniques

It's possible to adapt Mo's algorithm to data structures that only support insertion, but not deletion. 1

Problems

  • Chef and Graph Queries

See also

  • Mo's algorithm on trees
  • Sqrt-decomposition

External links

  • MO’s Algorithm (Query square root decomposition)
  • Mo's algorithm
  • Mo's algorithm

  1. http://codeforces.com/blog/entry/7383#comment-161520↩
AlgoWikiCC-BY-SA 4.0| fork us on GitHub