0 votes 0 votes You have 10000 dates of the form YYYYMMDD.Which sorting method is more efficient? Algorithms sorting + – srestha asked Dec 9, 2016 srestha 504 views answer comment Share Follow See all 3 Comments See all 3 3 Comments reply Pavan Kumar Munnam commented Dec 9, 2016 reply Follow Share radix sort will be best 1 votes 1 votes srestha commented Dec 9, 2016 reply Follow Share Why? 0 votes 0 votes Pavan Kumar Munnam commented Dec 9, 2016 reply Follow Share radix sort will be compared along the columns which makes it easier, in databases date datatype sorting is also done through radix sort when u say created_date order by desc 1 votes 1 votes Please log in or register to add a comment.
0 votes 0 votes sorting method which uses individual digits is better than any comparison sort. Surajit answered Dec 20, 2016 Surajit comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes i think radix sort is more efficient because radix sorts use lexicographic order, which is suitable for sorting strings, such as words, or fixed-length integer representations. Deepak Yadav answered Dec 24, 2016 Deepak Yadav comment Share Follow See all 0 reply Please log in or register to add a comment.