随笔分类 -  数学

摘要:竞争性分析、自组织表 Self-organizing lists List L of n elems Operation Access(x),costs rank(x) = distace of x from head of L L can be reorder by transposing adj 阅读全文
posted @ 2020-06-07 22:20 y2z 阅读(314) 评论(0) 推荐(0)
摘要:平摊分析、表的扩增、势能方法 hash表需要多大? 越大越好(time) 尽可能小(space ) $\Theta $(n) for n items Problem :don't know n? Solution: dynamic tables overflow ⇒ grow it 1.Reallo 阅读全文
posted @ 2020-06-07 22:18 y2z 阅读(252) 评论(0) 推荐(0)
摘要:Codeforces Round #641 (Div. 2)C. Orac and LCM \(\Large{Prove:gcd(lcm(a,b),lcm(a,c))=a*\frac{gcd(b,c)}{gcd(a,b,c)}=lcm(a,gcd(b,c))}\) \(\Large{gcd(lcm( 阅读全文
posted @ 2020-05-31 23:51 y2z 阅读(180) 评论(0) 推荐(0)