摘要:
引入题目很好理解:给你N个点,求其中距离最近的一对点(之间的距离)。很显然可以枚举,时间复杂度Θ(N2)如果数据强一点(N=100000什么的),显然枚举直接挂掉,那么要怎么办呢? 这里就要用到分治(当然是二分)了,时间复杂度Θ(Nlog2N)Ps.以前几乎没做过分治,一来就碰到求最... 阅读全文
摘要:
题目descriptionAfter successive failures in the battles against the Union, the Empire retreated to its last stronghold. Depending on its powerfu... 阅读全文