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

I want to ask a question about course 2008 fall .The question is in Set 6 problem #3. "Next, change the implementation of is_valid_word to take as an argument the representation you created above rather than the word_list itself. Remember that the choice of representation can have a big impact on performance. This modification will improve the complexity of is_valid_word from O(len(word_list)) to O(1)." I can't understand how can we fulfill this change and do not know why it changes the complexity to O(1).

OpenStudy (anonymous):

how did you implement is_valid_word using word_list? why is its complexity O(len(word_list))? how will you implement is_valid_word with the new representation of the wordlist? http://wiki.python.org/moin/TimeComplexity

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
Arriyanalol: i need help
1 day ago 7 Replies 1 Medal
Arriyanalol: CONGRATS to me
1 day ago 8 Replies 2 Medals
Legomaster346: What colleges are good that are near Arab Alabama?
1 week ago 5 Replies 0 Medals
Arriyanalol: i need help
1 week ago 6 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!