摘要
奇数魔方算法采用的是罗伯特法,即楼梯法。多数参考资料上提供的算法描述只是面对单一程序,没有抽象出这类问题的思想,因为在程序中这是一大类问题,如果能够用比较统一或是接近的算法描述,就能做到举一反三,一通百通。详细介绍用求模的思想改进算法的过程。
Odd magic cube adopts Robert-method,that is staircase-method. Most algorithms of reference materials which only depict the single pro-gram,yet doesn't abstract the thoughts of such type problem.As this is a big species, if applies the unified or allied algorithm description, thus draws inferences about other cases from one instance. Introduces detail procedures about how to improve the algorithm of odd magic cube with modulo thouthts.
出处
《现代计算机》
2014年第1期55-56,共2页
Modern Computer
关键词
奇数魔方
求模
改进算法
Odd Magic Cube
Modulo
Improved Algorithm