elz: (ada-tubes)
elz ([personal profile] elz) wrote in [community profile] intro_to_cs2009-11-16 09:41 pm
Entry tags:

Problem Set 2

Post and discuss your answers in the comments! (And yay for everybody who posted problem set 1 answers!)
gchick: Small furry animal wearing a tin-foil hat (Default)

[personal profile] gchick 2009-11-19 02:25 am (UTC)(link)
Your other code allowed James T. Kirk to get laid. It us CRUCIALLY IMPORTANT!

As for this one, I had no problem with questions 1 & 2, stumbled into a nice solution for the original McNugget problem that solved it with math rather than exhaustive search, and then faceplanted in problem 4 because I'm pretty sure that assignment 2 isn't supposed to be NP-hard, even at MIT. I... need to step away from it and find some other practice problem with the same logical structure. Sigh.
gchick: Small furry animal wearing a tin-foil hat (Default)

[personal profile] gchick 2009-11-19 02:55 am (UTC)(link)
Yep. I tend to get stuck on "but what's the solution?" rather than "what am I practicing here?"

So with that in mind, I'm off to play with possible combinations of Hardison, Eliot, and Parker; they're better than McNuggets in so many ways. Thanks for posting your solution - it was a good clarifier when I was letting things get too complicated.