So if you think about the way something like, say, Mapquest works, and last week in recitation you looked at the fact that shortest path is exponential.
所以如果你想想电子地图,还有上周学的列举法,你就会发现一般最简单的方法,都是指数递增的。
You could say, I could have zero chickens and 20 pigs, does that work? I've got one chicken and nineteen pigs, does that work?
为什么简单列举出所有可能的情况,再一个来检验?你可能会说,我可以有0只鸡和20只猪,这能行吗?
应用推荐