{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

COP5536-Exam1-solution

# Yougetfullmarksforthismethod6outof6points

This preview shows page 1. Sign up to view the full content.

This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: P(0) (instead of showing P(i) – P(0) >= 0 for all i, same criteria for homework!) or only show by tables (instead of telling the “from” and “to” of credits), you will get 2 points deducted. 6) If you don’t write anything, you get 0 out of 6 points. 7) If you indeed use the accounting method and give the correct answer, then congratulations! You get full marks for this method (6 out of 6 points). c) Potential method: P = two times the number of elements in the list before the ADD or DeleteOdds operation is performed. Grading criteria: 1) If you indeed use the potential method, but give the potential function as “P = the number of elements in the list”, you will get 3 out of 6 points since this potential function gives 3 as amortized cost which is incorrect according to what we show above. 2) If you don’t give your potential function, you will be deducted 4 points immediately since this is the initial step of the potential method. Later you calculations of Δp are all based on this function definition...
View Full 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