sorting Flashcards
1
Q
What is the minimum height of a (full) binary tree that has X leaf nodes?
A
⌊log X⌋
2
Q
Stirling’s approximation
A
log n! ≈ n log n − n + O(logn)
3
Q
best (fastest) sorting algorithm in practice
A
quick sort
4
Q
A