retagged by
1,003 views
1 votes
1 votes
Assuming there are n keys and
each key is in the range [0, m – 1].
The run time of bucket sort is
(A) O(n) (B) O(n lgn)
(C) O(n lgm) (D) O(n + m)
retagged by

1 Answer

Related questions

1 votes
1 votes
2 answers
1
rahul sharma 5 asked Sep 22, 2017
875 views
1. Is bucket sort always stable or does it depend on the sorting subroutine used by bucket sort toe sort the buckets?2. Bucket sort is always NOT inplace.Is this correct...
1 votes
1 votes
0 answers
2
rahul sharma 5 asked Dec 11, 2016
1,118 views
Does Bucket sort input is always between 0 and 1?Or the input has to be distributed between [0,1) interval uniformly before applying bucket sort?
1 votes
1 votes
0 answers
3
1 votes
1 votes
0 answers
4
Kaushal Sanadhya asked Oct 9, 2018
3,913 views
Given an array where numbers are in range from 1 to n6, which sorting algorithm can be used to sort these number in linear time?1)Counting Sort2)Radix Sort3)Bubble Sort4)...