Two-Dimensional Parson's Puzzles: The Concept, Tools, and First Observations
Two-Dimensional Parson's Puzzles: The Concept, Tools, and First Observations
复制标题
二维帕森谜题:概念、工具和初步观察
DOI:
10.28945/1394
复制
发表时间:
2011
期刊:
影响因子:
--
通讯作者:
V. Karavirta
中科院分区:
文献类型:
--
作者:
Petri Ihantola;V. Karavirta
Parson’s programming puzzles are a family of code construction assignments where lines of code are given, and the task is to form the solution by sorting and possibly selecting the correct code lines. We introduce a novel family of Parson’s puzzles where the lines of code need to be sorted in two dimensions. The vertical dimension is used to order the lines, whereas the horizontal dimension is used to change control flow and code blocks based on indentation as in Python. Python blocks have no explicit begin/end statements or curly braces to mark where the block starts or stops. Instead, indentation is used to define starts and stops of blocks and functions.