cpp-interview/Problems/NeumannNeighborProblem/README.md
2018-12-26 00:46:54 +08:00

13 lines
397 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## 冯诺依曼邻居问题
### 问题说明
某算法从一个1×1的方格开始每次都会在上次图形的周围再加上一圈方格在第n次的时候要生成多少个方格下图给出了n = 012是的结果。
![](https://huihut-img.oss-cn-shenzhen.aliyuncs.com/NeumannNeighborProblem.jpg)
### 解法
* [通项公式解法](Formula)
* [递推关系解法](Recursive)