• DocumentCode
    1468881
  • Title

    Improving Grammar Inference by a Memetic Algorithm

  • Author

    Hrncic, Dejan ; Mernik, Marjan ; Bryant, Barrett R.

  • Author_Institution
    Fac. of Electr. Eng. & Comput. Sci., Univ. of Maribor, Maribor, Slovenia
  • Volume
    42
  • Issue
    5
  • fYear
    2012
  • Firstpage
    692
  • Lastpage
    703
  • Abstract
    A memetic algorithm, a novel approach for solving NP-hard problems, has been applied in this paper for grammatical inference in the field of domain-specific languages (DSLs). DSLs are often designed by domain experts who have no knowledge about the syntax and semantics of programming languages. However, they are able to write sample programs to accomplish their goals and illustrate the features of their language. Grammatical inference is a technique to infer a context-free grammar from a set of positive (and negative) samples. This paper shows that grammatical inference may assist domain experts and software language engineers in developing DSLs by automatically producing a grammar, which describes a set of sample DSL programs. A memetic-algorithm-based tool is developed, which greatly improves results and robustness of the inference process.
  • Keywords
    computational complexity; context-free grammars; evolutionary computation; inference mechanisms; programming language semantics; DSL programs; NP-hard problems; context-free grammar; domain-specific languages; grammar inference; grammatical inference; memetic algorithm; programming language semantics; programming language syntax; Domain specific languages; Grammar; Inference algorithms; Machine learning; Memetics; Domain-specific languages (DSLs); grammatical inference; memetic algorithms (MAs);
  • fLanguage
    English
  • Journal_Title
    Systems, Man, and Cybernetics, Part C: Applications and Reviews, IEEE Transactions on
  • Publisher
    ieee
  • ISSN
    1094-6977
  • Type

    jour

  • DOI
    10.1109/TSMCC.2012.2186802
  • Filename
    6168851