重读《Programming Pearls》之七:The Back of The Envelope
2009-09-12 22:51
483 查看
封底计算
涉及的是日常生活中的估计问题,比较常用。
*****************************************************************************
Basic Skills:
1、Two answers are better than one.
2、Quick checks. 根据波利亚的《How To Solve It》,量纲检测法、舍九法等
3、Rules of Thumb(经验法则).
"Rule of 72":Assume that you invest a sum of money for y years at an interest rate of r percent per year. The financial version of the rule says that if r*y=72, then your money will roughly double.
72法则:假如你投入一笔钱,时间是y年,每年的利率是r%。则当r*y=72时,钱将翻倍。
4、Practice.这个基本上市不变的真理了(虽然说只有改变时不会变的)
Performance Estimates.性能估计
Safty Factors.安全系数
Little‘s Law:The average number of things in the system is the product of the average rate at which things leave the system and the average time each one spends in the system.
队列中的平均物体数量是进入量和平均滞留时间的乘积。
Principles
Everything should be made as simple as possible, but no simpler.
相关:
有一本书叫《How To Lie With Statistics》
费米近似的故事
涉及的是日常生活中的估计问题,比较常用。
*****************************************************************************
Basic Skills:
1、Two answers are better than one.
2、Quick checks. 根据波利亚的《How To Solve It》,量纲检测法、舍九法等
3、Rules of Thumb(经验法则).
"Rule of 72":Assume that you invest a sum of money for y years at an interest rate of r percent per year. The financial version of the rule says that if r*y=72, then your money will roughly double.
72法则:假如你投入一笔钱,时间是y年,每年的利率是r%。则当r*y=72时,钱将翻倍。
4、Practice.这个基本上市不变的真理了(虽然说只有改变时不会变的)
Performance Estimates.性能估计
Safty Factors.安全系数
Little‘s Law:The average number of things in the system is the product of the average rate at which things leave the system and the average time each one spends in the system.
队列中的平均物体数量是进入量和平均滞留时间的乘积。
Principles
Everything should be made as simple as possible, but no simpler.
相关:
有一本书叫《How To Lie With Statistics》
费米近似的故事
相关文章推荐
- Back of the Envelope Calculations
- 《Design of Computer Programs》学习笔记(2 - 1)Back of the Envelope - Lesson 2
- 《Design of Computer Programs》学习笔记(2 - 2)Back of the Envelope - Problem Set 2
- 重读《重构》Refactoring Improving the Design of Existing Code
- JavaScript code to let users double-click to move back to the top of the page
- Lack of money back to the moon
- Back to the Basics! Essentials of Modern C++ Style
- The Prisoner of Zenda——8、Back to Zenda
- VGG Convolutional Neural Networks Practical(5)the theory of back-propagation
- Use crash to show the code line of a backtrace entry like "ocfs2_truncate_file+0x127/0x6c0"
- How to handle the issue of node.js msi to roll back under windows 8
- I seem to have found the feeling and eager of turning back to the developing.
- earlier remove the backend of tapdisk device in xenstore to release the resource allocated in backe
- GIST特征Modeling the shape of the scene: a holistic representation of the spatial envelope
- the equations of backpropagation
- 31 Days of Windows Phone | Day #3 The Back Button Paradigm
- Claiming back the meaning of computer science
- XNA: Overview of the Content Pipeline
- Teamwork(The seventh day of the team)
- Examples of The RR Date Format