A community for students.
Here's the question you clicked on:
 0 viewing
thepenguin
 3 years ago
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/
thepenguin
 3 years ago
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/

This Question is Closed

harsimran_hs4
 3 years ago
Best ResponseYou've already chosen the best response.0sorry 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)

thepenguin
 3 years ago
Best ResponseYou've already chosen the best response.0i 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.

harsimran_hs4
 3 years ago
Best ResponseYou've already chosen the best response.0well 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

harsimran_hs4
 3 years ago
Best ResponseYou've already chosen the best response.0one 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

thepenguin
 3 years ago
Best ResponseYou've already chosen the best response.0well, 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.

thepenguin
 2 years ago
Best ResponseYou've already chosen the best response.0here is the most recent version of the code: http://dpaste.com/hold/920185/

thepenguin
 2 years ago
Best ResponseYou've already chosen the best response.0i'm also working on writing a recursive version, but it isn't finished yet

harsimran_hs4
 2 years ago
Best ResponseYou've already chosen the best response.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

thepenguin
 2 years ago
Best ResponseYou've already chosen the best response.0thanks 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.

harsimran_hs4
 2 years ago
Best ResponseYou've already chosen the best response.0@thepenguin this problem set takes time so just think with cool mind and give time ALL THE BEST!!!
Ask your own question
Sign UpFind more explanations on OpenStudy
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
 Engagement 19 Mad Hatter
 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.