0

What type of search is Java.util.Arrays.sort()? Not important but I was just curious. Thanks in advance!

1
  • There is where reading the documentation is useful. Commented Dec 5, 2015 at 20:42

1 Answer 1

1

from java doc:

Implementation note: The sorting algorithm is a Dual-Pivot Quicksort by Vladimir Yaroslavskiy, Jon Bentley, and Joshua Bloch. This algorithm offers O(n log(n)) performance on many data sets that cause other quicksorts to degrade to quadratic performance, and is typically faster than traditional (one-pivot) Quicksort implementations.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.