Data Abstraction and Problem Solving with Java - Frank M. Carrano, Janet Prichard

Data Abstraction and Problem Solving with Java

Walls and Mirrors
Buch | Hardcover
806 Seiten
2000
Pearson (Verlag)
978-0-201-70220-0 (ISBN)
68,35 inkl. MwSt
  • Titel ist leider vergriffen;
    keine Neuauflage
  • Artikel merken
This text uses the running theme of walls and mirrors to clarify the challenging concepts of recursion (the mirrors) and data abstraction (the walls). Key object-oriented concepts are covered, including encapsulation, inheritance and polymorphism.
This book is based on the classic "Walls and Mirrors" approach used in the best-selling Data Abstraction and Problem Solving with C++, and is now updated to the Java programming language. It uses the running theme of "Walls and Mirrors" to help make clear the challenging concepts of recursion (the mirrors) and data abstraction (the walls). Authors Carrano and Prichard cover key object-oriented concepts, including encapsulation, inheritance, and polymorphism. However, the focus of the book remains on data abstraction.

Frank M. Carrano is Associate Professor of Computer Science at the University of Rhode Island. Janet J. Prichard is a is professor of computer science at East Carolina University. She received her Ph.D. from the University of Rhode Island. Her areas of interest include real-time semantic objects, relationships, and constraints. 0201702207AB04062001

(NOTE: Each chapter concludes with a Summary, Cautions, Self-Test Exercises, Exercises and Programming Problems.)I. PROBLEM-SOLVING TECHNIQUES.

1. Principles of Programming and Software Engineering.


Problem Solving and Software Engineering.



What Is Problem Solving.



The Life Cycle of Software.



What Is a Good Solution.



Achieving a Modular Design.



Abstraction and Information Hiding.



Object-Oriented Design.



Top-Down Design.



General Design Guidelines.



A Summary of Key Issues in Programming.



Modularity.



Modifiability.



Ease of Use.



Fail-Safe Programming.



Style.



Debugging.

2. Recursion: The Mirrors.


Recursive Solutions.



A Recursive Valued Method: The Factorial of n.



A Recursive Void Method: Writing a String Backward.



Counting Things.



Multiplying Rabbits (The Fibonacci Sequence).



Organizing a Parade.



Mr. Spock's Dilemma (Choosing k out of n Things).



Searching an Array.



Finding the Largest Item in an Array.



Binary Search.



Finding the kth Smallest Item of an Array.



Organizing Data.



The Towers of Hanoi.



Recursion and Efficiency.

3. Data Abstraction: The Walls.


Abstract Data Types.



Specifying ADTs.



The ADT List.



The ADT Sorted List.



Designing an ADT.



Axioms (Optional).



Implementing ADTs.



Java Classes.



Java Interfaces.



Java Exceptions.



An Array-Based Implementation of the ADT List.

4. Linked Lists.


Preliminaries.



Object References.



Resizeable Arrays.



Reference-Based Linked Lists.



Programming with Linked Lists.



Displaying the Contents of a Linked List.



Deleting a Specified Node from a Linked List.



Inserting a Node into a Specified Position of a Linked List.



A Reference-Based Implementation of the ADT List.



Comparing Array-Based and Reference-Based Implementations.



Passing a Linked List to a Method.



Processing Linked Lists Recursively.



Variations of the Linked List.



Tail References.



Circular Linked Lists.



Dummy Head Nodes.



Doubly Linked Lists.



Application: Maintaining an Inventory.

5. Recursion as a Problem-Solving Technique.


Backtracking.



The Eight Queens Problem.



Defining Languages.



The Basics of Grammars.



Two Simple Languages.



Algebraic Expressions.



The Relationship Between Recursion and Mathematical Induction.



The Correctness of the Recursive Factorial Method.



The Cost of Towers of Hanoi.

II. PROBLEM SOLVING WITH ABSTRACT DATA TYPES.

6. Stacks.


The Abstract Data Type Stack.



Developing an ADT During the Design of a Solution.



Simple Applications of the ADT Stack.



Checking for Balanced Braces.



Recognizing Strings in a Language.



Implementations of the ADT Stack.



An Array-Based Implementation of the ADT Stack.



A Reference-Based Implementation of the ADT Stack.



An Implementation That Uses the ADT List.



Comparing Implementations.



Application: Algebraic Expressions.



Evaluating Postfix Expressions.



Converting Infix Expressions to Equivalent Postfix Expressions.



Application: A Search Problem.



A Nonrecursive Solution That Uses a Stack.



A Recursive Solution.



The Relationship Between Stacks and Recursion.

7. Queues.


The Abstract Data Type Queue.



Simple Applications of the ADT Queue.



Reading a String of Characters.



Recognizing Palindromes.



Implementations of the ADT Queue.



A Reference-Based Implementation.



An Array-Based Implementation.



An Implementation That Uses the ADT List.



Comparing Implementations.



A Summary of Position-Oriented ADTs.



Application: Simulation.

8. Class Relationships.


Inheritance Revisited.



Java Packages.



Java Access Modifiers.



Is-a and Has-a Relationships.



Dynamic Binding and Abstract Classes.



Abstract Classes.



Java Interfaces Revisited (Iterators).



The ADTs LIST and Sorted List Revisited.



Implementations of A List Iterator.



Implementations of the ADT Sorted List That Use the ADT List.



The Advantages of an Object-Oriented Approach.

9. Algorithm Efficiency and Sorting.


Determining the Efficiency of Algorithms.



The Execution Time of Algorithms.



Algorithm Growth Rates.



Order-of-Magnitude Analysis and Big O Notation.



Keeping Your Perspective.



The Efficiency of Searching Algorithms.



Sorting Algorithms and Their Efficiency.



Selection Sort.



Bubble Sort.



Insertion Sort.



Mergesort.



Quicksort.



Radix Sort.



A Comparison of Sorting Algorithms.

10. Trees.


Terminology.



The ADT Binary Tree.



Basic Operations of the ADT Binary Tree .



General Operations of the ADT Binary Tree.



Traversals of a Binary Tree.



Possible Representations of a Binary Tree.



A Reference-Based Implementation of the ADT Binary Tree.



Tree Traversals Using an Iterator.



The ADT Binary Search Tree.



Algorithms for the Operations of the ADT Binary Search Tree.



A Reference-Based Implementation of the ADT Binary Search Tree.



The Efficiency of Binary Search Tree Operations.



Treesort.



Saving a Binary Search Tree in a File.



General Trees.

11. Tables and Priority Queues.


The ADT Table.



Selecting an Implementation.



A Sorted Array-Based Implementation of the ADT Table.



A Binary Search Tree Implementation of the ADT Table.



The ADT Priority Queue: A Variation of the ADT Table.



Heaps.



A Heap Implementation of the ADT Priority Queue.



Heapsort.

12. Advanced Implementation of Tables.


Balanced Search Trees.



2-3 Trees.



2-3-4 Trees.



Red-Black Trees.



AVL Trees.



Hashing.



Hash Functions.



Resolving Collisions.



The Efficiency of Hashing.



What Constitutes a Good Hash Function?



Table Traversal: An Inefficient Operation Under Hashing.



Data with Multiple Organizations.

13. Graphs.


Terminology.



Graphs as ADTs.



Implementing Graphs.



Graph Traversals.



Depth-First Search.



Breadth-First Search.



Applications of Graphs.



Topological Sorting.



Spanning Trees.



Minimum Spanning Trees.



Shortest Paths.



Circuits.



Some Difficult Problems.

14. External Methods.


A Look at External Storage.



Sorting Data in an External File.



External Tables.



Indexing an External File.



External Hashing.



B-Trees.



Traversals.



Multiple Indexing.

Appendix A: Review of Java Fundamentals.


Program Structure.



Packages.



Classes.



Data Fields.



Methods.



How to Access Members of an Object.



Language Basics.



Comments.



Identifiers and Keywords.



Variables.



Primitive Data Types.



References.



Literal Constants.



Named Constants.



Assignments and Expressions.



Arrays.



Useful Java Classes.



The Object Class.



String Classes.



Java Exceptions.



Catching Exceptions.



Throwing Exceptions.



Text Input and Output.



Input



Output.



Selection Statements.



The if Statement.



The switch Statement.



Iteration Statements.



The while Statement.



The for Statement.



The do Statement.



File Input and Output.



Text Files.



Object Serialization.



A Comparison to C++.

Appendix B: Unicode Character Codes (ASCII Subset)..
Appendix C: Java Resources.
Appendix D: Mathematical Induction.
Glossary.
Answers to Self-Test Exercises.
Index.

Erscheint lt. Verlag 1.8.2000
Sprache englisch
Maße 208 x 261 mm
Gewicht 1640 g
Themenwelt Mathematik / Informatik Informatik Datenbanken
Informatik Programmiersprachen / -werkzeuge Java
Mathematik / Informatik Informatik Web / Internet
ISBN-10 0-201-70220-7 / 0201702207
ISBN-13 978-0-201-70220-0 / 9780201702200
Zustand Neuware
Haben Sie eine Frage zum Produkt?
Mehr entdecken
aus dem Bereich
mit über 150 Workouts in Java und Python

von Luigi Lo Iacono; Stephan Wiefling; Michael Schneider

Buch (2023)
Carl Hanser (Verlag)
29,99
Einführung, Ausbildung, Praxis

von Christian Ullenboom

Buch | Hardcover (2023)
Rheinwerk (Verlag)
49,90