Apr 24, 2025
n numbers faster than n log n with comparison sort.0 to 2^W - 1.O(log n) time.O(log n).O(log log U) insertions and queries.O(U) space reduced to O(n) using hashing.O(log base W n) query time.W increases relative to n.O(n log log n).O(n log log n) sorting in RAM model.