跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 其他计算机科学

arXiv:2008.12375 (cs)
[提交于 2020年8月21日]

标题:How to Design While Loops

作者:Marco T. Morazán
查看论文《How to Design While Loops》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Beginning students find the syntactic construct known as a while loop difficult to master. The difficulties revolve around guaranteeing loop termination and around learning how to properly sequence mutations to solve a problem. In fact, both of these are intertwined and students need to be taught a model that helps them reason about how to design while loops. For students that have been introduced to how to design programs using structural recursion, generative recursion, accumulative recursion, and mutation, the task of teaching them how to design while loops is made easier. These students are familiar, for example, with state variables, termination arguments, and accumulator invariants. All of these are fundamental in the design of while loops. This articles presents a novel technique used at Seton Hall University to introduce beginners to the design of while loops. It presents a design recipe that students can follow step-by-step to establish such things as the driver of the loop, the loop invariant, and the proper sequencing of mutations. The article also presents an example of designing a while-loop based function using the new design recipe.
评论: In Proceedings TFPIE 2019 and 2020, arXiv:2008.08923
主题: 其他计算机科学 (cs.OH); 程序设计语言 (cs.PL)
引用方式: arXiv:2008.12375 [cs.OH]
  (或者 arXiv:2008.12375v1 [cs.OH] 对于此版本)
  https://doi.org/10.48550/arXiv.2008.12375
期刊参考: EPTCS 321, 2020, pp. 1-18
相关 DOI: https://doi.org/10.4204/EPTCS.321.1

提交历史

来自:EPTCS
[v1] 2020年8月21日 星期五 01:21:47 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.OH
< 上一篇   |   下一篇 >
最新 | 近期 | 2020-08
切换浏览方式为:
cs
cs.PL

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站