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

thepenguin

hey guys, I'm working on ps4 on multilevel decryption, and i pretty much have it, but for some reason it is returning faulty shifts after about the 3rd word, and I can't figure out why. Can anyone help? http://dpaste.com/hold/845018/

  • one year ago
  • one year ago

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

    sorry i am little busy and that i haven't pointed out mistake in your code but i think maybe this helps http://openstudy.com/study#/updates/50995134e4b085b3a90da54d (as i was also struck on the same problem)

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

    i looked at the link you gave me, but all the code has been deleted off the paste websites, so it isn't much help... and i am still stuck on this problem. i keep thinking i have found the solution, but then something doesn't work right.

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

    well the code take 9 long minutes on my machine and the solution is quite good...acceptable either you can upload your code ... in the solution set only one function in prob 4 is not correct here is the corrected version which works on my machine http://pastebin.com/7VsS1DG9 if problem persists please do post i`ll try best to solve it

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

    one more thing the shifts you apply and the shifts you get from the decryption can be a bit different some times ....but they to give the correct answer on application

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

    well, i'm still having trouble with this. Here is the current version of all of my code http://dpaste.com/hold/901448/. it is now giving me an error as after the first round. the problem is in line 237 - when it is commented out, it works to letter number 499. however, when it is commented out, it gives me faulty numbers, because the text needs to get shifted each round, and put into find_best_shifts_rec, in order to get the right number the next time find_best_shifts_rec runs.

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

    here is the most recent version of the code: http://dpaste.com/hold/920185/

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

    i'm also working on writing a recursive version, but it isn't finished yet

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

    @thepenguin Sorry for not replying promtly, i have my projects and exams going on so i may not be able to help you out with your code... but this is the file of the test cases and functions that i tested and finally got things working... these test cases were contributed by many people... maybe this helps you as a reference http://pastebin.com/LQMBLKc4

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

    thanks for helping me with this. sorry if i came accross a little impatient. i will take a look at what you gave me and let you know on the results.

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

    @thepenguin this problem set takes time so just think with cool mind and give time ALL THE BEST!!!

    • 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.