1.01 Introduction To Fundamentals of Data Structures
1.01 Introduction To Fundamentals of Data Structures
In the example mentioned above such as ID, Age, Gender, First, Middle, Last, Street, Area, etc. are
elementary data items, whereas (Name, Address) is group data items.
In computer terms, a data structure is a Specific way to store and organize data in a computer's
memory so that these data can be used efficiently later. Data may be arranged in many different
ways such as the logical or mathematical model for a particular organization of data is termed as a
data structure. The variety of a specific data model depends on the two factors -
Firstly, it must be loaded enough in structure to reflect the actual relationships of the data
with the real world object.
Secondly, the formation should be simple enough so that anyone can efficiently process
the data each time it is necessary.
The first way is to provide the linear relationships among all the elements represented using linear
memory location. These linear structures are termed as arrays.
The second technique is to provide a linear relationship among all the elements represented by
using the concept of pointers or links. These linear structures are termed as linked lists.
Arrays
Queues
Stacks
Linked lists
This structure is mostly used for representing data that contains a hierarchical relationship among
various elements.
Graphs
the family of trees and
table of contents
Tree: In this case, data often contain a hierarchical relationship among various elements. The data
structure that reflects this relationship is termed as a rooted tree graph or a tree.
Graph: In this case, data sometimes hold a relationship between the pairs of elements which is not
necessarily following the hierarchical structure. Such a data structure is termed as a Graph.