Divide & Conquer Algorithm with Binary Tree Representation
Merge Sort is a divide and conquer algorithm that:
The binary tree visualization shows how the array is divided into smaller subarrays until each subarray contains only one element (which is inherently sorted). Then, the subarrays are merged back together in a sorted manner.
Time Complexity: O(n log n) - making it efficient for large datasets.