Data Structure Notes
Data Structure Notes
Data Structure:
Data structure is not itself a programming language. Data structure is the
concepts (so that we can access data efficiently) which are
implemented/completed with the help of any programming language. In other
words Data Structure is the process or way of storing and organizing the data in
computer memory in such a way so that it can accessed by user easily and
efficiently.
Data structure is defined as triplet (D,F,A) where “D” stands for set of domain, “F”
denotes the set of operations and “A” represents axioms defining the function in
“F”.
Data-> Data means raw facts and figures. Data is very valuable raw material
which is used to make information. Data can be in different form such as
numbers, words, alphabets, diagrams etc. It is of two types:
• Atomic Data: Non decomposable entity
• Composite Data: Decomposable entity
Atomic Data: The data which is not further subdivided. For example: 69 or any
alphabet X.
Composite Data: It is the most fundamental data level which is used as a building
block for all other data in a system. It consists several atomic data and hence it
can further sub divided. For example Roll no.: 69 is the composite data.
Data Structure
Tree Graph
Linear and Non Linear data structure
Linear data Structures:
This type of data structure in which data is not organized in sequential or linear
fashion. A data items in a non linear data structure could be attached to several
other data elements to reflect a special relationship among them and all the data
items cannot be transverse in a single run. Data structure like multidimensional
arrays, trees and graphs are some examples of widely used nonlinear data
structures. A data structure in which data is organized in random order.