top of page
Find_bacon operation example

Find_bacon operation example

The program was executed with the dictionary file passed in as an argument. The user was then prompted to input a word, the choice was 'fence'. Notice each successive word changes one letter.

Find_bacon-main

Find_bacon-main

This program uses a 5,700 5 letter word dictionary to find the path of any word, to the word bacon. It does this by changing only one letter at a time, and storing nearby words in an array. If 'bacon' is found in this process, the path from bacon to the starting word is printed out.

bottom of page