not reach the worst case, and we believe that the com-
parison of the results of the two parsing algorithms for
an average behavior will be more appropriate. On the
other hand, even if the EA uses a linear fitness func-
tion, the number of generations multiplied with the
number of individuals in the population could lead to
a significant volume of computations while solving
the parsing problem.
To make those comparisons, we used a rather em-
pirical method to measure the number of computa-
tions. In every cycle we incremented a global vari-
able called computations. We estimated the num-
ber of computations for both algorithms using the
same input string. One may argue that other com-
paring methods could be considered (e.g., measuring
the necessary time until finding the solution) but since
we made the implementations in two different pro-
gramming environments (VBA and Java), the running
time would have been influenced by other aspects, not
only by the complexity of the algorithms. By tak-
ing again the two input samples “aaaabbbaaaaabbba”
and “aaaabbbabbaaaabbbabb” having the length 16
and 20, respectively, we needed for the classical TAG
parsing algorithm only one run to determine the num-
ber of computations for each input example, while
for EATAG
P
we obtained the average result after ten
tests. All the results are synthesized in Table 2.
5 CONCLUSIONS AND FUTURE
WORK
We proposed an evolutionary algorithm for tree ad-
joining grammars’ parsing called EATAG
P
. After
some preliminary tests, we observed that the classi-
cal tree adjoining grammar parsing algorithm needs
approximatively three times more computations than
our algorithm to solve the same problem. Maybe it is
worthy to do more tests and further investigate under
what circumstances it performs better, if a conjecture
can be outlined or what improvements can be added.
We believe that our algorithm can be a turning point
in developing new models for knowledge base rep-
resentation systems or automatic text summarization,
for example.
As a drawback, for some examples EATAG
P
will
not be able to say that there is no solution. We could
have some doubts that we did not let the algorithm to
run enough generations, but in any case, we could run
tests for other examples, and we could approximate
the requested number of generations required to find
a solution for certain lengths of the input strings. This
will be done in the future.
Another intriguing aspect of EATAG
P
is that if the
grammar is ambiguous, we could find different pars-
ings for different individuals in the population during
one run for the same input string.
To conclude, we believe that our research could be
a starting point for developing new and more efficient
TAG parsing algorithms.
ACKNOWLEDGEMENTS
The work of A.H. Dediu was supported by Rovira i
Virgili University under the research program “Ra-
mon y Cajal” ref. 2002Cajal-BURV4. Many thanks to
the anonymous reviewers who encourage us and help
us improve the clarity and exposition of the present
material.
REFERENCES
B¨ack, T. (1996). Evolutionary algorithms in theory and
practice: evolution strategies, evolutionary program-
ming, genetic algorithms. Oxford University Press.
Castellanos, J., Mart´ın-Vide, C., Mitrana, V., and Sempere,
J. M. (2001). Solving np-complete problems with net-
works of evolutionary processors. In IWANN ’01, 6th
International Work-Conference on Artificial and Nat-
ural Neural Networks. Springer.
Csuhaj-Varj´u, E., Mart´ın-Vide, C., and Mitrana, V. (2005).
Hybrid networks of evolutionary processors are com-
putationally complete. Acta Inf., 41(4):257–272.
Dediu, A. H. and Grando, M. A. (2005). Simulating evo-
lutionary algorithms with eco-grammar systems. In
IWINAC’05, 1st International Work-conference on the
Interplay between Natural and Artificial Computa-
tion. Springer.
Fogel, L. (1962). Autonomous automata. Industrial Re-
search, 4:14–19.
Fogel, L. J., Owens, A. J., and Walsh, M. J. (1966). Arti-
ficial Intelligence through Simulated Evolution. The
University of Michigan Press, New York.
G´ecseg, F. and Steinby, M. (1997). Tree languages. In Sa-
lomaa, A. and Rozenberg, G., editors, Handbook of
formal languages, Vol. 3: beyond words, pages 1–68.
Springer, New York.
Holland, J. (1975). Adaptation in Natural and Artificial Sys-
tems. The University of Michigan Press.
Holland, J. H. (1962). Outline for a logical theory of adap-
tive systems. J. of the ACM, 9(3):297–314.
Hopcroft, J. E. and Ullman, J. D. (1990). Introduction
To Automata Theory, Languages, And Computation.
Addison-Wesley Longman Publishing Co., Inc.
Joshi, A. and Schabes, Y. (1997). Tree-adjoining grammars.
In Rozenberg, G. and Salomaa, A., editors, Handbook
of Formal Languages, Vol. 3: Beyond Words, pages
69–120. Springer, New York.
ICAART 2009 - International Conference on Agents and Artificial Intelligence
638