Braingle’s letter juggling puzzle http://www.braingle.com/brainteasers/46611/letter-juggle.html is a brain teaser that involves manipulating words and letters in the English language.

The idea is simple—given a pair of English words, by moving a single letter from one word to the other, form a pair of synonyms or near synonyms. For example: given “boast” and “hip”, move the “s” from “boast” to “hip” to obtain the synonyms “boat” and “ship”.

Your task, however, is to write a Java program which—given a file containing pairs of synonyms and a second file containing a sequence of words from a dictionary—will produce as many pairs of words from the dictionary as possible that can be used to set the puzzle for each synonym pair.

Note: as usual marks will be awarded for coding and documentation (describing the problem’s analysis, choice of data structures, design of algorithm, etc), and also for creativity.

Sample dictionary and synonym files can be found on Blackboard.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.