Beruflich Dokumente
Kultur Dokumente
Diomar S. Orbase
What is Data Structure?
Data Structure
●
Data Structure
– A data structure is a logical way to store
and organize data so that it can be used
efficiently.
Diomar S. Orbase
Why Data Structure is
Important?
Why Data Structure is
Important?
●
To solve the complex requirements in efficient way
we need this study to provide fastest solution of
human requirements. And also it
● Provide efficient solution of complex problem.
– Space
– Time
Diomar S. Orbase
Classification of Data Structure
Data Structure
Diomar S. Orbase
2 Types of Data Structure
●
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
Diomar S. Orbase
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
Diomar S. Orbase
Linear Data Structure
Size: 10
35 33 42 10 14 19 27 44 26 31
0 1 2 3 4 5 6 7 8 9
Diomar S. Orbase
Linear Data Structure
Diomar S. Orbase
Linear Data Structure
Diomar S. Orbase
Linear Data Structure
B C
D E F
Diomar S. Orbase
Non-Linear Data Structure
0 1
2
4 3
Diomar S. Orbase
Differences Between Linear and
Non-Linear Data Structure
Diomar S. Orbase