DATA STRUCTURE Notes
DATA STRUCTURE Notes
A data structure is a group of data elements that provides the easiest way to
store and perform different actions on the data of the computer. A data
structure is a particular way of organizing data in a computer so that it can be
used effectively. The idea is to reduce the space and time complexities of
different tasks. Data structures are used in various fields such as: Operating
system, Graphics, Computer Design, Blockchain,etc.
Types of queue
Simple Queue or Linear Queue
Circular Queue
Priority Queue
Deque (or, Double Ended Queue)
5. Binary Tree: Unlike Arrays, Linked Lists, Stack and queues, which are
linear data structures, trees are hierarchical data structures. A binary tree
is a tree data structure in which each node has at most two children,
which are referred to as the left child and the right child. It is
implemented mainly using Links. A Binary Tree is represented by a
pointer to the topmost node in the tree. If the tree is empty, then the
value of root is NULL. A Binary Tree node contains the following parts
Data, Pointer to left child and Pointer to the right child.
Different applications of Tree is as follow:
Heap is a tree data structure which is implemented using arrays, and
used to implement priority queues.
B-Tree and B+ Tree is used to implement indexing in databases.
In real life tree data structure helps in Game Development.
Also it helps in indexing of database.
Decision trees is efficient machine learning tool, commonly used in
decision analysis.
Tree helps to understand the data using flow chart.
6. Graph: