Skip to main content
The National Cipher Challenge

Hill-Climbing Algorithm

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #99212
    hedgehog3347
    Participant

    We have some ideas for 10B but the problem is that our hill-climbing algorithm depends too much on randomness (ie it takes some random variables and sees how close the fitness of the deciphered text is to english), which means is would take a long time to find the things that we need (as it would just ‘stumble upon’ it). Looking through some online resources, the methods are very similar to the one(s) we’re using. We were wondering if anyone knew how to better optimise the hill-climbing algorithm so as not to rely so much on randomness? Some other ones we’ve coded (such as vigenere and monoalphabetic) use finding the best variables for some critera that we give it, but we are struggling to figure out how to best approach this one (as the cipher is different and works differently so finding the first bit may not mean the best bit). Sorry for the vagueness, didn’t want to specify too much and spoil the challenge! Any help would be much appreciated 🙂

     

    We might delay replies to this depending on how generic they are, but it is an excellent question so we thought we would put it out there to see what responses it gets. Please don’t post code, as the Elves are now busy packing the sleigh and won’t have time to check it! Harry

    #99226
    upsidedown
    Participant

    You can optimise your hill climbing (or any other search) by reducing the search space

    Both generic and useful! Thank you, Harry

    #99252
    texal
    Participant

    For the hill climbing algorithm, my suggestion is to take a look at a bunch of different resources. I often refer to my own algorithms as ‘frakencode’ because they have so many influences. This thesis (https://www.uni-kassel.de/upress/online/OpenAccess/978-3-7376-0458-1.OpenAccess.pdf) by George Lasry (a historical cryptography researcher) is a brilliant resource for applying stochastic search algorithms to ciphers, and has may helpful tips. Also helpful are any papers from the journal Cryptologia that you can find online (e.g. pre print, or open access archive copies). Hope that helps!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Report a problem