Quantcast

Got Homework?

Connect with other students for help. It's a free community.

  • across
    MIT Grad Student
    Online now
  • laura*
    Helped 1,000 students
    Online now
  • Hero
    College Math Guru
    Online now

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

David_Novo

What's your opinion on this solution to number 2 from problem set 4 (Spring 2011)? http://dpaste.com/788291/

  • one year ago
  • one year ago

  • This Question is Closed
  1. WilliamXing
    Best Response
    You've already chosen the best response.
    Medals 0

    Hi David, unlikely though, what if you get 2 shifts that returns exactly the same count? The list.max() will only return the first max number.

    • one year ago
  2. David_Novo
    Best Response
    You've already chosen the best response.
    Medals 0

    Yes, but if there are two shifts that return the same count, it's indifferent which one it returns right?

    • one year ago
  3. WilliamXing
    Best Response
    You've already chosen the best response.
    Medals 0

    maybe for a long text they decrypt different words but happen to be the same number? We may need a way to iterate the list and return all indices with the max number and also check the decoded texts?

    • one year ago
  4. David_Novo
    Best Response
    You've already chosen the best response.
    Medals 0

    This is Problem Set 4 - Question 2. Your answer is probably related to question 4. This function is used to decode a message that was encoded using just one shift. Multiple shifts are considered in question 4. In this case the shift that decodes more words will decode all the words in the message because it was encoded with one shift only.

    • one year ago
    • Attachments:

See more questions >>>

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.