全部 标题 作者
关键词 摘要

OALib Journal期刊
ISSN: 2333-9721
费用:99美元

查看量下载量

相关文章

更多...

数据结构中串的模式匹配算法演示系统的研究
Research of a Demonstration System for Pattern Matching Algorithms of Strings in Data Structure

DOI: 10.12677/SEA.2023.123056, PP. 578-585

Keywords: 朴素模式匹配算法,快速模式匹配算法,JavaSwing
Naive Pattern Matching Algorithm
, Fast Pattern Matching Algorithm, JavaSwing

Full-Text   Cite this paper   Add to My Lib

Abstract:

本文研究了数据结构中的朴素模式匹配算法(BF)和快速模式匹配算法(KMP),并将其算法程序、中间变量、结果展示结合到一起,使用JavaSwing等进行相关图形界面开发,使得在同一界面上,不仅能展示BF算法和KMP算法的代码,并且能够显示字符串模式匹配算法执行过程中每一步的操作流程,还可以随时进行暂停、回退、继续等。该演示系统不仅可以帮助学生快速学习理解字符串模式匹配的原理,还可以有效地提高学生的实践能力,所见即所得地快速上手编程。
This article has studied the naive pattern matching algorithm (BF) and the fast pattern matching algorithm (KMP) in data structures, and combined their algorithm programs, intermediate variables, and result display. Using JavaSwing and other related graphical interface development, it is possible to not only display the code of the BF algorithm and KMP algorithm on the same interface, but also display the operation flow of each step in the execution process of the string pattern matching algorithm. It also can be pause, rollback, resume, and so on at any time. The demonstration system can not only help students quickly learn and understand the principles of string pattern matching, but also effectively improve students’ practical abilities, namely, WYSIWYG, and fast hands-on programming.

References

[1]  谭永滨, 侯梦飞, 张志军, 李小龙, 程朋根, 章泽之. 基于模式匹配的交通微博文本位置信息提取模型[J]. 地理与地理信息科学, 2021, 37(5): 16-22.
[2]  徐琳, 魏晓超, 蔡国鹏, 王皓, 郑志华. 一个高效的安全两方近似模式匹配协议[J]. 计算机研究与发展, 2022, 59(8): 1819-1830.
[3]  曹丽娜, 王霞, 周瑛. 基于模式匹配算法的空间属性数据挖掘仿真[J]. 计算机仿真, 2022, 39(9): 273-276.
[4]  李一鸣, 刘胜利. 自适应安全的支持模式匹配的流加密方案[J/OL]. 西安电子科技大学学报: 1-13.
http://kns.cnki.net/kcms/detail/61.1076.tn.20230307.1635.002.html, 2023-06-29.
[5]  周琰, 马强. 基于混合模式匹配算法的网络入侵检测[J]. 计算机测量与控制, 2022, 30(11): 65-70.
[6]  王乂冉. 基于近似模式匹配的并行压缩算法的研究与实现[D]: [硕士学位论文]. 长春: 吉林大学, 2020.
[7]  刘邦国, 陈庆春, 类先富. 一种面向PDF文本内容审查的高效多模式匹配算法[J]. 计算机应用研究, 2020, 37(6): 1755-1759.
[8]  王宏, 曹家庆, 黄斌, 陈琪. 基于Java的数据结构算法演示系统[J]. 南昌航空工业学院学报(自然科学版), 2006, 20(2): 70-75.
[9]  王玢玥, 李冬梅, 李华颖, 姚佳璐, 王仁生. 数据结构算法演示系统的设计[J]. 教育教学论坛, 2016(28): 167-168.
[10]  万东洋. 基于Java的数据结构算法演示系统研究[J]. 内蒙古煤炭经济, 2019(20): 171-172.
[11]  Knuth, D.E., Morris, J.H. and Pratt, V.R. (1977) Fast Pattern Matching in Strings. Siam Journal on Computing, 6, 323-350.
https://doi.org/10.1137/0206024

Full-Text

Contact Us

service@oalib.com

QQ:3279437679

WhatsApp +8615387084133