首页> 外文会议>Conference on Current Trends in Theory and Practice of Computer Science >A New Model to Solve the Swap Matching Problem and Efficient Algorithms for Short Patterns
【24h】

A New Model to Solve the Swap Matching Problem and Efficient Algorithms for Short Patterns

机译:一个新模型,用于解决Swap匹配问题和高效算法的短图案

获取原文

摘要

In this paper, we revisit the much studied problem of Pattern matching with Swaps (Swap Matching problem, for short). We first present a new graph-theoretic approach to model the problem, which opens a new and so far unexplored avenue to solve the problem. Then, using the model, we devise an efficient algorithm to solve the swap matching problem. The resulting algorithm is an adaptation of the classic shift-or algorithm. For patterns having length similar to the word-size of the target machine, the algorithm runs in O(n log m) time, where n and m are the length of the text and the pattern respectively.
机译:在本文中,我们重新审视了与掉掉的模式匹配的大量问题(交换匹配问题,短暂)。我们首先展示了一种新的图形 - 理论方法来模拟问题,它打开了一个新的,到目前为止未开发的途径来解决问题。然后,使用该模型,我们设计了一种有效的算法来解决交换匹配问题。得到的算法是对经典移位或算法的适应性。对于具有与目标机器的字大小类似的长度的图案,该算法在O(n log m)的时间内运行,其中n和m分别是文本和图案的长度。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号