灯下 登录
计算机科学 / SICP / 5.3.1 Memory as Vectors

Exercise 5.22 · 习题

Exercise 5.22: Exercise 3.12 of

3.3.1 presented an append procedure that appends two lists to form

a new list and an append! procedure that splices two lists together.

Design a register machine to implement each of these procedures. Assume that

the list-structure memory operations are available as primitive operations.

练习 5.22:3.3.1 节的练习 3.12 给出了一个 append 过程(将两个表拼接成一个新表)和一个 append! 过程(将两个表拼接在一起)。请为这两个过程各设计一台寄存器机器来实现它们。假设表结构内存操作作为基本操作已经可用。