cpp-interview/Problems/NeumannNeighborProblem/README.md
2018-02-11 01:08:43 +08:00

13 lines
382 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是的结果。
![](http://ojlsgreog.bkt.clouddn.com/NeumannNeighborProblem.jpg)
### 解法
* [通项公式解法](Formula)
* [递推关系解法](Recursive)