有限状态自动机到/从正则表达式可视化

Marco T. MorazánSeton Hall University, Tijana MinićSeton Hall University
{"title":"有限状态自动机到/从正则表达式可视化","authors":"Marco T. MorazánSeton Hall University, Tijana MinićSeton Hall University","doi":"arxiv-2407.08088","DOIUrl":null,"url":null,"abstract":"Most Formal Languages and Automata Theory courses explore the duality between\ncomputation models to recognize words in a language and computation models to\ngenerate words in a language. For students unaccustomed to formal statements,\nthese transformations are rarely intuitive. To assist students with such\ntransformations, visualization tools can play a pivotal role. This article\npresents visualization tools developed for FSM -- a domain-specific language\nfor the Automata Theory classroom -- to transform a finite state automaton to a\nregular expression and vice versa. Using these tools, the user may provide an\narbitrary finite-state machine or an arbitrary regular expression and step\nforward and step backwards through a transformation. At each step, the\nvisualization describes the step taken. The tools are outlined, their\nimplementation is described, and they are compared with related work. In\naddition, empirical data collected from a control group is presented. The\nempirical data suggests that the tools are well-received, effective, and\nlearning how to use them has a low extraneous cognitive load.","PeriodicalId":501197,"journal":{"name":"arXiv - CS - Programming Languages","volume":null,"pages":null},"PeriodicalIF":0.0000,"publicationDate":"2024-07-10","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Finite-State Automaton To/From Regular Expression Visualization\",\"authors\":\"Marco T. MorazánSeton Hall University, Tijana MinićSeton Hall University\",\"doi\":\"arxiv-2407.08088\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Most Formal Languages and Automata Theory courses explore the duality between\\ncomputation models to recognize words in a language and computation models to\\ngenerate words in a language. For students unaccustomed to formal statements,\\nthese transformations are rarely intuitive. To assist students with such\\ntransformations, visualization tools can play a pivotal role. This article\\npresents visualization tools developed for FSM -- a domain-specific language\\nfor the Automata Theory classroom -- to transform a finite state automaton to a\\nregular expression and vice versa. Using these tools, the user may provide an\\narbitrary finite-state machine or an arbitrary regular expression and step\\nforward and step backwards through a transformation. At each step, the\\nvisualization describes the step taken. The tools are outlined, their\\nimplementation is described, and they are compared with related work. In\\naddition, empirical data collected from a control group is presented. The\\nempirical data suggests that the tools are well-received, effective, and\\nlearning how to use them has a low extraneous cognitive load.\",\"PeriodicalId\":501197,\"journal\":{\"name\":\"arXiv - CS - Programming Languages\",\"volume\":null,\"pages\":null},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2024-07-10\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"arXiv - CS - Programming Languages\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/arxiv-2407.08088\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - CS - Programming Languages","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2407.08088","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

摘要

大多数 "形式语言与自动机理论 "课程都会探讨识别语言中单词的计算模型与生成语言中单词的计算模型之间的二元性。对于不熟悉形式语句的学生来说,这些转换很少是直观的。为了帮助学生完成这种转换,可视化工具可以发挥关键作用。本文介绍的可视化工具是为 FSM(一种适用于自动机理论课堂的特定领域语言)开发的,用于将有限状态自动机转换为正则表达式,反之亦然。使用这些工具,用户可以提供任意的有限状态机或任意的正则表达式,并通过转换向前或向后移动。在每一步中,可视化都会描述所采取的步骤。本文概述了这些工具,介绍了它们的实现方法,并将它们与相关工作进行了比较。此外,还介绍了从对照组收集的经验数据。实证数据表明,这些工具广受欢迎,效果显著,而且学习如何使用这些工具的额外认知负荷较低。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Finite-State Automaton To/From Regular Expression Visualization
Most Formal Languages and Automata Theory courses explore the duality between computation models to recognize words in a language and computation models to generate words in a language. For students unaccustomed to formal statements, these transformations are rarely intuitive. To assist students with such transformations, visualization tools can play a pivotal role. This article presents visualization tools developed for FSM -- a domain-specific language for the Automata Theory classroom -- to transform a finite state automaton to a regular expression and vice versa. Using these tools, the user may provide an arbitrary finite-state machine or an arbitrary regular expression and step forward and step backwards through a transformation. At each step, the visualization describes the step taken. The tools are outlined, their implementation is described, and they are compared with related work. In addition, empirical data collected from a control group is presented. The empirical data suggests that the tools are well-received, effective, and learning how to use them has a low extraneous cognitive load.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信