Imagine you have an array with a million elements.
You want to insert an item at location 5.
, , .
, ; O (nlog n), 1 000 000 * 6 = 6 000 000 .
, .
O (log n) = 6 + , 10 .
, 6 000 000 , . . ? - O (log n) - , !
, -another-element.
! ? n memcpy lot? memcpy 4mbytes?
...
user82238