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

推荐订阅源

V
Visual Studio Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
G
Google Developers Blog
J
Java Code Geeks
爱范儿
爱范儿
Microsoft Azure Blog
Microsoft Azure Blog
美团技术团队
人人都是产品经理
人人都是产品经理
Martin Fowler
Martin Fowler
IT之家
IT之家
博客园_首页
B
Blog RSS Feed
Google DeepMind News
Google DeepMind News
B
Blog
U
Unit 42
Apple Machine Learning Research
Apple Machine Learning Research
L
LangChain Blog
Stack Overflow Blog
Stack Overflow Blog
罗磊的独立博客
N
Netflix TechBlog - Medium
T
Tailwind CSS Blog
博客园 - 聂微东
腾讯CDC
A
About on SuperTechFans

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