 Introduction to Algorithms, 2/e Thomas H. Cormen,
Dartmouth College Charles E. Leiserson,
Massachusetts Institute of Technology Ronald L. Rivest,
Massachusetts Institute of Technology Clifford Stein,
Columbia University
Augmenting Data Structures
Chapter ObjectivesWell be looking at methods for designing algorithms. In some cases,
the design
will be intermixed with analysis. In other cases, the analysis is easy, and
its the
design thats harder. Augmenting data structures - Its unusual to have to design an all-new data structure from scratch.
- Its more common to take a data structure that you know and store additional
information in it.
- With the new information, the data structure can support new operations.
But. . . you have to figure out how to correctly maintain the new information without loss of efficiency.
Well look at a couple of situations in which we augment red-black trees.
|