为了良好的阅读体验,建议到个人博客或CSDN,QQ空间就是备份用的,tx看起来彻底放弃日志了。。。。 20220523数据结构绿皮书读书笔记 ## 5.4 在博弈中预读几步 博弈树可以帮我们在游戏中做出有利于自己的决策,树根是初始状态,树杈是每局中玩家可能做的选择。每下降一层代表另一个玩家做出了下一次选择。 游戏规则:每人每局可以选择1-3,但不能和对手选择的一样,当总数第一次达到8时的玩家胜利。图中F代表第一个玩家获胜,S代表第二个玩家获胜 这个小游戏生成的博弈树不是很大,但实际的棋类游戏的博弈树往往是巨大的,大到人和机 ...
20220520数据结构绿皮书读书笔记
/* From extension vscode.github *//*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ .vscode-dark img[src$=\#gh-light-mode-only],.vscode-light img[src$=\#gh-dark-mode-only] { display: none;} ...
20220519数据结构绿皮书读书笔记
/* From extension vscode.github */ /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ .vscode-dark img[src$=\#gh-light-mode-only], .vscode-light img[src$=\#gh-dark-mode-only] { display: ...
20220518数据结构绿皮书读书笔记
/* From extension vscode.github *//*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ .vscode-dark img[src$=\#gh-light-mode-only],.vscode-light img[src$=\#gh-dark-mode-only] { display: none;} ...
20220517数据结构绿皮书读书笔记
/* From extension vscode.github *//*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ .vscode-dark img[src$=\#gh-light-mode-only],.vscode-light img[src$=\#gh-dark-mode-only] { display: none;} ...
20220516数据结构绿皮书读书笔记
20220516数据结构绿皮书读书笔记 大型项目的实验和需求分析最终应当是需求的正规陈述,这种陈述成为用户和软件工程师的主要表达和交流方法,来让软件工程师尝试理解并建立标准。 1.功能性需求 2.系统的假设和限制 3.维护需求 4.文档需求 需求规范陈述软件应该做什么,怎么做。且需求应当让用户和软件工程师同时理解,他们将形成后面阶段设计、编码、测试和维护的基础 编码 在合适的的时间启动编码 编程原则 在需求准确和完成之前不要开始写代码 Act in haste and repent at leisure. Program in haste and debug foreve。不翻译,翻译 ...
20220513数据结构绿皮书读书笔记
20220513数据结构绿皮书读书笔记 效率分析 程序运行哪里耗时最长?显然不是输入,因为只有一次,输出一般来说也很快。大量的计算都是在update方法个neighborCount方法的调用上,在每代update都需要重新计算每个细胞的邻居,在一个常见的布局中,可能仅有5%的细胞是存活的,并且集中在一个区域。因此update会消耗大量的时间在计算死亡的细胞上,他们没有存货的邻居,也不可能复活。如果95%的细胞都死了,那么下一代的计算是相当没有效率的 但是这种性能下降重要吗?一般来说不重要,因为对用户来说计算可以很快的完成,看起来就是一瞬 ...