Question: 1. Draw box and pointer diagrams for the following Scheme lists: a. ((((a)))) b. (1 (2 (34)2 (5)) 2. Represent the following elements as car/cdr

1. Draw box and pointer diagrams for the following Scheme lists: a. ((((a)))) b. (1 (2 (34)2 (5)) 2. Represent the following elements as car/cdr expressions of the lists of the previous exercise. a. a of the first list b. 3 of the second list Hint: car = first item = second and all subsequent items in list Example: car(_2 3 4) = 2 car (2) 3 4) = (2) ade( 2 3 4) = 3 4 adr( (2) 3 4) = 3 4 cdr ( (2) (3) (4) ) = (3) (4)
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
