Share E-Book

算法之美 指导工作与生活的算法 (Brian Christian, Tom Griffiths)(Z-Library)

Author

,

Rating No ratings yet

Log in to rate

Data Structures and Algorithms
Language Chinese

No Description

Format EPUB
Size 1.4 MB
226
Views

AI Guide

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

Full assistant
AI guide
【One-Line Pitch】 A practical tour of the handful of algorithms that quietly govern everyday decisions—when to stop searching, when to explore versus exploit, how to sort and schedule, and how to stay flexible in an uncertain world. Best for readers who want computer-science thinking applied to work, love, and life without wading through proofs. 【Book Arc】 - **Opening (~0%–10%)**: Optimal stopping. The secretary problem, the 37% rule, and the "look-then-leap" strategy frame when to commit—dating, hiring, selling a house, parking—and why full information changes the threshold. - **Early (~10%–32%)**: Explore vs. exploit. Multi-armed bandits, the Gittins index, "win-stay, lose-shift," A/B testing, and clinical trials show how to balance novelty against proven payoff as remaining time shrinks. - **Middle (~32%–50%)**: Sorting and caching. Big-O, bubble/insertion sort, merge sort, bucket sort, and the "larger scale, greater pain" insight, plus memory hierarchies and why forgetting is a feature. - **Late (~50%–75%)**: Scheduling, Bayes, overfitting, relaxation. Prioritizing tasks, priority inversion, Bayesian prediction, the dangers of complexity, and how to loosen an over-constrained problem. - **Ending (~75%–100%)**: Randomness, networks, game theory. Simulated annealing, packet switching and exponential backoff, congestion control, equilibrium, mechanism design, and information cascades—closing on "computational kindness." 【Key Takeaways】 - **Optimal stopping has a counterintuitive answer** (Opening): survey roughly the first 37% without committing, then take the first option better than all prior ones—accepting that even the best strategy fails most of the time. - **Information changes the rule** (Early): when you can rank candidates fully, you skip the observation phase and set a threshold, raising success from 37% to about 58%. - **Explore early, exploit late** (Early): the value of trying new things falls as remaining time shrinks; the Gittins index shows an untried option can beat a proven one. - **Sorting is fundamentally superlinear** (Middle): comparison sorting cannot beat O(n log n), and naive methods hit O(n²)—so reduce what you sort and choose the right algorithm. - **Caching and forgetting are strategic** (Middle): memory hierarchies and archival decisions trade speed against completeness; forgetting curves mirror sensible cache eviction. - **Scheduling is about priorities and interruption** (Late): deadlines, priority inversion, and context switching explain why "doing more" often means finishing less. - **Complexity invites overfitting** (Late): more data and more parameters can hurt; cross-validation and penalizing complexity are the antidotes. - **Randomness and feedback tame hard problems** (Ending): simulated annealing escapes local maxima, while exponential backoff and flow control keep networks—and relationships—stable. 【Reading Tips】 - Deep-read the opening two chapters on optimal stopping and explore/exploit; they carry the book's most actionable advice. - Skim the sorting and caching chapters if you already know Big-O—focus on the everyday analogies (socks, libraries, Hollywood sequels). - Treat the Bayes, overfitting, and relaxation chapters as a unit on decision-making under uncertainty. - Pause at each "what would I do?" example and apply the rule to a real pending decision before moving on. - The ending on networks and game theory is more conceptual; read for vocabulary (congestion, equilibrium, cascades) rather than step-by-step tactics. 【Coverage Limits】 This guide is based on stratified excerpts covering the table of contents and roughly the first half of the book in detail; later chapters (randomness, networks, game theory) are summarized from headings and partial text, so specific examples there may be thinner than the excerpts suggest.

Passage locations

Excerpt 1
个面试过程中,只要不是已有申请人当中的最优秀人选,你都不会接受。但是,仅仅达到“目前最佳”这个条件,还不足以说服面试官。比如说,第一名申请人毫无疑问就符合这个条件。一般而言,我们有理由相信,随着面试程序不断进行下去,出现“目前最佳”申请人的概率将不断下降。例如,第二名申请人是截至目前最优秀申请人的可能性是50%,...
View in text
Excerpt 2
功率只有一半的生手,情况会怎么样?第一次去偷盗时,你本来就身无分文,因此无须担心有任何损失,但是之后就不要再去碰运气了。 尽管别列佐夫斯基是最优停止问题方面的专家,但是他的结局仍然十分凄惨。2013年3月,一名保镖在他位于伯克郡的住所里发现了他的尸体。他死在锁着的浴室里,脖子上系着绳子。官方在尸检之后宣布他死于自...
View in text
Excerpt 3
,而是要等到实验结束,参与者才知道他们是否押中。)这个实验纯粹就是探索与利用之间的对抗,信息的获取与信息的利用正好矛盾。在大多数情况下,参与者都采取了一种明智的策略:先观察一段时间,然后把赌注押在看似最好的结果上,但是他们用来观察的次数总是太多了。到底多了多少?在一次实验中,两盏灯打开的时间比分别是60%和40%...
View in text
Excerpt 4
伯克利分校的主图书馆和墨菲特图书馆,进行了一次实地考察。这些图书馆的书架长度加起来至少有52英里,所有的书都靠人工整理。归还到图书馆的书首先被放到后台,然后根据美国国会图书馆藏书书目,重新放回到不同的书架上。例如,一组书架上放有一堆最近归还的书籍,藏书书目都在PS3000到PS9999之间。然后,学生助手将这些图...
View in text

Recommended for You

Loading recommended books...
Failed to load, please try again later

Tip the Site

Scan the WeChat Pay or Alipay code to tip. No login required.

WeChat Pay
Alipay
← Back to List