Dsa Short Answer Questions
Dsa Short Answer Questions
1. Define Graph
A graph is a data structure consisting of vertices (nodes) and edges connecting them.
2. Define Sorting
Sorting is the process of arranging elements in a specific order, like ascending or descending.
A binary search tree (BST) maintains a specific order: left < root < right.
Complete: All levels are filled except possibly the last, filled left to right.
Load factor is the ratio of elements in a hash table to its total size.
Hashing types include direct hashing, chaining, and open addressing (linear, quadratic, double).
8. Define Hashing
Unit 4
1. Define Tree
A tree is a hierarchical data structure with a root and connected child nodes.
2. Define Forest
An Euler's circuit is a path that starts and ends at the same vertex.
4. Define Biconnectivity
NP-Complete: The hardest problems in NP; solving one solves all NP problems.
9. Define AVL
The height difference (balance factor) between left and right subtrees is at most 1.
Unit 5
Strongly Connected: All vertices reachable from each other in a directed graph.