Definitions and Applications For Each of These Data Structures
Definitions and Applications For Each of These Data Structures
1. Merge Sort
Definition: Merge Sort is a divide-and-conquer sorting algorithm that splits an array into smaller
subarrays, sorts them, and then merges them back together in order.
Applications:
2. Quick Sort
Definition: Quick Sort is a divide-and-conquer algorithm that selects a pivot element, partitions the
array into elements smaller and greater than the pivot, and recursively sorts them.
Applications:
3. Heap
Definition: A heap is a special tree-based data structure where the parent node is either greater than
or smaller than its child nodes, forming a Max-Heap or Min-Heap.
Applications:
Definition: A BST is a binary tree where each node has at most two children, and the left child
contains values less than the node, while the right child contains values greater than the node.
Applications:
5. Binary Search
Definition: Binary Search is an efficient search algorithm that works on sorted arrays by repeatedly
dividing the search interval in half until the element is found.
Applications:
6. Queue
Definition: A queue is a linear data structure that follows the FIFO (First In, First Out) principle,
where elements are added from the back and removed from the front.
Applications:
7. Stack
Definition: A stack is a linear data structure that follows the LIFO (Last In, First Out) principle, where
elements are added and removed from the same end.
Applications:
8. Linked List
Definition: A linked list is a data structure consisting of nodes, where each node contains a data
element and a reference (pointer) to the next node.
Applications:
9. Array
Definition: An array is a linear data structure that stores elements of the same data type in
contiguous memory locations.
Applications: