# MCQ IN COMPUTER SCIENCE & ENGINEERING

## COMPUTER SCIENCE AND ENGINEERING

### DATA STRUCTURES

 Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
What kind of sorting algorithm puts the data into piles of like data.
 A Linear B Bucket C Bubble D Binary
Explanation:

Detailed explanation-1: -Bucket Sort is a sorting algorithm that divides the unsorted array elements into several groups called buckets. Each bucket is then sorted by using any of the suitable sorting algorithms or recursively applying the same bucket algorithm. Finally, the sorted buckets are combined to form a final sorted array.

Detailed explanation-2: -Radix Sort Algorithm For integers use 10 buckets (0-9); Sort integers by least significant digit (ones digit) using bucket sort.

Detailed explanation-3: -Bucketsort is definitely not an “in-place” sorting algorithm. The whole idea is that elements sort themselves as they are moved to the buckets. In the worst of the good cases (sequential values, but no repetition) the additional space needed is as big as the original array.

Detailed explanation-4: -For partially-sorted arrays, insertion sort performs well, it has linear time complexity. An array where each entry is not far from its final position is a typical example of partially-sorted array. That’s the case here for Bucket sort.

There is 1 question to complete.