Useless Algorithms

If you know at least 3 of these things and you are not red — you are doing it wrong. Stop learning useless algorithms, go and solve some problems, learn how to use binary search.

—— $\textcolor{black}{\text{U}}\textcolor{red}{\text{m_nik}}$

本文来自 $\textcolor{black}{\text{U}}\textcolor{red}{\text{m_nik}}$ 的 CodeForces 博客,大多是一些强大复杂但是不一定有用的算法或数据结构。


  1. 在中文网上资料较少,这里保留英文名。 ↩︎

  2. 在归并排序时将各级有序数组保留,可以用于解决区间第 $k$ 小问题。 ↩︎

  3. 原文如此。 ↩︎ ↩︎ ↩︎ ↩︎

  4. 我擅自认为朴素 A* 不能被计算,因为它的复杂度不是最优的。 ↩︎