{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Assignment 6

# Assignment 6 - CS 136 Fall 2009 Kate Larson Assignment 6...

This preview shows pages 1–3. Sign up to view the full content.

CS 136 Fall 2009 Kate Larson Assignment 6 Due Tuesday, November 10, 2009, 10pm Language level : Module (full PLT Scheme). You are allowed to use mutation, if you wish. Question 3 involves programming in C. To submit : a6q1binary.txt , a6q1reverse-binary.txt , circular.ss , circularList.c , circularList-driver.c 1. In Assignment 5 you were asked to implement two C functions, binary and reverse binary . In this question you are asked to analyze your code in these programs with respect to the size and number of stack frames that are used when these two functions are called with parameter n . If you did not do this question in Assignment 5, then we will post sample code that you can use. This code will be posted once Assignment 5 has been submitted. Copy the code for the binary function you are going to analyse into file a6q1binary.txt . If the function binary was called with parameter n , then • How many stack frames would be created? • How large would each stack frame be? Include your answer in the file a6q1binary.txt , along with an explanation. Copy the code for the reverse binary function you are going to analyse into file a6q1reverse-binary.txt . If the function reverse binary was called with pa- rameter n , then • How many stack frames would be created? • How large would each stack frame be? Include your answer in the file a6q1reverse-binary.txt , along with an explanation. To submit: a6q1binary.txt , a6q1reverse-binary.txt Figure 1: A Circular List 1

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
For the next two questions you will implement a circular list . A circular list contains a chain
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern