Skip to content

Commit

Permalink
Add sqrt technique
Browse files Browse the repository at this point in the history
  • Loading branch information
harry900831 committed Feb 9, 2023
1 parent 628c42a commit afb4be0
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
- [Dynamic Programming]()
- [Basic DP]()
- [Flow]()
- [Sqrt Technique](sqrt/intro.md)
- [Sqrt Decomposition on Array](sqrt/sqrt_on_array.md)
- [Sqrt Decomposition on Operation](sqrt/sqrt_on_operation.md)
- [Observation with Sqrt](sqrt/observation.md)
- [Mo's Algorithm](sqrt/mos_algo.md)
- [Mathematics](math/intro.md)
- [Arithmetic Function](math/arithmetic_function.md)
- [Miscellaneous]()
Expand Down
12 changes: 12 additions & 0 deletions src/sqrt/intro.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Sqrt Technique

此章節將收錄時間複雜度與根號有關的技巧例如序列分塊、操作分塊、莫隊等等。

使用分塊技巧的演算法雖然時間複雜度可能較差,但是實作常數小,因此有時可以利用他通過官解非分塊且複雜度比分塊更好的題目。


## Resource
- [[Tutorial] Square Root Techniques](https://codeforces.com/blog/entry/96713)
- [Square Root Decomposition - USACO Guide](https://usaco.guide/plat/sqrt?lang=cpp)
- [Sqrt Decomposition - Algorithms for Competitive Programming](https://cp-algorithms.com/data_structures/sqrt_decomposition.html)
- [[Tutorial] Square root decomposition and applications](https://codeforces.com/blog/entry/83248)
Empty file added src/sqrt/mos_algo.md
Empty file.
Empty file added src/sqrt/observation.md
Empty file.
Empty file added src/sqrt/sqrt_on_array.md
Empty file.
Empty file added src/sqrt/sqrt_on_operation.md
Empty file.

0 comments on commit afb4be0

Please sign in to comment.