DS - Unit-1 - Introduction To DS
DS - Unit-1 - Introduction To DS
GTU # 3130702
Unit-1
Introduction to
Data Structure
Looping
Outline
Data Management concepts
Data types
• Primitive
• Non-primitive
Types of Data Structures
• Linear Data Structures
• Non Linear Data Structures
Performance Analysis and
Measurement
Time analysis of algorithms
Space analysis of algorithms
What is Data?
Data is the basic fact or entity that is utilized in calculation or
manipulation.
There are two different types of data Numeric data and Alphanumeric
data.
When a programmer collects such type of data for processing, he would
require to store them in computer’s main memory.
The process of storing data items in computer’s main memory is called
representation.
Data to be processed must be organized in a particular fashion, these
organization leads to structuring of data, and hence the mission to study
the Data Structures.
What is Data Structure?
Data Structure is a representation of the logical relationship existing
between individual elements of data.
In other words, a data structure is a way of organizing all data items
that considers not only the elements stored but also their
relationship to each other.
We can also define data structure as a mathematical or logical model
of a particular organization of data items.
Data Structure mainly specifies the following four things
Organization of Data
Accessing Methods
Degree of Associativity
Processing alternatives for information
What is Data Structure? Cont..
The representation of a particular data structure in the memory of a
computer is called Storage Structure.
The storage structure representation in auxiliary memory is called as
File Structure.
Floating Pointers
Point Linear Non-linear
List List
File
List
Linear / Non-Linear data structure
Linear data structures
A data structure is said to be Linear, if its elements are connected in linear fashion
by means of logically or in sequence memory locations.
Examples of Linear Data Structure are Stack and Queue.
Nonlinear data structures
Nonlinear data structures are those data structure in which data items are not
arranged in a sequence.
Examples of Non-linear Data Structure are Tree and Graph.
Thank
You