得到的并非最优解 1 /* 2 迭代加深搜索解埃及分数 3 19/45=1/3 + 1/12 + 1/180 4 19/45=1/3 + 1/15 + 1/45 5 19/45=1/3 + 1/18 + 1/30 6 19/45=1/4 + 1/6 + 1/180 7 19/45=1/5 + 1/6 + 1/18 8 最后一种最好,因为1/18比1/180,1/45,1/30,1/180都大 9 */10 //按照分母递增的顺序来扩展,若扩展到d层时,11 //前d个分数之和为 now ,而第d个分数为 1 / maxdion,则接下来12 //至少还要( frac - now )... Read More
DescriptionThe cornfield maze is a popular Halloween treat. Visitors are shown the entrance and must wander through the maze facing zombies, chainsaw-wielding psychopaths, hippies, and other terrors on their quest to find the exit. One popular maze-walking strategy guarantees that the visitor will . Read More