We present a supervised, interactive learning technique that infers control structures of computer programs from user-demonstrated traces. A two-stage process is applied: first, a minimal deterministic finite automation (DFA) M labled by the instructions of the program is learned from a set of example traces and membership queries to the user. It accepts all prefixes of traces of the target program. The number of queries is bounded by O(k.|M|), with k being the total unmber of instructions in the initial example traces. In the second step we parse this automation into a high-level programming language in O(|M|~2) steps, replacing jumps by conditional control structures.
展开▼
机译:我们提出了一种监督,交互式的学习技术,其来自用户演示的迹线的控制结构的控制结构。应用了两阶段过程:首先,通过对用户的一组示例跟踪和成员资格查询,从该程序的指令中汲取最小的确定性有限自动化(DFA)M。它接受目标计划的所有痕迹前缀。查询的数量由O(k。| m |)界定,K是初始示例迹线中的总毫无指令。在第二步中,我们将此自动化解析为O(| m |〜2)步骤中的高级编程语言,通过条件控制结构替换跳跃。
展开▼