













Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
I explain types of data structures their composition, definition, methods, and algorithm.
Typology: Slides
1 / 21
This page cannot be seen from the preview
Don't miss anything!














Textbooks (^) Data Structures and Algorithm Analysis in C+
Quizzes ----------------10% Assignments-----------10% Mid Term-------------- 30% Final-------------------- 50%
Assignments/Exercises and Project------ 20% Mid term------------------------------ 30% Final----------------------------------- 20%
Data structure is classified in two broad categories Primitive data structures Non-primitive data structures.
Basic Data Structures Linear Data Structures (^) Non-Linear Data Structures Arrays Linked Lists Stacks Queues Trees Graphs Hash Tables
The choice of particular data model depends on two consideration: It must be rich enough in structure to represent the relationship between data elements The structure should be simple enough that one can effectively process the data when necessary
Linear: In Linear data structure, values are arrange in linear fashion. Array: Fixed-size Linked-list: Variable-size Stack: Add to top and remove from top Queue: Add to back and remove from front Priority queue: Add anywhere, remove the highest priority
Homogenous: In this type of data structures, values of the same types of data are stored. Array Non-Homogenous: In this type of data structures, data values of different types are grouped and stored. Structures Classes
Definition:- (^) Abstract Data Types (ADTs) stores data and allow various operations on the data to access and change it. (^) A mathematical model, together with various operations defined on the model (^) An ADT is a collection of data and associated operations for manipulating that data Data Structures (^) Physical implementation of an ADT (^) data structures used in implementations are provided in a language (primitive or built-in) or are built from the language constructs (user-defined) (^) Each operation associated with the ADT is implemented by one or more subroutines in the implementation
Every Collection ADT should provide a way to: add an item remove an item find, retrieve, or access an item Many, many more possibilities is the collection empty make the collection empty give me a sub set of the collection
Data1 Data2 Data3 Data Front (^) Back
A Flexible structure, because can grow and shrink on demand. Elements can be: (^) Inserted (^) Accessed (^) Deleted At any position first last