MCPcopy Create free account
hub / github.com/TheAlgorithms/Rust / compute_min_run_length

Function compute_min_run_length

src/sorting/tim_sort.rs:22–32  ·  view source on GitHub ↗

Calculates the minimum run length for Tim sort based on the length of the array. The minimum run length is determined using a heuristic that ensures good performance. # Arguments `array_length` - The length of the array. # Returns The minimum run length.

(array_length: usize)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

tim_sortFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected