首页 | 官方网站   微博 | 高级检索  
     


Pruning with improving sequences in lazy functional programs
Authors:Hideya Iwasaki  Takeshi Morimoto  Yasunao Takano
Affiliation:1. Graduate School of Informatics and Engineering, The University of Electro-Communications, 1-5-1 Chofugaoka, Chofu, Tokyo, 182-8585, Japan
2. MNBI Inc., Kayabacho Tower, 1-21-2 Shinkawa, Chuo-ku, Tokyo, 104-0033, Japan
3. Coma-Systems Co., Ltd., Akasaka TwinTower Main Tower 11F, 2-17-22 Akasaka, Minato-ku, Tokyo, 107-0052, Japan
Abstract:This paper presents a library based on improving sequences and demonstrates that they are effective for pruning unnecessary computations while retaining program clarity. An improving sequence is a monotonic sequence of approximation values of a final value that are improved gradually according to some ordering relation. A computation using improving sequences proceeds by demanding for the next approximation value. If an approximation value in the middle of the improving sequence has sufficient information to yield the result of some part of the program, the computations that produce the remaining values can be pruned. By combining suitable improving sequences and primitive functions defined for the sequences, we can write efficient programs in the same form as simple and naive programs. We give examples that show the effectiveness of improving sequences and show by program calculation that a simple minimax-like program using improving sequences implements a well-known branch-and-bound searching algorithm.
Keywords:
本文献已被 SpringerLink 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司    京ICP备09084417号-23

京公网安备 11010802026262号