TY - BOOK AU - Aho, Alfred V. AU - Hopcroft, John E. AU - Ullman, Jeffrey D. TI - Data structures and algorithms SN - 9711900483 U1 - CIR 005.1 Ah68d 1983 PY - 1983///] PB - Addison-Wesly Pub. Company N1 - Includes bibliograpy and index; Chapter 1 Design and analysis of algorithms 1 -- Chapter 2 Basic data types 37 -- Chapter 3 Trees 75 -- Chapter 4 Basic operations on sets 107 -- Chapter 5 Advanced set reprentation methods 155 -- Chapter 6 Directed graphs 198 -- Chapter 7 Undirected graphs 230 -- Chapter 8 Sorting 253 -- Chapter 9 Algorithm analysis techniques 293 -- Chapter 10 Algorithm design techniques 306 -- Chapter 11 Data structures and algorithms for external storage 347 -- Chapter 12 Memory management 378 -- N2 - "Preface: This book presents the data structures and algorithms that underpin much of today's computer programming. The basis of this book is the material con-tained in the first six chapters of our earlier work, The Design and Analysis of Computer Algorithms. We have expanded that coverage and have added material on algorithms for external storage and memory management. As a consequence, this book should be suitable as a text for a first course on data structures and algorithms. The only prerequisite we assume is familiarity with some high-level programming language such as Pascal. We have attempted to cover data structures and algorithms in the broader context of solving problems using computers. We use abstract data types informally in the description and implementation of algorithms. Although abstract data types are only starting to appear in widely available program-ming languages, we feel they are a useful tool in designing programs, no matter what the language. We also introduce the ideas of step counting and time complexity as an integral part of the problem solving process. ocess. This decision reflects our long-held belief that programmers are going to continue to tackle problems of pro-gressively larger size as machines get faster, and that consequently the time complexity of algorithms will become of even greater importance, rather than of less importance, as new generations of hardware become available. The Presentation of Algorithms We have used the conventions of Pascal to describe our algorithms and data structures primarily because Pascal is so widely known. Initially we present several of our algorithms both abstractly and as Pascal programs, because we feel it is important to run the gamut of the problem solving process from prob-lem formulation to a running program. The algorithms we present, however, can be readily implemented in any high-level programming language. Use of the Book Chapter 1 contains introductory remarks, including an explanation of our view of the problem-to-program process and the role of abstract data types in that process. Also appearing is an introduction to step counting and "big-oh" and "big-omega" notation. Chapter 2 introduces the traditional list, stack and queue structures, and the mapping, which is an abstract data type based on the mathematical notion of a function. The third chapter introduces trees and the basic data structures that can be used to support various operations on trees efficiently. Chapters 4 and 5 introduce a number of important abstract data types that are based on the mathematical model of a set. Dictionaries and priority queues are covered in depth. Standard implementations for these concepts, including hash tables, binary search trees, partially ordered trees, tries, and 2-3 trees are covered, with the more advanced material clustered in Chapter 5. Chapters 6 and 7 cover graphs, with directed graphs in Chapter 6 and undirected graphs in 7. These chapters begin a section of the book devoted more to issues of algorithms than data structures, although we do discuss the basics of data structures suitable for representing graphs. A number of impor-tant graph algorithms are presented, including depth-first search, finding minimal spanning trees, shortest paths, and maximal matchings. Chapter 8 is devoted to the principal internal sorting algorithms: quick-sort, heapsort, binsort, and the simpler, less efficient methods such as inser-tion sort. In this chapter we also cover the linear-time algorithms for finding medians and other order statistics. Chapter 9 discusses the asymptotic analysis of recursive procedures, including, of course, recurrence relations and techniques for solving them. Chapter 10 outlines the important techniques for designing algorithms. including divide-and-conquer, dynamic programming, local search algorithms, and various forms of organized tree searching. The last two chapters are devoted to external storage organization and memory management. Chapter 11 covers external sorting and large-scale storage organization, including B-trees and index structures. Chapter 12 contains material on memory management, divided into four subareas, depending on whether allocations involve fixed or varying sized blocks, and whether the freeing of blocks takes place by explicit program action or implicitly when garbage collection occurs. Material from this book has been used by the authors in data structures and algorithms courses at Columbia, Cornell, and Stanford, at both undergra-duate and graduate levels. For example, a preliminary version of this book was used at Stanford in a 10-week course on data structures, taught to a popu-lation consisting primarily of Juniors through first-year graduate students. The coverage was limited to Chapters 1-4, 9, 10, and 12, with parts of 5-7. Exercises A number of exercises of varying degrees of difficulty are found at the end of each chapter. Many of these are fairly straightforward tests of the mastery of the material of the chapter. Some exercises require more thought, and these have been singly starred. Doubly starred exercises are harder still, and are suitable for more advanced courses. The bibliographic notes at the end of each chapter provide references for additional reading. Acknowledgments We wish to acknowledge Bell Laboratories for the use of its excellent UNIXTM-based text preparation and data communication facilities that signifi-cantly eased the preparation of a manuscript by geographically separated authors. Many of our colleagues have read various portions of the manuscript and have given us valuable comments and advice. In particular, we would like to thank Ed Beckham, Jon Bentley, Kenneth Chu, Janet Coursey, Hank Cox, Neil Immerman, Brian Kernighan, Steve Mahaney, Craig McMurray, Alberto Mendelzon, Alistair Moffat, Jeff Naughton, Kerry Nemovicher, Paul Niamkey, Rob Pike, Chris Rouen, Maurice Schlumberger, Stanley Selkow, Chengya Shih, Bob Tarjan, W. Van Snyder, Peter Weinberger, and Anthony Yeracaris for helpful suggestions. Finally, we would like to give our warmest thanks to Mrs. Claire Metzger for her expert assistance in helping prepare the manuscript for typesetting." -- ER -