26
Embedding Complexity A New Divide & Conquer Approach to Discrete Optimization, Exemplified by the Steiner Tree Problem D. Cieslik Institute of Mathematics and Computer Science, University of Greifswald, D-17487 Greifswald, Germany, * A. Dress FSPM-Strukturbildungsprozesse, University of Bielefeld, D-33501 Bielefeld, Germany, K. T. Huber FMI, Mid Sweden University, S 851-70 Sundsvall, Sweden, and V. Moulton § FMI, Mid Sweden University, S 851-70, Sundsvall, Sweden. November 2, 2001 1

Embedding Complexity A New Divide Conquer Approach to ... · (our version of) Steiner’s problem for (hyper)graphs of bounded treewidth. 2 A General Scheme for \Linearizing" Dis-crete

  • Upload
    others

  • View
    6

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Embedding Complexity A New Divide Conquer Approach to ... · (our version of) Steiner’s problem for (hyper)graphs of bounded treewidth. 2 A General Scheme for \Linearizing" Dis-crete

Embedding Complexity

A New Divide & Conquer Approach to

Discrete Optimization,

Exemplified by the Steiner Tree Problem

D. Cieslik

Institute of Mathematics and Computer Science,

University of Greifswald,

D-17487 Greifswald, Germany,∗

A. Dress†

FSPM-Strukturbildungsprozesse,

University of Bielefeld,

D-33501 Bielefeld, Germany,

K. T. Huber‡

FMI, Mid Sweden University,

S 851-70 Sundsvall, Sweden,

and

V. Moulton§

FMI, Mid Sweden University,

S 851-70, Sundsvall, Sweden.

November 2, 2001

1

Page 2: Embedding Complexity A New Divide Conquer Approach to ... · (our version of) Steiner’s problem for (hyper)graphs of bounded treewidth. 2 A General Scheme for \Linearizing" Dis-crete

Abstract

In this note, we describe a new and quite natural way of analyzing

instances of discrete optimization problems in terms of what we call

the embedding complexity of an associated (more or less) canonical

embedding of the (in general, vast) solution space of a given problem

into a product of (in general, small) sets. This concept arises natu-

rally within the context of a general Divide & Conquer strategy for

solving discrete optimization problems using dynamic-programming

procedures. As an example, an algorithm for solving Steiner’s prob-

lem on graphs with bounded treewidth is presented in detail.

Keywords: Optimization, discrete optimization, Divide & Conquer, dy-

namic programming, dynamic-programming schemes, algorithmic complex-

ity, embedding complexity, Steiner’s problem, Steiner minimal trees, SMT,

treewidth.

1 Introduction

One of the main challenges in optimization theory is to develop ways for

understanding (a) what it is that makes a difficult problem difficult and (b)

why one optimization problem can be solved easily whereas an apparently

rather similar one is ‘hard’. Clearly, differentiating between polynomial (P)

and non-deterministically polynomial (NP) problems has been ground break-

ing in this context (see e.g. [14]). However, concepts like treewidth (see

e.g [1, 2, 3, 4]) testify that, depending on which information is at hand, in-

stances of ‘one and the same type’ of a problem can turn out to be either P

∗The author thanks the DFG and the DAAD for support.†Communicating author, e-mail [email protected], the author thanks

the DFG and the DAAD for support.‡The author thanks the Swedish Research Council (VR) for its support (grant# B

5107-20005097/2000).§The author thanks the Swedish Research Council (VR) for its support (grant#

M12342-300).

2

Page 3: Embedding Complexity A New Divide Conquer Approach to ... · (our version of) Steiner’s problem for (hyper)graphs of bounded treewidth. 2 A General Scheme for \Linearizing" Dis-crete

or NP (notwithstanding the fact that we still do not know whether P6=NP

holds); there just isn’t a unique canonical way to specify an instance of an

optimization problem of given type.

In this note, we describe a new and, as we feel, quite natural way of ana-

lyzing instances of discrete optimization problems in terms of the embedding

complexity of an associated (more or less) canonical embedding of the (in

general, vast) ‘solution space’ of a given problem instance into a product of

(in general, small) sets that is used to describe exactly those local features of

a potential solution from which its total score can be computed additively.

A variety of basic examples (cf. Section 2.3) will be presented below to

help clarify this simultaneously rather abstract, yet also very simple idea,

including a detailed description of an application to Steiner’s problem. Two

points in favor of this approach may, however, be mentioned immediately:

• It separates completely the numerical details of a given problem in-

stance from its structural aspects.

• It allows to evaluate the efficiency of many heuristic procedures which,

in the light of our approach, can be interpreted as methods that focus

attention to a subspace of the total solution space containing (most

probably) the optimal solution and having a much lower embedding

complexity.

In this way, it is hoped to eventually develop a methodology for deal-

ing with discrete optimization problems that can simultaneously produce (a)

estimates for the work needed for solving any instance of a given class of

problems exactly, and (b) for solving them heuristically.

In Section 2, we present a general scheme for analyzing discrete optimization

problems. In the next two sections, we use this scheme to develop a Divide &

Conquer approach for solving such problems — in this context, the concept

of embedding complexity turns up naturally. Then, we present a rather gen-

eral version of Steiner’s problem and, in the last section, we describe how the

3

Page 4: Embedding Complexity A New Divide Conquer Approach to ... · (our version of) Steiner’s problem for (hyper)graphs of bounded treewidth. 2 A General Scheme for \Linearizing" Dis-crete

general approach that we have developed before can be employed to deal with

(our version of) Steiner’s problem for (hyper)graphs of bounded treewidth.

2 A General Scheme for “Linearizing” Dis-

crete Optimization Problems

In this section, we present a scheme for rewriting a discrete optimization

problem in such a way that the objective function can be viewed as an addi-

tive combination of local score functions. As will be shown in a subsequent

paper, one of the various advantages of this approach is that it allows to ex-

plore the suitability of local-improvement approaches in a systematic fashion.

Our rewriting procedure can be applied to a wide range of discrete opti-

mization problems, including all popular ones that we know of. To illustrate

our procedure, we will apply it to three standard combinatorial-optimization

problems.

2.1 Discrete Optimization Problems with an Additive

Objective Function

Many optimization problems can be viewed as particular instances of the

problem of deriving information regarding appropriate global states (or struc-

tures) from information regarding (1) the associated local states (or substruc-

tures) and (2) legitimate ways to fit these local data together so as to derive

and to evaluate admissible global states (or structures). Consequently, a

standard set-up to present such problems is the following one:

One starts with

(a) a family (Pe)e∈E of (hopefully small) sets Pe consisting of all local states

to be taken into consideration at locality e where e runs through some

index set E representing the set of relevant localities that we will as-

4

Page 5: Embedding Complexity A New Divide Conquer Approach to ... · (our version of) Steiner’s problem for (hyper)graphs of bounded treewidth. 2 A General Scheme for \Linearizing" Dis-crete

sume to be finite (though, more generally, it could also be assumed to

be a measurable space),

(b) a family of maps (se : Pe → R := R∪{∞})e∈E associating a local score

(or fitness value, penalty, or objective function) se(πe) ∈ R to each local

state πe ∈ Pe, and

(c) a subset R ⊆∏

e∈E Pe consisting of all globally admissible families of lo-

cal states representing the set of all admissible global states π = (πe)e∈E .

Given all that, the goal is to find some or all π = (πe)e∈E ∈ R ⊆ Πe∈EPe that

minimize the additive combination s(π) :=∑

e∈E se(πe) of the local scores

se(πe), e ∈ E. In other words, one defines the global objective function

s :∏

e∈E

Pe → R

simply as the sum by

s(π) :=∑

e∈E

se(πe)

of the local scores se(πe) of any π = (πe)e∈E ∈∏

e∈E Pe, and one wants to

find its minimum — however, not the minimum this function attains on the

set∏

e∈E Pe which would be easy (provided the minimum of the various local

score functions se e ∈ E, can be computed easily one by one), but that which

is attained on the subset R, i.e. one aims to find the number

s∗ := min(s(π)∣

∣ π ∈ R).

In addition, one also wants to find the argument arg[min(s(π)∣

∣ π ∈ R)] at

which this minimum is attained, i.e. all (or, at least, one of the) elements

π∗ ∈ R with s(π∗) = s∗. And whether this is difficult or not depends, as we

shall see, on nothing but the way in which the set R can be described as a

subset of the product set∏

e∈E Pe.

Remark 2.1 Note that in the more general situation where E is a mea-

surable space with measure µ, the family (Pe)e∈E needs to be replaced by

5

Page 6: Embedding Complexity A New Divide Conquer Approach to ... · (our version of) Steiner’s problem for (hyper)graphs of bounded treewidth. 2 A General Scheme for \Linearizing" Dis-crete

a fiber space p : P → E over E, the family of maps (se)e∈E by just one

map S : P → R, and the product space∏

e∈E

Pe by the set Γ = Γ(p, S) of all

sections π : E → P for which the resulting map S ◦π : E → R is measurable,

R is considered – as above – to be a subset of P , and the map s : Γ → R is

defined quite naturally by s(π) :=∫

E

(S ◦ π)dµ.

2.2 The Rewriting Procedure

To rewrite a given optimization problem in the form described above, one

proceeds as follows: Let R′ denote the space of all potential solutions and let

s′ : R′ → R denote the map whose minimum we wish to find. Look at the

specific way in which s′ is defined and try to identify a family of feature maps

pe : R′ → Pe indexed by some appropriately chosen set E; these maps are

considered to associate, to each potential solution r′ ∈ R′ and each feature

e ∈ E, the specific instance pe(r′) of that feature attained at r′. Moreover

the feature maps have to be chosen in such a way that there exist maps

se : Pe → R (e ∈ E) so that, for every r′ ∈ R′, the score s′(r′) coincides with

the additive combination∑

e∈E se(pe(r′)) of the local scores se(pe(r

′)) of the

images pe(r′) of r′:

s′(r′) :=∑

e∈E

se(pe(r′)).

Replacing then R′ by its image R := {pe(r)∣

∣ r ∈ R′} in∏

e∈E Pe (whether

or not r 6= r′ implies the existence of some e ∈ E with pe(r) 6= pe(r′)), it is

easy to see that solving the optimization problem for R′ and s′ is equivalent

to solving the problem set up above for (Pe)e∈E , (se : Pe → R)e∈E , and

R ⊆∏

e∈E Pe.

2.3 Examples

To illustrate the above rewriting procedure, we present three standard opti-

mization problems in a linearized form.

6

Page 7: Embedding Complexity A New Divide Conquer Approach to ... · (our version of) Steiner’s problem for (hyper)graphs of bounded treewidth. 2 A General Scheme for \Linearizing" Dis-crete

The Traveling Salesman problem: Here, one is given a set V of cities and

a weight function d :(

V

2

)

→ R which assigns to every pair {x, y} ∈ E :=(

V

2

)

the distance d(x, y). One is then asked to find a tour (i.e. a Hamilton cycle

in the graph (V,E)) of minimal length.

To linearize this problem in a form as described above, we put Pe :=

{0, 1}, se(0) := 0, and se(1) := d(x, y) for every e = {x, y} ∈ E, and we

define the subset R of∏

e∈E Pe by

R := {(πe)e∈E ∈∏

e∈E

Pe

∣ {e ∈ E∣

∣ πe = 1} is a tour}.

Then the task of finding the shortest tour is indeed identical to that of min-

imizing the function s :∏

e∈E Pe → R with s((πe)e∈E) :=∑

e∈E se(πe) over

all elements in R.

The pairwise alignment problem: In biologically motivated sequence

analysis, one is often confronted with the problem of finding, in some well-

defined sense, the best alignment of a given set of DNA or amino-acid se-

quences. That is, given a family of such sequences (of various length), one

has to insert dots “·”, indicating the so called gaps, at appropriate locations

within the given sequences so that

• the elongated sequences are all of the same length,

• there is no position such that all elongated sequences have a gap at

that position, and

• the elongated sequences are as similar as possible according to some

predefined scoring scheme

(cf. [15, 21, 22] for details). In the case of a pair of sequences x = (x1, . . . , xn)

and y = (y1, . . . , ym), this problem involves studying the set E defined by

E := {(i, ·), (·, j), (i, j)∣

∣ 1 ≤ i ≤ n, 1 ≤ j ≤ m}

= [{1, . . . , n}∪{·}] × [{·}∪{1, . . . , m}] − {(·, ·)}.

7

Page 8: Embedding Complexity A New Divide Conquer Approach to ... · (our version of) Steiner’s problem for (hyper)graphs of bounded treewidth. 2 A General Scheme for \Linearizing" Dis-crete

For each e ∈ E, one puts Pe := {0, 1} as above, and one defines the local

scores se : Pe → R, by se(0) := 0 and

se(1) :=

{

“indel penalty” if e = (i, ·) or e = (·, j),

“dissimilarity of (i, j)” if e = (i, j),

where “indel penalty” and “dissimilarity of (i, j)” are some non-negative real

numbers appropriately selected for the given task. And one defines R to

consist of all families (πe)e∈E ∈∏

e∈E Pe for which the following holds:

(i) 1 ≤ i ≤ n⇒ π(i,·) +∑

1≤j≤m π(i,j) = 1,

(ii) 1 ≤ j ≤ m⇒ π(·,j) +∑

1≤i≤n π(i,j) = 1,

(iii) 1 ≤ i < i′ ≤ n, 1 ≤ j ′ < j ≤ m⇒ π(i,j) + π(i′,j′) ≤ 1.

Again, the task is to minimize the function s :∏

e∈E Pe → R over all elements

in R.

The spin-glass problem: Our rewriting procedure was originally developed

in [10, 9] to deal with the spin-glass problem, i.e. the problem of computing

the minimum min(Q(x)∣

∣ x ∈ {±1}n)) of the values Q(x) of a quadratic form

Q : Rn → R : (x1, . . . , xn) 7→∑

1≤i,j≤n cijxixj that is attained at the vertices

x ∈ {±1}n of the hypercube [−1,+1]n ⊆ Rn. Here, one puts

E :=

(

{1, . . . , n}

2

)

,

Pe := {±1}{i,j} ({i, j} ∈ E),

s{i,j}(π{i,j}) := (cij + cji)π{i,j}(i)π{i,j}(j) ({i, j} ∈ E, π{i,j} ∈ P{i,j}),

and

R := {(πe)e∈E ∈∏

e∈E

Pe

∣ πe(i) = πf (i) for all i ∈ {1, . . . , n}

and e, f ∈ E with i ∈ e ∩ f}.

8

Page 9: Embedding Complexity A New Divide Conquer Approach to ... · (our version of) Steiner’s problem for (hyper)graphs of bounded treewidth. 2 A General Scheme for \Linearizing" Dis-crete

For details see [10] where it has been shown that, using this set-up, the

minimum of Q on {±1}n as well as the partition function of the spin-glass

system described by Q can be computed in 2wO(n) steps where w denotes

the treewidth of the graph whose vertex set is the set of spins {1, . . . , n} and

whose edge set consists of all pairs of interacting spins, i.e. all two-element

subsets {i, j} of {1, . . . , n} with cij + cji 6= 0. In [10], an application to

maximum parsimony trees (cf. [11, 13, 15, 21, 22]) has also been discussed;

more recently, it has been shown in [6] that our rewriting procedure can

also be used to compute the entropy of the resulting probability distribution

defined on the space R = {±1}n in 2wO(n) steps.

These examples demonstrate that any discrete optimization problem can

be rewritten in this way provided

• the elements in its search space can be described in terms of “local”

data and

• its score can be computed as a sum of associated local scores.

3 A Divide & Conquer Approach

In this section, we develop a Divide & Conquer approach for solving opti-

mization problems with an additive objective function as described in Section

2.1. We will also see that this leads to the concept of embedding complexity

which permits to quantify a new feature of computational complexity associ-

ated with discrete optimization problems.

We begin by noting a simple fact: Suppose that we are given two sets

A1 and A2 and two maps f1 : A1 → R and f2 : A2 → R, and that we want

to find the minimum value of f : A1 × A2 → R: (a1, a2) 7→ f1(a1) + f2(a2)

attained at some subset R of A1 ×A2. In general, this could require #R− 1

comparisons. However, if R can be written in the form R =⋃k

j=1A1j × A2j

where, for 1 ≤ j ≤ k, the sets A1j and A2j are appropriately chosen subsets of

A1 and A2, respectively, the number of comparisons required can be reduced

9

Page 10: Embedding Complexity A New Divide Conquer Approach to ... · (our version of) Steiner’s problem for (hyper)graphs of bounded treewidth. 2 A General Scheme for \Linearizing" Dis-crete

dramatically. Namely, putting P := {1, . . . , k} and defining Ri ⊆ P ×Ai for

i = 1, 2 by

Ri := {(j, ai)∣

∣ j ∈ P and ai ∈ Aij},

we see that the minimum value of f on

R = R1 ◦P R2 := {(a1, a2)∣

∣ ∅ 6= {j ∈ P∣

∣ (j, a1) ∈ R1 and (j, a2) ∈ R2}}

is precisely the minimum value of the function g : P → R defined by

g(j) := min(f1(a1)∣

∣ a1 ∈ A1j) + min(f2(a2)∣

∣ a2 ∈ A2j).

Hence, the minimum value of f can be found in this case using

(k − 1) +

k∑

j=1

(#A1j − 1) +

k∑

j=1

(#A2j − 1) =

k∑

j=1

(#A1j + #A2j) − k − 1

comparisons.

Consequently, given a set-up as described in Section 2.2, one might start

dealing with it by first searching for a bipartition E = F1 ∪ F2 of E into

two disjoint non-empty subsets F1, F2 of E such that the approach outlined

above can be applied with respect to Ai :=∏

e∈FiPe (i = 1, 2), i.e. such that

a (comparatively) small set P as well as subsets

Ri ⊆ P × Ai (i = 1, 2)

can be found so that R coincides with the set R1 ◦P R2 consisting of all global

states

(πe)e∈E ∈∏

e∈E

Pe = A1 × A2

for which there exists some j ∈ P with

(j, (πe)e∈Fi) ∈ Ri

for i = 1, 2.

10

Page 11: Embedding Complexity A New Divide Conquer Approach to ... · (our version of) Steiner’s problem for (hyper)graphs of bounded treewidth. 2 A General Scheme for \Linearizing" Dis-crete

This would allow to reduce the original task to performing the same task

several times, yet in the hopefully simpler situations where R is replaced by

the subsets

Rji := {(πe)e∈Fi

∣ (j, (πe)e∈Fi) ∈ Ri} (i = 1, 2, j ∈ P ).

In this way, the usual savings afforded by using a Divide & Conquer ap-

proach can be obtained within our set-up as described in Section 2.2. In the

next section, we will show how this approach can further be elaborated re-

cursively by considering whole hierarchies F of subsets of E (rather than just

a bipartition of E) and using a dynamic-programming scheme for performing

the required computations.

4 Dynamic-Programming Schemes

Given any set X, recall that

• a collection F of subsets of X is called a hierarchy if F does not contain

the empty set and F1 ∩ F2 ∈ {∅, F1, F2} holds for all F1, F2 ∈ F ,

• #F ≤ 2 · #X − 1 holds for any such hierarchy F (where #A denotes

the cardinality of a set A), and

• equality holds for a finite set X if and only if F is a maximal1 or,

equivalently, a binary hierarchy, i.e. if there exist exactly two disjoint

sets F1, F2 ∈ F for every F ∈ F ∗ := {F ∈ F∣

∣ #F > 1} for which

F1∪F2 = F holds in which case we define F := {F1, F2}.

Now, suppose that we are given the set E together with the family (Pe)e∈E

and the set R ⊆∏

e∈E Pe, as introduced in Section 2.1, (a) and (c), as well as

a maximal hierarchy F of subsets of the set E. We identify each e ∈ E with

the associated one-element subset {e} ∈ F , allowing us to denote Pe also by

P{e} and to refer to an element of Pe = P{e} also by π{e} as well as by πe.

1See [5] for a rather general discussion of maximal hierarchies.

11

Page 12: Embedding Complexity A New Divide Conquer Approach to ... · (our version of) Steiner’s problem for (hyper)graphs of bounded treewidth. 2 A General Scheme for \Linearizing" Dis-crete

We will say that a triple

T := (F , (PF )F∈F , (RF )F∈F∗)(1)

consisting of

• a maximal hierarchy F of subsets of E,

• a family (PF )F∈F of (appropriately chosen) sets PF , F ∈ F (with

P{e} := Pe as explained above), and

• a family (RF )F∈F∗ of (appropriately chosen) subsets RF ⊆ P F := PF ×∏

F ′∈F PF ′,

is a dynamic-programming scheme for R whenever an element π = (πe)e∈E

of∏

e∈E Pe is contained in R if and only if there exists a family (πF )F∈F of

elements πF ∈ PF (F ∈ F) with π{e} = πe for all e ∈ E and (πF , (πF ′)F ′∈F ) ∈

RF for all F ∈ F∗. Clearly, defining the subset R = R(T ) of∏

F∈F PF by

R := {(πF )F∈F ∈∏

F∈F

PF

∣ F ∈ F∗ ⇒ (πF , (πF ′)F ′∈F ) ∈ RF},

the condition that (πF , (πF ′)F ′∈F ) ∈ RF should hold for all F ∈ F ∗ for a given

family (πF )F∈F is obviously equivalent to the condition that this family is

contained in R.

Adapting the procedure from the previous section to this more general

situation, we may now compute maps

sF : PF → R(2)

recursively for any F ∈ F ∗ (including, of course, the set E), by putting

sF (πF ) := min(∑

F ′∈F

sF ′(πF ′)∣

∣ πF ′ ∈ PF ′ and (πF , (πF ′)F ′∈F ) ∈ RF ),(3)

allowing us to state the fundamental insight on which a Divide & Conquer

approach using the above dynamic-programming scheme can be based, as

follows:

12

Page 13: Embedding Complexity A New Divide Conquer Approach to ... · (our version of) Steiner’s problem for (hyper)graphs of bounded treewidth. 2 A General Scheme for \Linearizing" Dis-crete

Theorem 4.1 Given a dynamic-programming scheme (F , (PF )F∈F , (RF )F∈F∗)

for a subset R of a product set∏

e∈E Pe, the minimum min(sE(πE)∣

∣ πE ∈ PE)

of the values of the map sE : PE → R computed recursively according to the

equations (2) and (3), always coincides with the number

s∗ = min(s(π) =∑

e∈E

se(πe)∣

∣ π ∈ R).

In addition, one, and even all, π ∈ R with s(π) = s∗ can be found by working

down through the hierarchy F from any πE ∈ PE with sE(πE) = s∗ and

applying the argument function

arg[min(∑

F ′∈F

sF ′(πF ′)∣

∣ πF ′ ∈ PF ′ and (πF , (πF ′)F ′∈F ) ∈ RF )]

to find, also recursively, one or all πF1∈ RF1

and πF2∈ RF2

for any πF ∈ RF

one has encountered before.

We leave the simple proof to the reader. In view of this result, it makes

sense to define the computational complexity ofR relative to a given dynamic-

programming scheme (F , (PF )F∈F , (RF )F∈F∗) for R to be the sum (or, in

view of∑

F∈F∗ #RF = (#E − 1)#RF ≤ (#E − 1) max(#RF |F ∈ F∗), just

the average #RF or the maximum) of the cardinalities of all the relations

RF occurring in the associated computational procedure, and to define the

embedding complexity embc(R) of a subset R ⊆∏

e∈E Pe of a product set∏

e∈E Pe to be the minimum of the complexities of R relative to any such

scheme.

Yet, rather than following up these ideas any further here, discussing their

relationship with the treewidth concept and similar measures of complexity

or their use for computing also Boltzmann’s partition function

f(k) :=∑

π∈R

exp(−ks(π))

13

Page 14: Embedding Complexity A New Divide Conquer Approach to ... · (our version of) Steiner’s problem for (hyper)graphs of bounded treewidth. 2 A General Scheme for \Linearizing" Dis-crete

as well as the associated entropy

entr(k) :=∑

π∈R

−[exp[−ks(π)]/f(k)] ln[exp[−ks(π)]/f(k)]

=∑

π∈R

ks(π) exp[−ks(π)]/f(k) + ln(f(k))

which will be done in separate papers (see also [6]), we will restrict our

attention here now to showing that (and how) the above framework can

be used in particular for the specific purpose of computing Steiner trees in

weighted graphs of bounded treewidth.

Remark 4.2 One might also consider dynamic-programming schemes of the

form

(F , (PF )F∈F , (RF,F ′)F∈F∗,F ′∈F )(4)

where — more or less as above — PF and RF,F ′ ⊆ PF ×PF ′ are appropriately

chosen sets so that an element π = (πe)e∈E ∈∏

e∈E Pe is contained in R if

and only if there exists a family (πF )F∈F ∈∏

F∈F PF of elements πF ∈ PF

with π{e} = πe for all e ∈ E and (πF , πF ′) ∈ RF,F ′ for all F in F∗ and F ′

in F . Indeed, the example discussed in the previous section fits even more

easily into such a scheme rather than into the scheme described before. How-

ever, the scheme described first is more appropriate for the applications we

will explain below while, in principle, both schemes can be transformed into

each other without serious effort: Assume a dynamic-programming scheme

(F , (PF )F∈F , (RF ⊆ PF ×∏

F ′∈F PF ′)F∈F∗) for some subset R ⊆∏

e∈E Pe

as described in (1) is given, and denote, for any ρ = (πF , (πF ′)F ′∈F ) ∈ P F

(F ∈ F∗, F ′ ∈ F ), by ρF and ρF ′ the elements πF and πF ′, respectively.

Then, the dynamic-programming scheme (F , (P ′F )F∈F , (RF,F ′)F∈F∗,F ′∈F ) de-

fined by

P ′e := P{e} = Pe

for all e ∈ E, and

P ′F := RF

14

Page 15: Embedding Complexity A New Divide Conquer Approach to ... · (our version of) Steiner’s problem for (hyper)graphs of bounded treewidth. 2 A General Scheme for \Linearizing" Dis-crete

as well as

RF,F ′ := {(ρ, ρ′) ∈ P ′F × P ′

F ′

∣ ρF ′ = ρ′F ′}

for all F ∈ F∗ and F ′ ∈ F (with ρ′F ′ := πe in case F ′ = {e} and ρ′ = πe,

of course) is easily checked to be a dynamic-programming scheme for R of

the form described in (4). Conversely, if such a scheme for R of the form

(F , (PF )F∈F , (RF,F ′)F∈F∗,F ′∈F ) is given, the scheme (F , (PF )F∈F , (R′F )F∈F∗)

defined by

R′F := {(πF , (πF ′)F ′∈F ) ∈ PF ×

F ′∈F

PF ′

∣ (πF , πF ′) ∈ RF,F ′ for every F ′ ∈ F}

for every F ∈ F ∗ is a scheme for R of the form considered originally.

5 The Steiner problem

Recall that, given any set X, the set of all subsets of X — also called the

power set of X — is denoted by P(X), and the set of all non-empty subsets

of X by P∗(X).

We consider a finite (hyper)graph H = (V,E) specified in terms of a non-

empty finite set V = VH , called its vertex set, and a collection E ⊆ P∗(V )

of non-empty subsets of V , called its edge set. Given any subset A ⊆ V of

V with A ⊆⋃

e∈E e and any map s : E → R≥0, the Steiner problem relative

to H, A, and s is then to determine a subset F ⊆ E such that

• A is contained in the subset⋃

F :=⋃

e∈F e of V ,

• the set system F is relatively connected, i.e. F1, F2 ⊆ F , F = F1 ∪ F2,

and⋃

F1 ∩⋃

F2 = ∅ implies F1 = ∅ or F2 = ∅, and

• s(F ) :=∑

f∈F

s(f) is as small as possible relative to the above two con-

ditions.

Originally formulated by Hakimi [16] in 1971, Steiner’s problem for graphs

has attracted considerable attention (reference books are [7, 17], an annotated

15

Page 16: Embedding Complexity A New Divide Conquer Approach to ... · (our version of) Steiner’s problem for (hyper)graphs of bounded treewidth. 2 A General Scheme for \Linearizing" Dis-crete

bibliography can be found in [20]). In particular, Steiner’s problem for graphs

is well known to belong to the famous class of NP-complete problems [18].

Algorithms for solving the problem that are either exponential with respect

to #A and polynomial with respect to #(V − A) or, conversely, polynomial

with respect to #A and exponential with respect to #(V −A) can be found

in [12, 19].

To rephrase Steiner’s problem so that it can be treated in the recursive

fashion described in the previous sections, some conceptual effort is unfortu-

nately unavoidable. More precisely, we have to consider the following more

general problem: Suppose that – instead of a single map s := E → R≥0 – we

are given a family of maps

se : Pe := P(P∗(e)) → R (e ∈ E)

that associate, to any collection πe ⊆ P∗(e) of non-empty subsets of e (in-

cluding the empty collection), a certain weight se(πe) ∈ R. Then, the general

Steiner problem is to find a family π = (πe)e∈E of such collections πe ⊆ P∗(e)

of non-empty subsets of e such that

(i) the set system⋃

π =⋃

e∈E πe ⊆ P∗(V ) is relatively connected, and

(ii) the sum s(π) =∑

e∈E se(πe) is as small as possible.

This problem contains Steiner’s problem for graphs as a special case:

Consider as above a subset A ⊆⋃

E ⊆ V and a map s from E into R≥0,

assume — without loss of generality — that #e > 1 holds for all e ∈ E, and

define the weight s′e(πe) for each e ∈ E and πe ⊆ P∗(e) by

s′e(πe) :=

s(e) in case πe = {e},

0 in case πe = {{v}∣

∣ v ∈ A ∩ e},

∞ else.

Then, there is obviously a one-to-one correspondence between subsets F of

E and families π = (πe)e∈E ∈∏

e∈E Pe with s′(π) =∑

e∈E s′e(πe) <∞, given

16

Page 17: Embedding Complexity A New Divide Conquer Approach to ... · (our version of) Steiner’s problem for (hyper)graphs of bounded treewidth. 2 A General Scheme for \Linearizing" Dis-crete

by associating to any F ⊆ E the family πF = (πFe )e∈E defined by

πFe :=

{

{e} if e ∈ F,

{{v}∣

∣ v ∈ A ∩ e} else.

Moreover, we have

s′(πF ) =∑

e∈E

s′(e) =∑

e∈E,πe={e}

s(e) =∑

f∈F

s(f) = s(F )

for any such family π = πF = (πFe )e∈E . Similarly, we have A ∩ e ⊆

πFe for

each e ∈ E and, therefore,

A = A ∩⋃

E ⊆⋃

e∈E

(⋃

πFe ).

Moreover, the set system⋃

πF =⋃

e∈E πFe ⊆ P∗(V ) is relatively connected

if and only if the corresponding subset F ⊆ E is relatively connected and A

is contained in⋃

F =⋃

e∈F e. Consequently, given the hypergraph (V,E),

the solutions of the Steiner problem associated with A ⊆ V and s : E → R≥0

correspond in a one-to-one way to the solutions of the specific case of the

more general problem we have specified above.

In the next section, we will explain how the general Steiner problem can be

treated recursively in terms of an appropriate dynamic-programming scheme

as discussed in Section 4.

6 The Divide & Conquer Approach for the

General Steiner problem

We now explain how to solve the general Steiner problem by means of the

Divide & Conquer approach discussed in Sections 3 and 4.

We begin with some definitions. Given a a finite hypergraph H = (V,E)

and a set system F ⊆ P∗(V ), we denote the set all non-empty minimal

elements in

{A ⊆⋃

F∣

∣ A ∩ f ∈ {∅, f} for all f ∈ F}

17

Page 18: Embedding Complexity A New Divide Conquer Approach to ... · (our version of) Steiner’s problem for (hyper)graphs of bounded treewidth. 2 A General Scheme for \Linearizing" Dis-crete

by π0(F ). We call the subsets of V in π0(F ) the connected components of the

set system F (or of the hypergraph H in case F = E). In case π0(F ) = {V }

holds, the set system F (or the hypergraph H in case F = E) is also called a

connected set system (or hypergraph, respectively). In case π0(F ) = F holds

for some set system F ⊆ P∗(V ), we call F a partial partition of V .

Now, assume that we are given

• a finite connected hypergraph H = (V,E) with e 6= ∅ for all e ∈ E,

• a family of maps se : Pe = P(P∗(e)) → R (e ∈ E) encoding local

scores, and

• a binary hierarchy F of subsets of E.

Our goal is to compute min(s(π)) = min(∑

e∈E se(πe)) where π = (πe)e∈E

ranges over all families in

R(E) := {π = (πe)e∈E ∈∏

e∈E

Pe

e∈E

πe is relatively connected}.

In order to apply the Divide & Conquer strategy outlined in Section 3,

we need to define the sets PF and RF for each F ∈ F ∗. We first define PF :

Denote the set of all partial partitions of a subset U of V by Ppartial(U). For

each subset F of E (whether in F or not), put

∂F = ∂EF :=⋃

F ∩⋃

(E − F ),

and ∂e := ∂{e} for each e ∈ E. This allows us to define

PF := Ppartial(∂F ) ∪ {•F}

for every F in F ∗ where “•F ” is an additional element not related to any of the

elements in V or E which will be used to indicate that a family π = (πe)e∈E

of set systems πe ⊆ P∗(e) has the property that the set system

π(F ) :=⋃

e∈F

πe

18

Page 19: Embedding Complexity A New Divide Conquer Approach to ... · (our version of) Steiner’s problem for (hyper)graphs of bounded treewidth. 2 A General Scheme for \Linearizing" Dis-crete

is non-empty and relatively connected while⋃

π(F ) ∩ ∂F = ∅ holds. Note

that ∂F 6= ∅ holds for all F ⊆ E with ∅ 6= F 6= E in view of the connectedness

of H while ∂E = ∅ and, hence, PE = {∅, •E} holds in case F := E.

Also, given a collection A of non-empty subsets of V and a subset U of

V , put

A∣

U:= {A ∩ U |A ∈ A and A ∩ U 6= ∅}.

We now define the relation RF ⊆ P F = PF ×∏

F ′∈F PF ′ for any F ∈ F∗

with, say, F = {F1, F2} to consist of all (πF , πF1, πF2

) ∈ PF × PF1× PF2

for

which exactly one of the following assertions holds:

(R1) πF = •F , F1 ∈ F∗ and πF1= •F1

, πF2= ∅;

(R2) πF = •F , πF1= ∅, F2 ∈ F∗ and πF2

= •F2;

(R3) πF = •F , πF16= •F1

, πF26= •F2

, #π0(πF1∪ πF2

) = 1,

and ∂F ∩⋃

(πF1∪ πF2

) = ∅;

(R4) πF 6= •F , πF16= •F1

, πF26= •F2

, π0(πF1∪ πF2

)|∂F = πF ,

and #π0(πF1∪ πF2

) = #πF .

Using these definitions and notations, we can now state the main result

of this paper:

Theorem 6.1 The triple

T (F) := (F , (PF )F∈F , (RF )F∈F∗)

is a dynamic-programming scheme for R(E).

More precisely, the following holds: Given a family π = (πe)e∈E in∏

e∈E Pe,

the corresponding set system π(E) =⋃

e∈E πe is the empty set system if and

only if there exists a family (πF )F∈F in R(T (F)) ⊆∏

F∈F PF with π{e} = πe

for all e ∈ E and πE = ∅ while π(E) is relatively connected and non-empty

if and only if there exists a family (πF )F∈F ∈ R(T (F)) with π{e} = πe for all

e ∈ E and πE = •E.

19

Page 20: Embedding Complexity A New Divide Conquer Approach to ... · (our version of) Steiner’s problem for (hyper)graphs of bounded treewidth. 2 A General Scheme for \Linearizing" Dis-crete

Proof: Suppose that (πe)e∈E is a family in∏

e∈E Pe. If π0(E) = ∅, then there

exists indeed a family (πF )F∈F ∈ R(T (F)) with π{e} = πe for all e ∈ E and

πE = ∅: In view of (R1), simply define πF := ∅ for all F ∈ F . Conversely if

there exists such a family (πF )F∈F ∈ R(T (F)) with π{e} = πe for all e ∈ E

and πE = ∅, then π0(E) = ∅ follows immediately from the definition of the

relations RF (F ∈ F∗) noting that F ∈ F ∗, F = {F1, F2}, and πF = ∅ implies

πF1= πF2

= ∅ in view of (R4).

If there exists some family (πF )F∈F in R(T (F)) with π{e} = πe and πE =

•E, then the definition of the relations RF (F ∈ F∗) imply that there must

exist a unique subset F0 ∈ F∗ satisfying the following conditions:

(1) {F ∈ F∗∣

∣ πF = •F} = FF0⊆ := {F ∈ F∣

∣ F0 ⊆ F},

(2) πF = ∅ for all F ∈ F with F0 ∩ F = ∅,

(3) #π0(⋃

F ′∈F0

πF ′) = 1,

(4) ∂F0 ∩⋃

F ′∈F0

πF ′ = ∅,

(5) π0(⋃

F ′∈F

πF ′)∣

∂F= πF and #π0(

F ′∈F

πF ′) = #πF holds for all F in

F∗$F0

:= {F ∈ F∗∣

∣ F $ F0}.

We have to show that #π0(π(E)) = #π0(π(F0)) = 1 holds. To this end,

we use the following fact that has been established in [8]: Given any family

ψ = (ψF )F∈F⊆F0∈

F∈F⊆F0

PF with π0(⋃

F ′∈F ψF ′)∣

∂F= ψF for all F ∈ F∗

⊆F0

(and F⊆F0:= {F ∈ F

∣ F ⊆ F0}, of course), the identity

#π0(⋃

e∈F0

ψ{e}) − #ψF0=

F∈F∗⊆F0

[#π0(⋃

F ′∈F

ψF ′) − #ψF ]

always holds. Applying this identity to the family ψ = (ψF )F∈F⊆F0defined

by

ψF :=

πF if F 6= F0,

∅ if F = F0,

20

Page 21: Embedding Complexity A New Divide Conquer Approach to ... · (our version of) Steiner’s problem for (hyper)graphs of bounded treewidth. 2 A General Scheme for \Linearizing" Dis-crete

our claim follows readily: Indeed, the above identity together with (2) and

(5) implies immediately that

#π0(π(E)) = #π0(π(F0)) = #π0(⋃

e∈F0

ψ{e}) = #π0(⋃

e∈F0

ψ{e}) − #ψF0

=∑

F∈F∗$F0

[#π0(⋃

F ′∈F

ψF ′) − #ψF ] = #π0(⋃

F ′∈F0

πF ′)

+∑

F∈F∗$F0

[#π0(⋃

F ′∈F

πF ′) − #πF ] = 1 +∑

F∈F∗$F0

0 = 1

must hold, exactly as claimed.

Conversely, assume that #π0(π(E)) = 1 holds. We have to find a family

(πF )F∈F ∈ R(T (F)) with π{e} = πe for all e ∈ E and πE = •E. To this end,

let us first recall from [8] that, given any family ψ = (ψe)e∈E in∏

e∈E Pe,

the associated canonical extension ψ∗ = (ψ∗F )F∈F ∈

F∈F PF defined by

ψ∗{e} := ψe for every e ∈ E and ψ∗

F := π0(⋃

e∈F ψe)∣

∂Ffor every F ∈ F ∗

satisfies the identity

ψ∗F = π0(

F ′∈F

ψ∗F ′)

∂F

for every F ∈ F ∗ which in turn, using the main result from [8] quoted already

above, implies that

#π0(⋃

e∈E

ψ∗e) =

F∈F∗

[#π0(⋃

F ′∈F

ψ∗F ′) − #ψ∗

F ]

must hold for any such family ψ and its extension ψ∗. Consequently, applying

this fact to the family π∗ = (π∗F ) ∈

F∈F∗ PF defined by π∗F := π0(π(F ))

∂F

for each F ∈ F ∗ and π∗{e} := πe for each e ∈ E, our assumption #π0(π(E)) =

1 together with the obvious fact that

#π0(⋃

F ′∈F

π∗F ′) ≥ #π0(

F ′∈F

ψ∗F ′)

∂F= #π∗

F

must hold for every F ∈ F ∗, it follows that there must exist a unique F0 ∈ F∗

with

#π0(⋃

F ′∈F0

π∗F ′) = 1 + #π∗

F0

21

Page 22: Embedding Complexity A New Divide Conquer Approach to ... · (our version of) Steiner’s problem for (hyper)graphs of bounded treewidth. 2 A General Scheme for \Linearizing" Dis-crete

while

#π0(⋃

F ′∈F

π∗F ′) = #π∗

F

must hold for all other F ∈ F ∗. In view of #π∗E = 0, this implies immediately

by induction with respect to #FF⊆ = #{F ′ ∈ F∣

∣ F ⊆ F ′} that π∗F = ∅

must hold for all F ∈ F that are not properly contained in F0. In particular,

πe = ∅ must hold for every e ∈ E − F0, and we must have

#π0(⋃

F ′∈F0

π∗F ′) = 1.

Consequently, the family (πF )F∈F ∈∏

F∈F PF defined by

πF :=

•F if F0 ⊆ F,

π∗F else

is an extension of π which is contained in R(T (F)) as required.

Remark 6.2 More generally, the results in [8] quoted above imply that,

given any subset U ⊆ V and family π = (πe)e∈E in∏

e∈E Pe, the obviously

unique family

(πUF , k

UF )F∈F ∈

{e}∈F

(P∗(e) × {0}) ×∏

F∈F∗

(Ppartial(U ∪ ∂F ) × N0)

defined recursively by

(U1) πU{e} = πe (and kU

{e} = 0) for every e ∈ E

and

(U2) πUF = π0(

F ′∈F πUF ′)

U∪∂Fand kU

F = #π0(⋃

F ′∈F πUF ′)−#πU

F +∑

F ′∈F kUF ′

for every F ∈ F ∗

22

Page 23: Embedding Complexity A New Divide Conquer Approach to ... · (our version of) Steiner’s problem for (hyper)graphs of bounded treewidth. 2 A General Scheme for \Linearizing" Dis-crete

satisfies the identities

#π0(⋃

e∈E

πe) = #πUE + kU

E

and

πUE = π0(

e∈E

πe)∣

U.

Thus, we have

#π0(⋃

e∈E

πe) ≤ 1 ⇐⇒ k∅E ≤ 1

⇐⇒ k∅F ≤ 1 and π∅F = ∅ in case k∅F = 1 for all F ∈ F

which in turn holds if and only if the family (πF )F∈F defined by

πF :=

π∅F if k∅F = 0,

•F if k∅F 6= 0

is contained in R(T (F)), while the existence of a family (πF )F∈F ∈ R(T (F))

with π{e} = πe for all e ∈ E implies conversely that the family (π∅F , k

∅F )F∈F

satisfies the equation

(π∅F , k

∅F ) =

(πF , 0) if πF 6= •F ,

(∅, 1) if πF = •F

for every F ∈ F . Clearly, this provides another proof of Theorem 6.1. More

generally, we can use the families (πUF , k

UF )F∈F as constructed above to design

a Divide & Conquer algorithm to search for families (πe)e∈E ∈∏

Pe that

minimize (or maximize) the sum∑

e∈E se(πe) while #π0(⋃

e∈E πe) ≤ k (or

= k) holds for some fixed k and π0(⋃

e∈E πe)∣

Ucoincides with one of a

pregiven collection of partial partitions of U .

In particular, within the standard context of Steiner minimal trees de-

scribed in Section 5, we can use our Divide & Conquer approach to determine

“Steiner minimal k-forests” for any k ∈ N, i.e. subsets F contained in the

set E of edges of a given graph G = (V,E) with vertex set V such that a

23

Page 24: Embedding Complexity A New Divide Conquer Approach to ... · (our version of) Steiner’s problem for (hyper)graphs of bounded treewidth. 2 A General Scheme for \Linearizing" Dis-crete

given subset A of V is contained in ∪F =⋃

e∈F e, #π0(∪F ) = k holds, and

s(F ) =∑

e∈F s(e) is as small as possible relative to these two conditions for

some pregiven positive weight function s : E → R>0.

Remark 6.3 Defining the star-treewidth tw∗(H) of a finite hypergraph H =

(V,E) as the minimal number k ∈ N for which there exists some binary

hierarchy F ⊆ P(E) with #∂(F ) ≤ k for all F ∈ F , then – except for the

computation of the maps

se : Pe → R

which involves Pe = P(P∗(e)) for each e ∈ E – the number of computational

steps necessary for computing optimal families

(πe)e∈E ∈∏

e∈E

Pe

for any given weighting scheme (se : Pe → R)e∈E is bounded essentially by

(#E − 1) · ppartial(tw∗(H))3,

with ppartial(k) denoting #Ppartial(X) for a set X of cardinality k.

In a forthcoming paper, we will discuss the relation between (the standard

concept of) treewidth, the star-treewidth, and the embedding complexity of

subsets of product sets as defined in Section 4.

References

[1] H. L. Bodlaender, A tourist guide through treewidth, Acta Cybernetica,

11 1993, 1-21.

[2] H. L. Bodlaender, A tourist guide through treewidth (modified version),

In: J. Dassow and A. Kelemenova, editors, Developments in Theoreti-

cal Computer Science: Proceedings of the 7th International Meeting of

Young Computer Scientists, Smolenice, 16 - 20 November 1992, Gordon

and Breach Science Publishers, 1994, p. 1-20.

24

Page 25: Embedding Complexity A New Divide Conquer Approach to ... · (our version of) Steiner’s problem for (hyper)graphs of bounded treewidth. 2 A General Scheme for \Linearizing" Dis-crete

[3] H. L. Bodlaender, A partial k-arboretum of graphs with bounded

treewidth, Theoretical Computer Science, 209 1998, 1-45.

[4] H. L.Bodlaender, Treewidth: Algorithmic techniques and results, In:

Proceedings 22nd International Symposium on Mathematical Founda-

tions of Computer Science, Igor Privara and Peter Ruzicka (editors),

MFCS’97, Springer Lecture Notes in Computer Science, 1295 (1997)

29-36.

[5] S. Boecker, A. Dress, A note on maximal hierarchies, Adv. Math. 151,

2000, 270-282.

[6] A. Borissenko, A. Dress, G. Weiller, Minimum entropy trees - a new

heresy in phylogenetic tree reconstruction, manuscript, Bielefeld, 2001.

[7] D. Cieslik, Steiner Minimal Trees, Kluwer Academic Publishers, 1998.

[8] D. Cieslik, A. Dress, K. T. Huber, V. Moulton Connectivity calculus

and the Steiner problem, in preparation.

[9] A. Dress, Computing spin-glass Hamiltonians, manuscript, Bielefeld,

1986.

[10] A. Dress, On the computational complexity of composite systems, In:

Proceedings of the IX. Sitges Conference in Theoret. Physics, Sitges

1986, Springer Lecture Notes 268, 1987, 377-388.

[11] A. Dress and M. Kruger: Parsimonious phylogenetic trees in metric

spaces and simulated annealing. Adv. in Appl.Math. 8, 1987, 8-37.

[12] S. E. Dreyfus, R. A. Wagner. The Steiner Problem in Graphs. Networks,

1 1972, 195-207.

[13] J. S. Farris, A. G. Kluge, Parsimony and history, Syst Biol 46 215-218,

1997.

25

Page 26: Embedding Complexity A New Divide Conquer Approach to ... · (our version of) Steiner’s problem for (hyper)graphs of bounded treewidth. 2 A General Scheme for \Linearizing" Dis-crete

[14] M. Garey, D. Johnson, Computers and Intractability: A Guide to the

Theory of NP-Completeness, W. H. Freeman and Company, 1979.

[15] D. Gusfield, Algorithms on Strings Trees and Sequences, Cambridge

University Press, 1997.

[16] S. B. Hakimi. Steiner’s Problem in Graphs and its Implications, Net-

works, 1, 1971, 113-133.

[17] F. K. Hwang, D. S. Richards, P. Winter, The Steiner Tree Problem,

North-Holland, 1992.

[18] R. M. Karp., Reducibility among combinatorial problems, In: R.E.

Miller and J.W. Thatcher, editors, Complexity of Computer Compu-

tations, pages 85–103, New York, 1962.

[19] E. L. Lawler, Combinatorial Optimization Networks and Matroids, Holt,

Rinehart and Winston, New York, 1976.

[20] S. Raghavan, T.L. Magnanti, Network Connectivity, In: Annotated

Bibliographies in Combinatorial Optimization, ed. by M. Dell’Arnico,

F. Maffioli, S. Martello, John Wiley & Sons, 1997, 335 - 354.

[21] J.Setubal, J.Meidanis, Introduction to Computational Molecular Biol-

ogy, PWS Publishing Company, 1997.

[22] M. Waterman, Introduction to Computational Biology, Chapman and

Hall, 1995.

26