116 9 The Complexity of Black Box Problems
practice, these experiments are often simulated with the help of computers,
but the problems of choosing a suitable model and designing the simulation
experiments will be ignored here.
Robust algorithms play an important role in applications, and so the ques-
tion arises whether we can formulate these problems in such a way that they
can be complexity theoretically investigated. In order to abstract away the
technical system, we treat it as a black box. The black box provides, for a
setting a of the parameters, the value f(a). Since f is not available in closed
form, we must use the black box to obtain values of f . In the classical scenario
of optimization this corresponds to the computation of the value of a solution
s for an instance x – i.e., v(x, s) – except that in black box optimization x is
unknown.
A black box problem is specified by a problem size n, the corresponding
search space S
n
, and the set F
n
of possible problem inputs, which we identify
with the corresponding functions f : S
n
→ R. The set F
n
is not necessarily
finite. Each of the optimization problems we have considered has a black box
variant. For example, the traveling salesperson problem has a search space
S
n
consisting of all permutations of {1,...,n}, and a function class F
n
,that
contains all functions f
D
: S
n
→ R such that f
D
for a distance matrix D
assigns to a permutation π the length of the corresponding tour. Or for the
knapsack problem, the search space is {0, 1}
n
and the function class F
n
con-
sists of all f
u,w,W
: {0, 1}
n
→ R, such that f
u,w,W
for a knapsack instance
(u, w, W ) assigns to each selection of objects the corresponding utility value
if the weight limit is not exceeded and 0 otherwise. The difference between
this and the scenario from before is that the algorithm has no access to D or
(u, w, W ). It is frequently the case that some properties of the target function
are known. For S
n
= {0, 1}
n
it may be that F
n
consists of all pseudo-Boolean
polynomials whose degree is at most d, for example. Another interesting class
of functions is the class of unimodal functions, i.e., the class of functions that
have a unique global optimum and for which each point that is not globally
optimal has a Hamming neighbor with a better value.
A randomized search heuristic for a black box problem proceeds as follows:
• A probability distribution p
1
on S
n
is selected, and f (x
1
) is computed
(using the black box) for an x
1
∈ S
n
selected at random according to p
1
.
• For t>1, using knowledge of (x
1
,f(x
1
)),...,(x
t−1
,f(x
t−1
)) the algorithm
does one of the following
– ends the search, in which case the x
i
with the best f-value is given as
output, or
– continues the search by selecting a new probability distribution p
t
on S
n
(dependent upon (x
1
,f(x
1
)),...,(x
t−1
,f(x
t−1
))), in which case f(x
t
)
is computed for an x
t
chosen at random according to the new proba-
bility distribution p
t
.
The randomized search heuristics mentioned above all fit into this scheme.
Many of them do not actually store all of the available information