面向Z80的人工智能
Artificial Intelligence for the Z80

原始链接: https://www.dfsantos.com/en/libro-ia-z80

这本书通过为ZX Spectrum等8位机器编写BASIC程序来教授AI基础。内容涵盖排序、专家系统、ELIZA风格的聊天机器人、使用Minimax和alpha-beta剪枝的井字棋、线性回归、k近邻、朴素贝叶斯、k均值、感知机、用于数字识别的多层网络以及康威的生命游戏。通过完整的代码清单和实验,读者了解算法在有限内存和速度下如何工作,调整参数并观察结果。代码和仓库支持从头到尾的动手探索。

Hacker News 新 | 过去 | 评论 | 提问 | 展示 | 招聘 | 提交 登录 Z80 的人工智能 (dfsantos.com) 6 分 由 AlexeyBrin 1 小时前 | 隐藏 | 过去 | 收藏 | 讨论 帮助 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系 搜索:
相关文章

原文

What happens when we bring the foundations of artificial intelligence to an 8-bit machine? This book takes a learning-by-building approach: write the algorithms, observe their results and understand the decisions behind each program. BASIC turns ideas into instructions that can be followed, changed and run on a Spectrum, a Spectrum Next or an emulator.

The journey begins with AI history and a practical question: how to make the most of a computer with limited memory and speed. Comparing sorting algorithms and measuring their execution times prepares the ground for expert systems, an ELIZA-inspired chatbot and a tic-tac-toe player using Minimax and alpha-beta pruning.

Knowledge then moves from rules to data. Linear regression works with real CO₂ measurements; k-NN and Naive Bayes classify role-playing characters; k-means discovers groups without labels. The perceptron and multilayer networks take learning as far as digit recognition, explaining weights, errors, activation functions and backpropagation.

The Game of Life closes the book with another kind of complexity: behavior emerging from simple rules, without training. Complete listings and experiments invite readers to change parameters and see what happens. The narrative can be followed from beginning to end, with the code available whenever a closer look is useful; the programs are also available in the book’s repository.

联系我们 contact @ memedata.com