
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A homework assignment for a cs3723 course at the university of texas at san antonio. Students are required to write recursive functions in scheme for counting symbols in an arbitrary value and collecting symbols into a new list. Test cases for each function.
Typology: Assignments
1 / 1
This page cannot be seen from the preview
Don't miss anything!

The homework requires you to solve the following problems via scheme programming. You need to develop your scheme programs using the DrScheme environment and submit your solution file electronically online at
www.cs.utsa.edu/~cs3723.
(count-symbols 7) 0 (count-symbols ’y) 1 (count-symbols ’(x 3 y)) 2 (count-symbols ’((x 3) (y 2) (3 z))) 3
(count2symbols 7) 0 (count2symbols ’y) 0 (count2symbols ’(x 3 y)) 0 (count2symbols ’(3 x y)) 1 (count2symbols ’((x y z) (3 z 4))) 2
(collect-symbols 7) empty (collect-symbols ’y) ’y (collect-symbols ’(x 3 y)) (list ’x ’y) (collect-symbols ’((x 3) (y 2) (3 z))) (list (list ’x) (list ’y) (list ’z))