HW8x - -HW#8X SPECS CS108 SPRING 2009"EXTRA HOMEWORKS =...

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

View Full Document Right Arrow Icon
---------------------------------------------------------------------- HW#8X SPECS CS108, SPRING 2009 ---------------------------------------------------------------------- "EXTRA" HOMEWORKS ================= Some students have asked for more homeworks, or more challenging homeworks. This is "HW#8X", meaning "Homework #8 Extra". * There is some Extra Credit, +5 pts, for doing the "Extra" HW. But, really, you should do it for the extra challenge, not necessarily for the extra points. * HW#8X does NOT "replace" the normal HW#8. You must still do "HW#8", since HW#8 covers different but important topics. ---------------------------------------------------------------------- HW#8X SPECS =========== This problem is easy to do, if you generate all possible combinations. But, that would cause your program to run for days, months, or years. Instead, the ACM programming contest requires programs to complete running in 1 minute or less. That limit is a requirement for HW#8X. I.e., you'll need to figure out ways to speed up your code. This is really quite challenging, even if it seems easy. Real contest problems must get submitted in 5 hours, but it may take you longer, since this one is rough. HINT: this is similar to "bin packing", which is an NP-Complete problem, i.e. the Week#8 lecture notes discuss NPC problems. Extra hint: use Dynamic Programming! Sidenote: in the real ACM programming contest, students work in teams of 3, and win by having the largest number of problems solved. If some teams
Image of page 1

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

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    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.

    Student Picture

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

  • Left Quote Icon

    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.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    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.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern