GENERAL
PROPERTIES
OF
ALGORITHMS
309
a
>
0,
6
>
0;
the rules of arithmetic apply to
all
numbers; and the
search rules hold for any finite labyrinth, however intricate.
In mathematics one considers
a
series
of problems
of
a
specific
kind to be solved when an algorithm
has
been found (the finding of
such algorithms
is
really the object of mathematics). But in the
absence of an algorithm applicable to
aEZ
problems of
a
given type,
one
is
forced to devise
a
special procedure valid in some but not
other
cases.
However, such
a
procedure
is
not an algorithm.
For
instance, there
is
no algorithm for finding out whether the solution
of equation
X”
+
y”
=
2“
(12.1)
is
an integer at any
iz
=
1,
2,
3,4,
. .
..
This problem may neverthe-
less
be
solved for particular values of
n.
Thus, for
n
=
2,
we
can
easily find three numbers
(x
=
3,
y
=
4,
z
=
5)
satisfying Eq.
(12.1).
And it may be proved that Eq.
(12.1)
has no integer solutions for
n
=
3.
However, this proof cannot be extended to other values of
n.
(c)
Efficacy.
This
property, sometimes called
the
directionality
of an algorithm, means that application
of
an algorithmic procedure
to any problem of
a
given kindwill
lead
to
a
“stop” instruction in
a
finite number of steps, at
which
point one must be able to find the
required solution. Thus, no matter now intricate the (finite) labyrinth,
the search algorithm must lead to
a
“stop” instruction in
a
finite
number of steps. The stop
will
occur either at
F
or
at
A,
enabling
us to decide whether
F
is
accessible
or
not. Again, the use of the
Euclidean algorithm with any two numbers
a
>,
1,
b>,
1
will
sooner
or
later
lead to
a
“stop” instruction,
at
which point one can deter-
mine the value of the greatest common divisor. However, nothing
prevents us from using the Euclidean algorithm
with
ah0
and
b>O
,
or
with
any pair of integers (positive
or
negative). There
is
no ambiguity
at
any step of the algorithm, but the procedure may
not come to
a
stop.
For
example,
if
a
=
0,
6
=
4,
our sequence of
instructions
(1-4)
gives the pairs
0,
4;
0,
4;
0,
4..
.
and
so
on
ad
infiniturn.
The same
will
happen with the pair
a
=
-2,
6
=
6.
Thus, the concept of efficacy
of
an algorithm naturally
leads
to
the concept of
its
range
of
application.
The range of application
is
the largest range of initial data for which the algorithm
will
yield
results; in other words,
if
the problemis stated within the range of
application, then the algorithm
will
work up the (given) conditions
into
a
solution, after which the procedure
will
come to a stop; if,
however, the problem conditions
are
outside this range, then either
there
will
be no stop,
or
there
will
be
a
stop but
we
shall not be able
to obtain
a
result. Thus, the range of application of the Euclidean