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

推荐订阅源

量子位
云风的 BLOG
云风的 BLOG
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
The Hacker News
The Hacker News
Martin Fowler
Martin Fowler
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
U
Unit 42
F
Full Disclosure
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Recorded Future
Recorded Future
Security Archives - TechRepublic
Security Archives - TechRepublic
阮一峰的网络日志
阮一峰的网络日志
T
Threatpost
P
Privacy International News Feed
GbyAI
GbyAI
Stack Overflow Blog
Stack Overflow Blog
MongoDB | Blog
MongoDB | Blog
I
Intezer
Recent Announcements
Recent Announcements
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
P
Privacy & Cybersecurity Law Blog
A
Arctic Wolf
博客园 - 聂微东
博客园 - 叶小钗
Cisco Talos Blog
Cisco Talos Blog
H
Help Net Security
S
Schneier on Security
Y
Y Combinator Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
T
The Exploit Database - CXSecurity.com
T
Tor Project blog
月光博客
月光博客
NISL@THU
NISL@THU
A
About on SuperTechFans
Spread Privacy
Spread Privacy
Blog — PlanetScale
Blog — PlanetScale
D
DataBreaches.Net
雷峰网
雷峰网
C
CXSECURITY Database RSS Feed - CXSecurity.com
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 【当耐特】
G
Google Developers Blog
W
WeLiveSecurity
P
Palo Alto Networks Blog
The Last Watchdog
The Last Watchdog
K
Kaspersky official blog
博客园 - 司徒正美
L
LINUX DO - 热门话题
小众软件
小众软件

博客园 - 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