Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 65 Online
OpenStudy (anonymous):

On PS6, is it cheating to implement a computer cheater?

OpenStudy (anonymous):

Specifically: My strategy for implementing a computer player is just to write a function that calls is_valid_word with everything in word_list, finds point values for every word that returns True, and returns the highest-scoring word. It works, but is that cheating?

OpenStudy (shadowfiend):

Maybe it is, maybe it isn't ;) I'd say implement it that way first, then think of ways you could implement it without ``cheating''.

OpenStudy (anonymous):

It's not cheating and here's why. It's implementing a "brute force" or "exhaustive search" algorithm, and is probably the "gold standard" to test any other algorithm against. Once you have a way of absolutely knowing (by exhaustive search), then you have a reference for measuring performance improvement of other algorithms. Also, looking at it pedagogically, by PS6 we have not been introduced to sophisticated algorithms to avoid exhaustive search. To be strict, it would be cheating to use some algorithm that you know only by--ugh--reading ahead. :)

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Latest Questions
karissafrazier: how do i change the picture of my gc @euphoriiic
16 hours ago 6 Replies 0 Medals
KarmaXD: what is it like getting your tonsils removed?
4 hours ago 4 Replies 3 Medals
ilovemypomchi17: This is for my sis Hannah. What do you do when you get bleach in ur eyes?
17 hours ago 15 Replies 2 Medals
Fz150: I drew my teacherud83eudd7a
5 hours ago 10 Replies 0 Medals
Aliciaa: HeLpPpPpP pLsSsS
23 hours ago 8 Replies 1 Medal
ShadowKid3: What are the negatively charged particles in a conductor?
1 day ago 4 Replies 1 Medal
Aliciaa: collage dump which one(s) is your fav
1 day ago 11 Replies 2 Medals
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!