A word ladder is a game in which you start with a word and change one letter at a time until arriving at an end word. Each word along the way must be an english word. For example, starting from FISH...


A word ladder is a game in which you start with a word and change one letter at a time until arriving at an end word. Each word along the way must be an english word.


For example, starting from FISH you can make a word ladder to MAST through the following ladder:


FISH, WISH, WASH, MASH, MAST


Write a program using recursion to find the word ladder given a start word and an end word, or determines if no word ladder exists. Use the file "words.txt" as a dictionary of valid words. This file contains 87314 words. Your program does not need to find the shortest word ladder between words, any word ladder will do if one exists.




May 19, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here