--___- - ---- - ~.~.-- - _-_---~_. __ __~- Binary Trees 5 la STL John S. Mallozzi lona College Department of Computer Science New Rochelle, NY 10801 JMallozzi@iona.edu Introduction With the arrival of a standard library for C!++ [l], particularly its container class templates - the Standard Template Library (STL) the questions arise whether and how to incorporate this material in the teaching of data structures, During the 1995- academic year, the 96 author chose one approach to this material. This paper discusses his treatment of binary trees using this approach. Use of STL made available a significant library of containers and algorithms. For data structures contained in the library, such as (linked) lists, we discussed possible implementations of these classes. For data structures not contained in the library, such as trees, we used the library both to motivate the design of the interface and to provide tools for the implementation. Although class time was needed to discuss the STL philosophy (and alternatives), the result of spending this time was, we believe, a more coherent approach to the course, and, in terms of both use and design, a greater understanding of libraries. Here, we describe how we
/lp/association-for-computing-machinery/binary-trees-la-stl-h8T0Da0OkP