1-Abstract Data Types (ADT) and Recursion.pdf

Full Transcript

Abstract Data Types (ADT) and Recursion CHAPTER 1 Objectives: Students are expected to: Specify abstract data types. Represent ADTs by combining primitive data types into data structures. Implement ADT operations using algorithms. Identify properties of good algorithms. Compare, contras...

Abstract Data Types (ADT) and Recursion CHAPTER 1 Objectives: Students are expected to: Specify abstract data types. Represent ADTs by combining primitive data types into data structures. Implement ADT operations using algorithms. Identify properties of good algorithms. Compare, contrast and design iterative and recursive algorithms. Data Structures A data structure is a technique of organizing the data so that the data can be utilized efficiently. There are two ways of viewing the data structure: Logical/Mathematical/Abstract Implementation Why Data Structures? The following are the advantages of using the data structure: Essential ingredients used for creating fast and powerful algorithms. Help us to manage and organize the data. Makes the code cleaner and easier to understand. Abstract Data Types An abstract data type is an abstraction of a data structure that provides only the interface to which the data structure must adhere. The interface does not give any specific details about something should be implemented or in what programming language. Abstract Data Types Abstract data types are the entities that are definitions of data and operations but do not have implementation details. The reason for not having implementation details is that every programming language has a different implementation strategy.

Use Quizgecko on...
Browser
Browser