Data Structure - Introduction
Data Structure - Introduction
Module 1
1
Data
2
Entity
entity set.
Domain : set of all possible values that could be assigned to a
particular attributes.
3
Information
4
Relation between data and information
To get information from the given set of data, we need to define certain
processes and then apply the corresponding process on the data.
5
Data type
6
Built-in data type
7
Abstract data type(user-defined data type)
Definition :
An abstract data type(ADT) is a data type that is organized in
such a way that the specification of the objects and the
specifications of the operations on the objects is separated from
the representation of the objects and the implementations of the
operations.
10
Data Structure - Definitions
11
Data Structure - Definitions
For a given kind of user data, its structure implies the following:
1. Domain (D): This is the range of values that the data may have.
This domain is also termed as data object.
2. Function : This is the set of operations which may legally
be applied to elements of data object. This implies that for a
data structure we must specify the set of operations.
3. Axioms This is the set of rules with which the different
operation belongs to can actually be implemented.
Now we can define the term data structure.
12
Data Structure - Definitions
13
Data Structure
14
Types of Data Structure
Primitive :
Examples : int, char, float, double etc.
The integers, reals, logical data, character data and pointers are
built in type.
Data objects of primitive data types can be operated upon by
Non-Primitive :
These data structure are derived from primitive data structures and
17
Types of Data Structure
18
Types of Data Structure
Linear :
Elements are arranged in a linear fashion.
structure.
19
Types of Data Structure
Figure shows the representation of linear data structure.
20
Types of Data Structure
Non-Linear :
Data structures where data elements are not arranged sequentially
21
Types of Data Structure
22
Types of Data Structure
23
Thank You…
24