Roberge, brandle, whittington a laboratory course in c++ data structures

431 822 0
Roberge, brandle, whittington   a laboratory course in c++ data structures

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

Đây là quyển sách tiếng anh về lĩnh vực công nghệ thông tin cho sinh viên và những ai có đam mê. Quyển sách này trình về lý thuyết ,phương pháp lập trình cho ngôn ngữ C và C++.

Data Structures C ++ Data Structures JONES AND BARTLETT COMPUTER SCIENCE A Laboratory Course in James Robergé Stefan Brandle David Whittington Second Edition Data Structures Data Structures Second Edition C ++ A Laboratory Course in James Robergé Illinois Institute of Technology Stefan Brandle Taylor University David Whittington Taylor University Copyright © 2003 by Jones and Bartlett Publishers, Inc. Cover image © Douglas E. Walker / Masterfile All rights reserved. No part of the material protected by this copyright notice may be reproduced or utilized in any form, electronic or mechanical, including photocopying, recording, or any information storage or retrieval system, without written permission from the copyright owner. Library of Congress Cataloging-in-Publication Data Robergé, Jim. A laboratory course in C++ data structures / James Robergé, Stefan Brandle, David Whittington. p. cm. ISBN 0-7637-1976-5 1. C++ (Computer program language) I. Brandle, Stefan. II. Whittington, David. III. Title. QA76.73.C153R58 2003 005.13’3—dc21 2002044401 Editor-in-Chief, College: J. Michael Stranz Production Manager: Amy Rose Associate Editor: Theresa DiDonato Associate Production Editor: Karen C. Ferreira Production Assistant: Jenny L. McIsaac Senior Marketing Manager: Nathan J. Schultz Composition: Northeast Compositors Cover Design: Night & Day Design Manufacturing Buyer: Therese Bräuer Printing and Binding: Courier Stoughton Cover Printing: Courier Stoughton Printed in the United States of America 07 06 05 04 03 10 9 8 7 6 5 4 3 2 1 World Headquarters Jones and Bartlett Publishers 40 Tall Pine Drive Sudbury, MA 01776 978-443-5000 info@jbpub.com www.jbpub.com Jones and Bartlett Publishers Canada 2406 Nikanna Road Mississauga, ON L5C 2W6 CANADA Jones and Bartlett Publishers International Barb House, Barb Mews London W6 7PA UK To my son Edward, who lets me see a world of wonder through his eyes. And to my wife, Ruby, who creates that world. —James Robergé To Christina, Anna, and Esther: my queen and little princesses. —Stefan Brandle In memory of my kitty Sweetpea. —David Whittington [...]... sophisticated data types, data types that are collections of related data items rather than individual data items In order to distinguish the data types you create from C++ s predefined data types, we refer to them as abstract data types or ADTs When specifying an ADT, you begin by describing what type of data items are in the ADT Then you describe how the ADT data items are organized to form the ADT’s... display Focus: Array implementation of a point list Application: Displaying a dragon curve Focus: Array implementation of a list Application: Analyzing DNA sequences Focus: Array implementation of an ordered list using inheritance Application: Assembling messages in a packet switching network Focus: Array and singly linked list implementations of a stack Application: Evaluating postfix arithmetic expressions... that an ADT consists of a set of data items and a set of operations that manipulate these data items A C++ class consists of a set of data members and a set of member functions that manipulate these data members This close relationship between ADTs and classes makes classes a natural means for implementing ADTs How do you create a declaration for a Logbook class from the specification of the Logbook ADT?... string Application: Lexical analysis Contents B Heap ADT 351 C Performance Evaluation 377 Focus: Array implementation of a heap Application: Simulating the flow of tasks in an operating system using a priority queue Focus: Determining execution times Application: Analyzing the execution times of sorting and searching routines Appendix 1 Appendix 2 Appendix 3 Program Validation in C++ 395 A Summary... a set of software tools that assist students in developing ADT implementations The tools provide students with the means for testing an ADT implementation using simple keyboard commands and for visualizing the resulting data structure using ASCII text on a standard text display Additional files containing data, partial solution shells, and other supporting routines are also available for download Instructor’s... denote a broad range of environments One group of students in a data structures course, for example, may attend a closed two-hour laboratory; at the same time, another group of students may take the class in a televised format and “attend” an open laboratory In developing this manual, we have preserved the first edition’s efforts to create a laboratory format suitable for a variety of open and closed laboratory. .. (Logbook ADT) Introduces the implementation of an ADT using C++ classes Laboratory 3 (Array Implementation of the List ADT) Introduces dynamic memory allocation Laboratory 5 (Stack ADT) Introduces linked lists We have placed the performance evaluation laboratory at the end of the manual (Laboratory C), because in our experience, we have found that everyone covers this topic at a different time Rather than... week or have students turn in the entire laboratory as a unit Adapting the Manual to Your Course Student Preparation This manual assumes that students have a background in either C or C++ The first laboratory introduces classes and the use of classes to implement a simple ADT Succeeding laboratories introduce more complex C++ language features (dynamic memory allocation, templates, inheritance, and so... Summary of C++ I/O 401 Pointers 409 | xvii Logbook ADT Examine the components that form an abstract data type (ADT) Implement an ADT using a C++ class Create a function that displays a logbook in calendar form Investigate how to overload functions and operators Objectives In this laboratory you will: 2 | Laboratory 1 Overview The purpose of this laboratory is for you to explore how you can use C++ classes... copying material from the textbook Having to make changes, however slight, encourages them to examine in more detail how a given implementation works Combining the Laboratories with Programming Projects One of our goals in designing these laboratories was to enable students to produce in the laboratory code that they can use again as part of larger, more applications-oriented programming projects The ADTs . Cataloging -in- Publication Data Robergé, Jim. A laboratory course in C++ data structures / James Robergé, Stefan Brandle, David Whittington. p. cm. ISBN 0-7 63 7-1 97 6-5 1. C++. Laboratory Course in C++ Data Structures. In each laboratory, you will explore a particular data structure by implementing it. As you create an implementation,

Ngày đăng: 19/03/2014, 14:12

Từ khóa liên quan

Mục lục

  • A Laboratory Course in C++ Data Structures 2nd

  • Contents

  • Preface

    • Preface to the Second Edition

    • To the Student

    • To the Instructor

    • 1 Logbook ADT

      • Overview

      • Logbook ADT

      • Laboratory 1: Cover Sheet

      • Laboratory 1: Prelab Exercise

      • Laboratory 1: Bridge Exercise

      • Laboratory 1: In- lab Exercise 1

      • Laboratory 1: In- lab Exercise 2

      • Laboratory 1: In- lab Exercise 3

      • Laboratory 1: Postlab Exercise 1

      • Laboratory 1: Postlab Exercise 2

      • 2 Point List ADT

        • Overview

        • Point List ADT

        • Laboratory 2: Cover Sheet

        • Laboratory 2: Prelab Exercise

        • Laboratory 2: Bridge Exercise

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan