• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 199
  • Last Modified:

Sort Program

I have to sort an array of doubles, which is of size 4000. Performance is a key issue. Which sorting algorithm is best to do this ?? Already written code is welcomed.
0
sumantedla
Asked:
sumantedla
  • 2
1 Solution
 
objectsCommented:
the simplest is:

Arrays.sort(myarray);
0
 
objectsCommented:
Its a modified quick sort and it performs pretty well.
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now