Which sorting algorithm uses a divide-and-conquer strategy to sort data?
- Bubble Sort
- Insertion Sort
- Merge Sort
- Selection Sort
Merge Sort is a sorting algorithm that uses a divide-and-conquer strategy. It divides the unsorted list into smaller sublists, sorts those sublists, and then merges them to obtain the final sorted list. This approach results in better performance compared to some other sorting algorithms.
Loading...
Related Quiz
- Can a constructor return a value in Java?
- What will be the initial capacity of a HashSet when no size is defined during its creation?
- How does Java differentiate between a constructor and a method?
- How do you specify a timeout while trying to connect to a remote socket?
- Which class allows you to read lines of text from a file?