There are many binary search tree algorithms that
can look up a sequence of
keys
, where each
is a number between
and
.
For each sequence
, let
be the fastest binary search tree algorithm that looks up the elements in
in order.
Let
be one of the
possible
permutation of the sequence
, chosen at random,
where
is the
th entry of
.
Let
.
Iacono defined, for a sequence
, that
.
A data structure has key-independent optimality
if it can lookup the elements in
in time
.