2 research outputs found

    Patterns for decoupling data structures and algorithms

    No full text

    Patterns for Decoupling Data Structures and Algorithms Dung (“Zung”) Nguyen

    No full text
    In order to build a data structure that is extensible and reusable, it is necessary to decouple the intrinsic and primitive behavior of the structure from the application specific behavior that manipulates it. To illustrate such a construction, this paper proposes a uniform object-oriented structural pattern for recursive data structures, and shows how external algorithms can be added without rewriting any code using the visitor design pattern. By presenting data structures in this manner, we can more effectively teach students about recursion, abstraction, design, and good software engineering practices.
    corecore