362
Chapter
24.
Recognition
of
Hypercube Embeddable Metrics
(24.2.9)
"ES
.,ET
for some positive integers
a."
(3".
From
Theorem
22.0.12, we know
that
ds
and
dT
are
h-rigid
if
lSI
is
big enough with respect
to
ma.x"ES
a",
and
if
ITI
is big enough with
respect
to
ma.x"'ET
(3",.
So, theoretically, one could use
the
same technique
as
the
one used
in
Proposition
24.2.4 for
studying
hypercube embeddability
of
these metrics. However,
a precise analysis
of
the
structure
of
the
distance
matrix
of
such metrics seems
to
be
technically much more involved
than
in
the
case considered above where all
a""
(3"
are
equal
to
1-
The
next
simplest case
to
consider after
the
case
of
generalized
bipartite
metrics
would
be
the
class
of
metrics d for which
d(x,y)
4 for x #
yES
and
d(x,y)
= 2
for
x #
yET
(i.e., all
a,,'s
are
equal
to
2
and
all
(3,,'s
to
1).
One
can characterize
h-embeddability
of
these metrics by a similar reasoning as was applied
to
generalized
bipartite
metrics
and,
as
a consequence, recognize
them
in polynomial time. Indeed,
the
metric
41
n
is rigid for n 3
and
n
2:
9 and
41n
has exactly three Z+-realizations: its
star
realization
and
two special ones, for each n E
{4,5,6,
7,8}
(d.
Proposition 23.4.4).
Another
relatively simple case
is
when
one
of
the
sets S
or
T is small.
Deza
and
Laurent
[1995a] give a complete characterization
of
the
hypercube embeddable metrics
satisfying (24.2.9)
in
the
case
ITI
::;
2.
24.3
Metrics
with
Few
Values
In
this section,
we
consider the distances taking two values with distinct parities,
and the distances taking three values, not all even and one
of
them
being
the
sum of
the
other two. Namely, given
a,
bE
Z+,
we
consider the following classes
of
distances
d:
(a) d takes
the
values
2a,
b,
with b odd,
(b)
d takes
the
values
a,
b,
a +
b,
with
a,
b odd,
(c)
d takes
the
values
2a,
b,
2a
+
b,
with b odd and b <
2a,
and
(d)
d takes
the
values
2a,
b,
2a
+
b,
with b odd and
2a
<
b.
Laurent
[1994]
shows
that
the hypercube embeddability problem can be solved
in polynomial time within each
of
these classes.
Theorem
24.3.1.
For fixed
a,
b,
the hypercube embeddability problem within
each
of
the classes (a), (b), (c), (d)
can
be
solved in polynomial time.
We
sketch
the
proof
of
Theorem 24.3.1 in the rest of the section.
It
turns
out
that
each
of
the classes (a), (b), (c), (d) has
to
be treated separately.
The
instance a b = 1 of
the
class (c) was considered by Avis [1990j, who showed
that
the
hypercube embeddable distances with range of
,,-alues
{I,
2,
3}
can be
recognized in polynomial time. The prooffor the class (c) is essentially
the
same
as in
the
subcase a = b = L
The basic steps
of
the
proof are as follows. Let d be a distance on Vn from one
of
the
classes (a), (b), (c), or (d). One first checks whether d satisfies
the
parity
condition (24.1.1).
If
not, then d
is
not hypercube embeddable. Otherwise, let