|A certain game utilizes a list of allowed words, in alphabetical order, that would look like a dictionary (without the definitions), once "decoded". A simple algorithm that minimizes repetition in the interest of keeping the list as short as possible is utilized, and can be easily recognized, given a small section of the list. What follows is the first few "words" of the list:|
I'm trying to write a program that allows me to resolve the list into English, because, although easy to figure out from its beginning, trying to decipher words beginning with, say, the letters "arc" is a nightmare because each word is built from the one preceding it and there might be a thousand plus words between "aa" and "arc..."!
I'm trying to write a batch file to process this nightmare. I'd imagine you need to read in encoded words, separate the numerical piece of each word (if present) from the rest and use the number obtained to represent the number of characters from the last decoded word to be used to begin the word under construction, appending the remainder from the encoded form to give the resolved wo0rd, then proceed to the next word to resolve, etc., etc.
By the sound of my ramblings, you can be assured that i'm very confused, but besides that, have you any ideas, code-wise, on how to proceed?