Generators and the Template Method Pattern. A Paradigm for Combinatorial Experimentation
暂无分享,去创建一个
In order to find new combinatorial results, experimental trial on whole collections of combinatorial objects can prove very helpful. From a practical point of view, such collections may take a lot of memory to build, whereas a simple enumeration of these would often be enough. The well-known programming concept of generators can be applied to build such enumerations without excessive practical complexity. This paper reviews that technique, along with an almost automatic translation technique to implement generative algorithms in C++.
[1] Ralph E. Griswold,et al. The Icon programming language , 1983 .
[2] Ralph E. Griswold. String Scanning in the Icon Programming Language , 1990, Comput. J..
[3] Alfred V. Aho,et al. Compilers: Principles, Techniques, and Tools , 1986, Addison-Wesley series in computer science / World student series edition.
[4] Bjarne Stroustrup,et al. C++ Programming Language , 1986, IEEE Softw..
[5] Lloyd Allison,et al. A Practical Introduction to Denotational Semantics , 1987 .