惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
V2EX
爱范儿
爱范儿
Martin Fowler
Martin Fowler
T
The Blog of Author Tim Ferriss
B
Blog RSS Feed
博客园 - 聂微东
G
GRAHAM CLULEY
Engineering at Meta
Engineering at Meta
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
WordPress大学
WordPress大学
Scott Helme
Scott Helme
AI
AI
S
Security Affairs
T
Threat Research - Cisco Blogs
M
MIT News - Artificial intelligence
T
Troy Hunt's Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
人人都是产品经理
人人都是产品经理
AWS News Blog
AWS News Blog
T
Threatpost
Cyberwarzone
Cyberwarzone
www.infosecurity-magazine.com
www.infosecurity-magazine.com
U
Unit 42
V
Vulnerabilities – Threatpost
J
Java Code Geeks
博客园 - Franky
月光博客
月光博客
Blog — PlanetScale
Blog — PlanetScale
NISL@THU
NISL@THU
D
Docker
小众软件
小众软件
N
News and Events Feed by Topic
Microsoft Security Blog
Microsoft Security Blog
Y
Y Combinator Blog
A
Arctic Wolf
D
DataBreaches.Net
云风的 BLOG
云风的 BLOG
Forbes - Security
Forbes - Security
量子位
PCI Perspectives
PCI Perspectives
美团技术团队
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
I
InfoQ
Security Archives - TechRepublic
Security Archives - TechRepublic
有赞技术团队
有赞技术团队
腾讯CDC
P
Proofpoint News Feed
S
Security @ Cisco Blogs
G
Google Developers Blog
C
Cisco Blogs

博客园 - CC

项目管理小记 聊聊程序员绩效那点事 救火队员的那些事(4)-关于流控 我对程序员身体健康的一点感悟 救火队员的那些事(3) 救火队员的那些事(2) 救火队员的那些事(1) jvm的代码缓存耗尽导致性能下降 几次印象深刻的网上事故 是时候对十二年的工作回顾了! 入园10年了 如何读程序设计艺术第1.2节 读TAOCP的算法形式化定义以及归纳法的一点感受 用了半年时间终于把具体数学看完了. 最近几个月潜心修练Concrete Mathematics的一点感想 Solaris下误删除根目录下文件的解决之道 具体数学 一次LoadRunner的CPC考试经历 MFC的序列化的一点研究.
Exercises of Concrete Mathematics
CC · 2007-12-24 · via 博客园 - CC

    1.1  At first,the proof seems perfect!Horses 1 through n-1 are the same color,and horses2 through n are the same color,
but when the n=2 ,that 1 and 1 are same color, 2 and 2 are same color,so it can't induction that all horses are same color.
The basis of this inducation is wrong!It should from n=2 no n=1!
    1.2 This exercise is variant of Hanoi Tower.
        T(0)=0
        Because it direct move between A and B are disallowed,We can first move T(n-1) from A to B,the move the largest
        disk to C(Move from A to B is disallowed),then move T(n-1)  from B to A,then move the largest disk in C to B,then
        remove the T(n-1) in A to B,so maximum moves is : T(n-1)+1+T(n-1)+1+T(n-1)
        T(0) = 0
        T(n) = 3T(n-1)+2
        Ok,Let's convert the recurrence  to a "closed form":
        We add 1 to both sides of equations:
        T(0) + 1 = 1;
        T(n) + 1 = 3T(n-1)+3
        Then we let U(n) = T(n)+1, we get :
        U(0) = 1;
        U(n) = 3(T(n-1)+1) = 3U(n-1))
        so the closed form is :  T(n) = 3^n -1