上一页 1 2 3 4 5 6 7 ··· 22 下一页
摘要: <! ?title Finding repetitions Finding repetitions Given a string $s$ of length $n$. A repetition is two occurrences of a string in a row. In other wor 阅读全文
posted @ 2019-08-20 20:21 SuuTTT 阅读(163) 评论(0) 推荐(0) 编辑
摘要: Suffix Automaton A suffix automaton is a powerful data structure that allows solving many string related problems. For example, you can search for all 阅读全文
posted @ 2019-08-20 20:20 SuuTTT 阅读(248) 评论(0) 推荐(0) 编辑
摘要: Z function and its calculation Suppose we are given a string $s$ of length $n$. The Z function for this string is an array of length $n$ where the $i$ 阅读全文
posted @ 2019-08-20 20:19 SuuTTT 阅读(205) 评论(0) 推荐(0) 编辑
摘要: Prefix function. Knuth–Morris–Pratt algorithm Prefix function definition You are given a string $s$ of length $n$. The prefix function for this string 阅读全文
posted @ 2019-08-20 20:18 SuuTTT 阅读(154) 评论(0) 推荐(0) 编辑
摘要: <! ?title Suffix Array Suffix Array Definition Let $s$ be a string of length $n$. The $i$ th suffix of $s$ is the substring $s[i \ldots n 1]$. A suffi 阅读全文
posted @ 2019-08-20 20:16 SuuTTT 阅读(278) 评论(0) 推荐(0) 编辑
摘要: 知识点 计算几何基础 讲义 点 我们把点 $\mathbf r$ 看成从 $\mathbf 0$ 到 $\mathbf r$的向量 $\vec{\mathbf r}$ 点乘 1. $\mathbf a \cdot \mathbf b = \mathbf b \cdot \mathbf a$ 2. $ 阅读全文
posted @ 2019-08-17 21:12 SuuTTT 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 知识点 树状数组 解决问题类型: 单点更新,前缀查询,很简单地拓展到2维 复杂度即代码: python 例题 "UVA 12086 Potentiometers" "LOJ 1112 Curious Robin Hood" "LOJ 1266 Points in Rectangle" "Codech 阅读全文
posted @ 2019-08-16 21:25 SuuTTT 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 知识点 线段树 权值 树套树 二维 可持续 解决问题类型: 区间rmq即其他符合结合律的运算,支持区间更新。 想法题 1. 【二分】找第k个0:结点维护0的个数cnt[rt],然后在树上队cnt二分。 2. 【二分】找第k大(权值线段树):这个问题可以排序或 . 考虑线段树的做法,我们先将n个数离散 阅读全文
posted @ 2019-08-16 21:13 SuuTTT 阅读(130) 评论(0) 推荐(0) 编辑
摘要: Operations on polynomials and series In this article we will cover common operations that you will probably have to do if you deal with polynomials. B 阅读全文
posted @ 2019-08-14 16:39 SuuTTT 阅读(154) 评论(0) 推荐(0) 编辑
摘要: AtCoder 137 F 插值求系数 想法题 题意: "AtCoder 137 F" 已知:$f(x)$在p个点的值:$f(i) \equiv a_i \pmod p$ $(0 \leq i \leq p 1)$ 求:$f(x) = b_{p 1} x^{p 1} + b_{p 2} x^{p 2 阅读全文
posted @ 2019-08-13 22:24 SuuTTT 阅读(300) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 22 下一页