- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for choosePivot_func (0.14 sec)
-
src/sort/zsortfunc.go
other -= length } data.Swap(idx, a+other) } } } // choosePivot_func chooses a pivot in data[a:b]. // // [0,8): chooses a static pivot. // [8,shortestNinther): uses the simple median-of-three method. // [shortestNinther,∞): uses the Tukey ninther method. func choosePivot_func(data lessSwap, a, b int) (pivot int, hint sortedHint) { const ( shortestNinther = 50
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 13 20:16:24 UTC 2022 - 11.5K bytes - Viewed (0)