Problem : Insert into a B-Tree of Order 4 Insert keys 10, 20, 5, 6, 12, 30, 7, 17 into a B-Tree of order 4 (max 3 keys per node). Solution: 1. Insert [10,20]. 2. Insert 5 → [5,10,20]. 3. Insert 6 → [5,6,10,20] → Overflow (4 keys). - Split: middle = 6, promote to root. - Left = [5], Right = [10,20]. - Tree: [6] / \ [5] [10,20] 4. Insert 12 → goes right → [10,12,20]. 5. Insert 30 → right child [10,12,20,30] → Overflow. - Split: promote 12 → root becomes [6,12]. - Left = [10], Right = [20,30]. - Tree: [6,12] / | \ [5] [10] [20,30] 6. Insert 7 → goes to middle child [10] → becomes [7,10]. 7. Insert 17 → goes to right [20,30] → becomes [17,20,30]. ✅ Final Tree: [6,12] / | \ [5] [7,10] [17,20,30]