Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Crossword Designer Using C++ design a program to design crossword. The following is a simple crossword. Given the list of words: AFT LASER ALE LEE

Crossword Designer

Using C++ design a program to design crossword. The following is a simple crossword. Given the list of words:

AFT LASER

ALE LEE

EEL LINE

HEEL SAILS

HIKE SHEET

HOSES STEER

KEEL TIE

KNOT

+---+---+---+---+---+

| 1 | | 2 | | 3 |

+---+---+---+---+---+

| # | # | | # | |

+---+---+---+---+---+

| # | 4 | | 5 | |

+---+---+---+---+---+

| 6 | # | 7 | | |

+---+---+---+---+---+

| 8 | | | | |

+---+---+---+---+---+

| | # | # | | # |

+---+---+---+---+---+

The numbers 1,2,3,4,5,6,7,8 in the puzzle correspond to the words that will start at those locations.

The variables can be represented in the following table with the specific domain.

 VARIABLE | STARTING CELL | DOMAIN
 ================================================
 1ACROSS | 1 | {HOSES, LASER, SAILS, SHEET, STEER}
 4ACROSS | 4 | {HEEL, HIKE, KEEL, KNOT, LINE}
 7ACROSS | 7 | {AFT, ALE, EEL, LEE, TIE}
 8ACROSS | 8 | {HOSES, LASER, SAILS, SHEET, STEER}
 2DOWN | 2 | {HOSES, LASER, SAILS, SHEET, STEER}
 3DOWN | 3 | {HOSES, LASER, SAILS, SHEET, STEER}
 5DOWN | 5 | {HEEL, HIKE, KEEL, KNOT, LINE}
 6DOWN | 6 | {AFT, ALE, EEL, LEE, TIE}

Task 1. Backtracking

Specify the constraints among variables. Implement a simple backtracking algorithm to come up with a solution for the above puzzle.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems An Application Oriented Approach Complete Version

Authors: Michael Kifer, Arthur Bernstein, Richard Lewis

2nd Edition

0321268458, 978-0321268457

Students also viewed these Databases questions

Question

What is the basis for Security Concerns in Cloud Computing?

Answered: 1 week ago

Question

Describe the three main Cloud Computing Environments.

Answered: 1 week ago