68 2. Mutual Invertibility and Search
4. If i>l, then output x
0
...x
l
as the input x
0
...x
l
and stop; other-
wise, go to Step 2.
5. If i 0, go to Step 3; otherwise, prompt a failure information and
stop.
Algorithm 1 is a so-called backtracking. It is convenient to understand the
execution of this algorithm for an input, say s and y
0
...y
l
,bymeansofthe
tree T
M,s,y
0
...y
l
; the output x
0
...x
l
is the arc label sequence of a longest path
in T
M,s,y
0
...y
l
. To find one of the longest path in T
M,s,y
0
...y
l
, the algorithm
attempts to exhaust all possible paths from the root to leaves. Whenever the
level of a searched leaf is less than l+1, i.e., the path is not one of the longest,
the search process comes back until an arc which is not searched yet is met,
then the search process goes forward again. Whenever the level of a searched
leaf is l + 1, i.e., the path from the root to this leaf is the longest, the search
process finishes and the arc label sequence of this path is the output.
How do we evaluate search amounts or accurate lower bounds in worse
case or in average case of this algorithm? This is a rather difficult problem,
as the structure of the input-trees for general finite automata has not been
investigated yet except the case of finite automata discussed in the preceding
subsection and the case of C(M
1
,M
0
), where M
0
is linear and M
1
is weakly
invertible with delay 0. We point out that the quantity |I
M
β,s
| may be used
to evaluate a loose lower bound in worse case of the search amount. We use
thenumberofarcsinT
M,s,y
0
...y
l
passed in an execution of Algorithm 1 to
express the search amount of that execution. Let M be weakly invertible
with delay τ and τ l. Although the track of an execution of Algorithm 1
for an instance y
0
...y
l
is not clear for us, we may tentatively omit all parts
but the part corresponding to I
M
y
0
...y
l−τ
,s
in T
M,s,y
0
...y
l
.Itisevidentthatthe
minimal search amount is l +1 which can be reached by guessing x
0
,...,x
l
as
x
0
,...,x
l
, respectively. Meanwhile, in worse cases, the last guessed values of
x
0
,...,x
l−τ
are x
0
,...,x
l−τ
, respectively. The search amount in worse case
is at least l+|I
M
y
0
...y
l−τ
,s
|, as the search amount between two distinct elements
of I
M
y
0
...y
l−τ
,s
is at least 1. Therefore, if |I
M
y
0
...y
l−τ
,s
| is large enough, then the
exhausting search is very difficult.
Below we confine X and Y to F
m
and the automaton M in Algorithm 1
to the form
M = C(M
0
,D
X,r
1
,M
1
,D
X,r
2
,M
2
,...,M
τ−1
,D
X,r
τ
,M
τ
)
with 0 r
1
r
2
··· r
τ
m, and assume that M
i
= X, X, S
i
,δ
i
,λ
i
,
i =0, 1,...,τ are weakly invertible finite automata with delay 0 and that M
i
is (m − r
i+1
)-preservable, i =1,...,τ − 1.
We first discuss the case of l τ .Sincey
0
y
1
...y
l
∈ W
M
l+1,s
,thelevelof
T
M,s,y
0
...y
l
is l.SinceM is weakly invertible with delay τ ,itiseasytosee