2 Mark Questions Answers Bold
2 Mark Questions Answers Bold
A data structure is a way of organizing and storing data so that it can be accessed and modified
efficiently.
ADTs are logical models of data types that define the operations on the data without specifying
implementation details.
Define Stack:
A stack is a linear data structure that follows the LIFO (Last In First Out) principle.
Operations of Stack:
- Push (Insert)
- Pop (Delete)
Applications of Stack:
- Expression evaluation
- Circular Queue: A queue where the last element is connected back to the first.
Operations of Queue:
- Enqueue (Insert)
- Dequeue (Remove)
Types of Queue:
- Simple Queue
- Circular Queue
- Priority Queue
Applications of Queue:
A linked list is a linear data structure where each element points to the next, forming a chain.
- Insertion
- Deletion
Unit 3: Trees
Define Tree:
A tree is a hierarchical data structure with nodes connected by edges, having one root and many
subtrees.
A binary tree is a tree in which each node has at most two children (left and right).
the node.
Define B-Tree:
A B-Tree is a self-balancing search tree designed to work well on disk-based storage, where nodes
An AVL tree is a self-balancing binary search tree where the height difference of left and right
Applications of Trees:
- File systems
- Database indexing
Applications of Graph:
- Social networks
- Network routing
DFS / BFS: