





















































































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
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
In the subject of the Data Structures, the key concept and the main points, which are very important in the context of the data structures are listed below:Data Design, Representation, Information, Communication, Analysis, Humans or Machines, Manipulated, Information, Logical Properties, Implementation
Typology: Slides
1 / 93
This page cannot be seen from the preview
Don't miss anything!
Chapter 2 Data Design and Implementation
Data Abstraction
4
What are the possible values? How can this be done in C++?
What operations will be needed? How can data types be used?
APPLICATION
0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 1
REPRESENTATION
Data Encapsulation
5
int y;
y = 25;
operations) are specified independently of any particular implementation.
Collection ordered in different ways
Communication between the Application Level and Implementation Level
ADT.
the data values of an instance.
more of the data values without changing them.
a data structure sequentially.
Two Forms of Composite Data Types
14
Components are not organized with respect to one another.
The organization determines method used to access individual data components.
EXAMPLES: EXAMPLES: arrays classes and structs
A record is a composite data type made up of a finite collection of not necessarily homogeneous elements called members or fields****. For example...
16
.year 2008
.maker ‘ h ’‘ o ’‘ n ’‘ d’ ‘ a’ ‘ \0 ’...
.price 18678.
thisCar at Base Address 6000
struct CarType {
int year; char maker[10]; float price;
} ;
CarType thisCar; //CarType variable s CarType myCar;
assignment to another struct variable of same type,
pass as a parameter to a function (either by value or by reference),
return as the value of a function.
20
CALLING BLOCK
FUNCTION CALLED
sends a copy of the contents of the actual parameter
SO, the actual parameter cannot be changed by the function.