Anti-unification for Unranked Terms and Hedges

被引:0
|
作者
Temur Kutsia
Jordi Levy
Mateu Villaret
机构
[1] Johannes Kepler University,Research Institute for Symbolic Computation (RISC)
[2] Artificial Intelligence Research Institute (IIIA),Departament d’Informàtica i Matemàtica Aplicada (IMA)
[3] Spanish Council for Scientific Research (CSIC),undefined
[4] Universitat de Girona (UdG),undefined
来源
关键词
Anti-unification; Generalization; Unranked terms; Hedges; Software clones;
D O I
暂无
中图分类号
学科分类号
摘要
We study anti-unification for unranked terms and hedges that may contain term and hedge variables. The anti-unification problem of two hedges \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}${\tilde{s}}_1$\end{document} and \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}${\tilde{s}}_2$\end{document} is concerned with finding their generalization, a hedge \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}${\tilde{q}}$\end{document} such that both \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}${\tilde{s}}_1$\end{document} and \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}${\tilde{s}}_2$\end{document} are instances of \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}${\tilde{q}}$\end{document} under some substitutions. Hedge variables help to fill in gaps in generalizations, while term variables abstract single (sub)terms with different top function symbols. First, we design a complete and minimal algorithm to compute least general generalizations. Then, we improve the efficiency of the algorithm by restricting possible alternatives permitted in the generalizations. The restrictions are imposed with the help of a rigidity function, which is a parameter in the improved algorithm and selects certain common subsequences from the hedges to be generalized. The obtained rigid anti-unification algorithm is further made more precise by permitting combination of hedge and term variables in generalizations. Finally, we indicate a possible application of the algorithm in software engineering.
引用
收藏
页码:155 / 190
页数:35
相关论文
共 50 条
  • [1] Anti-Unification for Unranked Terms and Hedges
    Kutsia, Temur
    Levy, Jordi
    Villaret, Mateu
    22ND INTERNATIONAL CONFERENCE ON REWRITING TECHNIQUES AND APPLICATIONS (RTA'11), 2011, 10 : 219 - 234
  • [2] Anti-unification for Unranked Terms and Hedges
    Kutsia, Temur
    Levy, Jordi
    Villaret, Mateu
    JOURNAL OF AUTOMATED REASONING, 2014, 52 (02) : 155 - 190
  • [3] Unranked second-order anti-unification
    Baumgartner, Alexander
    Kutsia, Temur
    INFORMATION AND COMPUTATION, 2017, 255 : 262 - 286
  • [4] Idempotent Anti-unification
    Cerna, David
    Kutsia, Temur
    ACM TRANSACTIONS ON COMPUTATIONAL LOGIC, 2020, 21 (02)
  • [5] A Library of Anti-unification Algorithms
    Baumgartner, Alexander, 1600, Springer Verlag (8761):
  • [6] A Library of Anti-unification Algorithms
    Baumgartner, Alexander
    Kutsia, Temur
    LOGICS IN ARTIFICIAL INTELLIGENCE, JELIA 2014, 2014, 8761 : 543 - 557
  • [7] On complexity of the anti-unification problem
    Discrete Math Appl, 2008, 1 (85-98):
  • [8] Anti-unification and the theory of semirings
    Cerna, David M.
    THEORETICAL COMPUTER SCIENCE, 2020, 848 : 133 - 139
  • [9] Anti-unification and Generalization: A Survey
    Cerna, David M.
    Kutsia, Temur
    PROCEEDINGS OF THE THIRTY-SECOND INTERNATIONAL JOINT CONFERENCE ON ARTIFICIAL INTELLIGENCE, IJCAI 2023, 2023, : 6563 - 6573
  • [10] On complexity of the anti-unification problem
    Kostylev, E. V.
    Zakharov, V. A.
    DISCRETE MATHEMATICS AND APPLICATIONS, 2008, 18 (01): : 85 - 98