2 Need+of+Data+Structure
2 Need+of+Data+Structure
data structure.
1-primitive data structure : these are basic structure and are directly
float..
order.
1. Array
2. Stack
3. Link list
4. Queue
Array data structure:
Array is from linear data structure types, an Array can be defined as an
array is a collection of similar types of data items and each data items is
Array can be store multiple value which can be referenced by a single name.
The elements of array share the same variable name but each one carries a
after another.
Example
a {3} {2}
Stack data structure:
Stack : it is a linear list in which insertion and deletion are allowed
Each element is called a node which has two parts Info part which
stores the information and pointer which point to the next elements.
Queue data structure:
at one end called rear and deleted only at the other end called front.
array
Stack
Non-linear data structure
Non-linear data structure not store data in sequential order.
Ex:
Tree:
Graphs:
Trees data structure:
Trees are multilevel data structures with a hierarchical relationship
among its elements known as nodes. The bottommost nodes in the
hierarchy are called leaf node while the topmost node is called root
node. Each node contains pointers to point adjacent nodes.
Graphs data structure:
of nodes or vertices and edges. The edges connect any two nodes in