Syntax Directed Generation of Tests for Processors of Regular Languages

  • Борис Константинович Мартыненко SPbSU, St. Petersburg, Russia
Keywords: Chinese Postman Problem, Directed graph, Finite processor, Line graph, Regular expression, N. Wirth’s syntactic diagrams, Test of minimal length

Abstract

A method of generation of tests of minimum length for the purpose of testing of syntax directed finite processors recognizing regular languages is described. A criterion of the test cases selection is introduced that represents the requested level of coverage for the acres of the graph that corresponds to the regular expression for which the processor has been constructed. Since the graph acres are labeled with semantic labels, the criterion defines the degree of interaction between these semantics, so such a test must be built that the criterion conditions are met. The method is based on the algorithm of the solution of the Chinese Postman Problem on a directed graph, that is built for the input regular expression that defines the language recognized by the finite processor.

Author Biography

Борис Константинович Мартыненко, SPbSU, St. Petersburg, Russia

Boris K. Martynenko: Doctor of Science, professor of Computer Science, Saint Petersburg state university.

References

[1] N. Wirth, “The Programming Language Pascal,” Acta Informatica, vol. 1, 1971, pp. 35–63; doi:10.1007/BF00264291
[2] B. Martynenko, “Towards the 80th Anniversary of N. Wirth: Wirth’s Syntactic Charts in the SYNTAXTechnology,” in 3rd International Conference on Computer Technology in Russia and in the Former Soviet (SoRuCom 2014), Kazan, Russia, 13-17 Oct. 2014, pp. 199–206; doi: 10.1109/SoRuCom.2014.52
[3] B. K. Martynenko, Sintaksicheski upravlyaemaya obrabotka dannykh [Syntactically managed data processing]. 2nd ed., Saint-Petersburg, Russia: SPbSU, 2004 (in Russian).
[4] J. R. Evanas and E. Minieka, Optimization Algorithms for Networks and Graphs, 2nd ed., New York, NY, USA: Marcel Dekker, 1992.
[5] J. E. Hopcroft and J. D. Ullman, Formal languages and their relation to automata, Reading, MA: Addison Wesley, 1969.
[6] A. P. Ershova, S. S. Lavrova, and M.R. Shura-Bura eds., Algoritmicheskii yazyk Algol-60. Peresmotrennoe soobshchenie. [Revised Report on the Algorithmic Language Algol 60], Moscow, USSR: Mir, 1965 (in Russian).
[7] F. Harary, R. Z. Norman, and D. Cartwright, Structural Models: An Introduction to the Theory of Directed Graphs, Wiley, 1966.
Published
2017-06-04
How to Cite
Мартыненко, Б. К. (2017). Syntax Directed Generation of Tests for Processors of Regular Languages. Computer Tools in Education, (5), 17-45. Retrieved from http://cte.eltech.ru/ojs/index.php/kio/article/view/1411
Section
Computer science