Introduction To Data Structure
Introduction To Data Structure
Basic Terminologies
●
Data Structure
– Data: are simply a value are set of values of
different type which is called data types like
string, integer, char etc.
– Structure: Way of organizing information, so that
it is easier to use
– In simple words we can define data structures as
●
Its a way organizing data in such a way so
that data can be easier to use.
Basic Terminologies
●
Data Structure ..
– A data structure is a particular way of
organizing data in a computer so that it
can be used effi ciently.
– A scheme for organizing related pieces of
information.
Why Data Structure
●
Human requirement with computer are going to
complex day by day. To solve the complex
requirements in efficient way we need this
study.
●
Provide fastest solution of human requirements.
●
Provide efficient solution of complex problem.
– Space
– Time
Study in Data Structure
●
Logical or mathematical description of the
structure.
●
Implementation of structure on a computer
using different computer languages ( C, C++,
JAVA, pl-languages etc.)
●
Qunatitative analysis of the structure, which
includes determining the amount of memory
needed to store the structure and the time
required to process the structure.
Classification of Data Structure
Data Structure
Compound
Compound
●
DataStructure:
Data Structure:
Compound data
Compound structure
data structure
can
canbebeconstructed
constructedwith withthe
thehelp
helpofofany
anyone
one ofofprimitive
the the primitive
datada
structure
structure
and
and
it is
ithaving
having
is a aspecific
specificfunctionality.
functionality.
canItbe
It can be
designed by user.
It can It be classified as Linear and Non-Linear
Data Structure.
.
Classification of Data Structure ...
●
Linear Data Structures: A linear data structure traverses
the data elements sequentially, in which only one data element
can directly be reached. Ex: Arrays, Linked Lists
●
Non-Linear Data Structures: Every data item is
attached to several other data items in a way that is specific for
reflecting relationships. The data items are not arranged in a
sequential structure. Ex: Trees, Graphs
Operation on Linear/Non-Linear
Data Structure
●
Add an element
Delete an element
●
●
Traverse / Display
Sort
●
the list of elements
Search
●
for a data element
Types of Data Structure
●
Array: is commonly used in computer
programming to mean a contiguous block of
memory locations, where each memory location
stores one fixed-length data item. e.g. Array of
Integers int a[10], Array of Character char b[10
●
Analyze the problem to determine the resource
constraints a solution must meet.
●
Determine the basic operations that must be
supported. Quantify the resource constraints
for each operation.
●
Select the data structure that best meets these
requirements.