Braingle’s letter juggling puzzle
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.
It has to be done on 11/01 afternoon