# hw11 - Introduction to Algorithms CS 482 Spring 2006 Last...

• Homework Help
• 501844684_ch
• 2

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

Introduction to Algorithms Last Problem Set! CS 482 Spring 2006 Due: Friday, May 5 Please hand in each problem on separate sheets with your name and netID on each. If a problem requires multiple sheets, please staple the sheets for that problem together Reading: Chapter 7.6. Not sure how we missed that one. Question 1 Once upon a time, in a far away kingdom, there was a prince. Prince Duane. One day, Duane went to the King and said “look, I’m a prince. So why don’t I have a princess?” Numerous explanations came to the King’s mind immediately, but instead of listing these out loud, the King decided to have some fun with the insolent prince. “Here be the deal,” began the King. “I’m gonna lock you in a tower. Outside of that tower I will randomly line up a thousand princesses from across the kingdom. They will enter the tower one at a time. When a princess enters, she will immediately tell you the number of gold pieces in her dowry.

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

This is the end of the preview. Sign up to access the rest of the document.
• Spring '06
• WEXLER
• Algorithms, gold pieces, Prince Duane

{[ 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