Word puzzle problem is to find the words in a two-dimensional array of characters. The input to this problem is two input files: one is a two-dimensional array of characters and the other is a list of words we will find in two-dimensional array. These words may be horizontal, vertical, or diagonal in any direction (for a total of eight directions). Let’s look at a simple example with chars: A 2-D 7x7 puzzle and a word list file are as follows: See image.

Write a program to find for this problem and run your program with two given input data files (50 x 50 puzzle and a list of words in class web page). And measure the actual running times of your program.

Each direction running time is O(n ^3). Therefore the total running time is (O(n^3) * 8) because there are 8 total directions.

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.