A1 Overview
A1 Overview
• Overview
Objectives
• Understand different programming concepts
such as the different control construct
• Explain what is data structures and algorithm
• Understand the different characteristics of an
algorithm and its properties
• Understand the different classifications of a
data structure
Data Structures are the systematic way of storing or organizing data in
order to use it efficiently. It can be defined as an organized collection
of data that helps a program to access data efficiently and rapidly so
that the entire program can function in an efficient manner.
STUDENT
STUDENT
NAME AGE GRADE
NUMBER
Figure 1
Basic Terminology
• Field or Attribute a single elementary unit of information representing an
attribute of an entity. Properties of an entity are called attributes and each
field represents an attribute.
• Record a collection of field values of a given entity. It is a collection of
data items. In the above example, data items like student number, Name,
Age, Grade form a record together.
• File a collection of records of the entities in a given entity set. A file is a
collection of records. In the above example, a student entity can have
thousands of records. Thus a file will contain all these records.
Classification of Data Structures
“Data Structures ”deals with the study of how the data is organized
in the memory, how efficiently the data can be retrieved and
manipulated, and the possible ways in which different data items
are logically related.
Types:
• Primitive Data Structure
Ex. int,float,char
• Non-primitive Data Structures
Ex.Arrays,Structures,stacks
• Linear Data Structures
Ex.Stacks,queues,linked list
• Non-Linear Data Structures
Ex.Trees,Graphs
Data Structure Classification
Data structures used in C++ can be classified as follows.