retagged by
629 views
0 votes
0 votes

retagged by

2 Answers

Best answer
3 votes
3 votes
It is similar to radix sort , example you need to sort 123 ,456. 124 so you sort the third position and then second and finally the first so but to sort these positions you need a sorting algorithm which is satble, In the above question there are n positions and n characters to sort so it will be n * nlogn so it will be 2+1*(100) = 102
selected by
0 votes
0 votes
The first character of each n strings to sort it will take O(nlogn) time..in the worst case we may have to do the above process 2 times,3 times,........,n times so n*O(nlogn)=O(n^2 logn)

therfore a=2 and b=1 hence 2+100=102..

Related questions

0 votes
0 votes
3 answers
1
aditi19 asked Oct 6, 2018
1,149 views
what is the recurrence relation for merge sort?
2 votes
2 votes
1 answer
2
Naveen Parihar asked Jun 26, 2018
2,049 views
Given "log n" sorted lists each of size "n/log n",what is the total time required to merge them into one single list.
1 votes
1 votes
1 answer
3
rahul sharma 5 asked Mar 9, 2018
1,320 views
Consider the modified merge sort where we divide array into 5 equal sub arrays instead if 2(as in standard merge sort).What is the time complexity if modified merge sort?...
1 votes
1 votes
0 answers
4