Unit 1 2 3 Theory Ds
Unit 1 2 3 Theory Ds
🧠 Mnemonics:
Bubble: Bubble up largest element
Selection: Select smallest and fix
Insertion: Insert in right position
Merge: Merge sorted arrays
Quick: Choose pivot and partition
Heap: Parent node ka rule
Binary Search: Divide array in half and search
🔑 Quick Definitions for Viva:
Sparse Matrix: Jisme 90% ya zyada elements zero ho
Head Recursion: Recursive call sabse pehle hota hai
Hash Table: Keys ko index mein convert karke store karte hain
LIFO/FIFO: Stack ke liye LIFO, Queue ke liye FIFO
Heap Property: Parent node ka value child se bada (Max Heap)
Use this document for deep understanding, exam prep, and full marks
targeting. MCQs aur coding practicals bhi chahiye toh batao Priyam bhai 🔥