...
首页> 外文期刊>SIAM Journal on Computing >PARAMETERIZED DUPLICATION IN STRINGS - ALGORITHMS AND AN APPLICATION TO SOFTWARE MAINTENANCE
【24h】

PARAMETERIZED DUPLICATION IN STRINGS - ALGORITHMS AND AN APPLICATION TO SOFTWARE MAINTENANCE

机译:字符串中的参数化双重复制-算法及其在软件维护中的应用

获取原文
获取原文并翻译 | 示例

摘要

As an aid in software maintenance, it would be useful to be able to track down duplication in large software systems efficiently. Duplication in code is often in the form of sections of code that are the same except for a systematic change of parameters such as identifiers and constants. To model such parameterized duplication in code, this paper introduces the notions of parameterized strings and parameterized matches of parameterized strings. A data structure called a parameterized suffix tree is defined to aid in searching for parameterized matches. For fixed alphabets, algorithms are given to construct a parameterized suffix tree in linear time and to find all maximal parameterized matches over a threshold length in a parameterized p-string in time linear in the size of the input plus the number of matches reported. The algorithms have been implemented, and experimental results show that they perform well on C code. [References: 21]
机译:作为软件维护的辅助手段,能够有效地跟踪大型软件系统中的重复项将很有用。代码中的重复通常采用相同代码段的形式,除了对标识符和常量之类的参数进行系统更改外。为了在代码中对这种参数化重复进行建模,本文介绍了参数化字符串和参数化字符串的参数匹配的概念。定义了一个称为参数化后缀树的数据结构,以帮助搜索参数化的匹配项。对于固定的字母,给出了在线性时间内构造参数化后缀树的算法,并在时间上以线性化的形式在输入的大小加上报告的匹配数之间找到了参数化p字符串中阈值长度上所有最大的参数化匹配项。该算法已经实现,实验结果表明它们在C代码上表现良好。 [参考:21]

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号