数据结构与算法分析C++语言描述 Algorithm Alnalysis
渐近表示法 渐近上界 \( T(N) = O(f(N)) \) if there are positive constants \( c \) and \( n_0 \) such that \( T...
Cache of the Internet.
渐近表示法 渐近上界 \( T(N) = O(f(N)) \) if there are positive constants \( c \) and \( n_0 \) such that \( T...
等价关系(Equivalence Relations) An equivalence relation is a relation R that satisfies three properties:...
通过fibonacci数列的递推公式,可以将求数列转换为求递推矩阵的n次幂。 \begin{equation}{\left[ \begin{array}{cc}0 & 1 \\1 & ...
Arrays Array Manipulation问题:对于一个全部初始化为0的数组(其实初始化为0不重要),每次将其中的一个区间\([a,b)\)里的所有数都加上一个值\(k\),进行若干次这样的操...
两数之和 就是创建hash表,查找sum – a在hash表里是否存在。 无重复字符的最长字串 就是记录从a[start]开始的最长重复字串a[start],a[start+1],a[st...
近期评论