wsWmsword
    笔记本
    剪贴板
    翻译
    字符串
    图像处理
    震
    博弈论
    图论
    离散数学
    数论
    排序
    树形结构
    z&g
    蓝飞技术部落格
    Nod Young
    阮一峰的个人网站 - Ruan YiFeng’s Personal Website
    当然我在扯淡
    caipengbenren的博客
    CLRS Solutions[walkccc]
    Introduction to Algorithms study group
    CLRS Solutions[Andrew Lohr]
    Solutions to CLRS.[gzc]
  • 康托展开

    多用FAC(n)12345初始化数组f用于存放阶乘f[0]=1for i=1 to n-1 f[i]=f[i-1]*ireturn f 编码CT(Z)12345678910l=z.lenFAC(l)初始化res=0for i=0 to 更多
      2019-04-30     离散数学

  • 快速幂

    POWERMOD(X,Y,Z)12345678初始化res=1x=x%zwhile y!=0 if y是奇数 res=(res*x)%z y=y/2 x=(x*x)%zreturn res P1659 [国家集训队 更多
      2019-04-30     数论

  • manacher

    M(S,VS)12345678910111213初始化整形数组p[1057],整形变量ci,rei=0 //palindrome,central,right endpointlen=INITIALIZE(s,vs);for i=1 to l 更多
      2019-04-26     字符串

  • boyer-moore

    BM(X,X.SIZE,Y,Y.SIZE)12345678初始化整形数组bc[1057],gs[1057] //bad character,good suffix初始化整形变量j=0,xl=x.size,yl=y.sizeGETBC(y,y 更多
      2019-04-25     字符串

  • knuth-morris-pratt

    FIND(X,Y)12345678910初始化数组f全部置0用于部分匹配表MARRY(X)for i=0 to y.size while j>0 and x[j]!=y[i] j=f[j] if x[j]==y[i] 更多
      2019-04-25     字符串

  • 葫芦岛23点

    钢条切割给定一段长度为n英寸的钢条和一个价格表p_i,求切割钢条方案,使得销售收益r_s最大。如果长度为n英寸的钢条的价格p_n足够大,最优解可能就是完全不需要切割。长度为n英寸的钢条共有 2¯(n-1)种不同的切割方案,因为在距离钢条左端 更多
      2019-04-18     笔记本

  • If you don’t finish then you’re just busy, not productive

    One of the biggest realisations I’ve come to as part of my PhD, is how little people care about how I spend my time, the 更多
      2019-03-18     剪贴板

  • Tesla's Challenge: Leaving Behind The Lap Of Luxury

    Even after massively increasing production of the Model 3, Tesla still hasn’t managed to offer the car at its touted pri 更多
      2019-03-15     剪贴板

  • 实用色彩

    Let’s forget about the tectonical details,and this is nice to talk about practical. 灯光基础LIGHT BASICS光遇到一个表面会发生三种情况,光可能被 更多
      2019-02-27     笔记本

  • 算法在计算中的作用

    计算机也许是快的,但不是无限快。存储器也许是廉价的,但不是免费的。所以计算时间是一种有限资源,存储器中的空间也一样。 让运行插入排序的一台较快的计算机「计算机A」与运行归并排序的一台较慢的计算机「计算机B」竞争。每台计算机必须排序一个具有 更多
      2019-02-26     笔记本

    Prev1…3456Next
© chen 2016-2024
wsWmsword