Most efficient sorting algorithm?
What's the fastest and most efficient sorting algorithm in the world?
Right now the fastest I can find is this:
FastQSortAlgorithm.java
Right now the fastest I can find is this:
FastQSortAlgorithm.java
GAMEchief wrote:It depends on what you are sorting. There are a billion ways to sort something, and depending on what it is and how you want it sorted determines which algorithm is fastest. On top of that, the speed of the algorithm is also determined by the values themselves. The same numbers randomly distributed in two different ways in an array can be sorted at two different speeds by two different algorithms, with each algorithm being faster for half the test.
There is no blanket algorithm. You generally learn a handful of good ones, the concepts for when those algorithms are faster than each other, and then just use whichever one matches your data.

Riddle wrote:Well, I wouldn't call them geniuses. They simply hire smart people to spend years researching ways to sort data efficiently. When you have a bunch of smart people focused on a single task for a long time, great things are bound to happen.
Riddle wrote:Well, I wouldn't call them geniuses. They simply hire smart people to spend years researching ways to sort data efficiently. When you have a bunch of smart people focused on a single task for a long time, great things are bound to happen.
GAMEchief wrote:Google incorporates essentially IQ tests into their job application.
The people they hire are literally geniuses.
I thought a lot of people have 120+? Like everyone on my robotics team has 120-140 IQs, and I think mine is like 150 or someshit. Idk, my school is really well known for super high grades, most people score in the 30's on the ACT and stuff.Flareboy323 wrote:But isn't that a large quotient of the population?I thought a lot of people have 120+? Like everyone on my robotics team has 120-140 IQs, and I think mine is like 150 or someshit. Idk, my school is really well known for super high grades, most people score in the 30's on the ACT and stuff.
The Unintelligible wrote:5. The term genius is rather vague. Being an extremely seasoned programmer doesn't necessarily tantamount to being a genius.
. Funnily enough, I helped a psych student out with her thesis last semester, and had to take a range of certified IQ tests (though I forget which) under the following conditions: