Reference no: EM131336773
Assignment
This needs to be a C++ (or any other .net language) program that will implement a Breadth-First Search and a Depth-First Search to solve an 8-piece Slider Puzzle.
For this program, the above search strategies must be used to solve the 8-piece Slider Puzzle. The constraints of this program will be as they would be if the user were holding an actual, physical, version of the puzzle in their hand.
• A tile cannot be removed from the environment
• A tile cannot pass over or behind another tile
• A tile can only be moved up, down, left or right (no diagonal moves)
• A tile can only be moved into an empty space
The goal state of the puzzle should be:
1 2 3
4 5 6
7 8
This program will need a simple menu for the user interface. This menu should include options for the user to generate a puzzle (or choose a known good starting state of easy, medium, or hard difficulty. the puzzle generation is optional), run each of the searches against the generated puzzle, and an option to exit the program. The user interface should look something like this:
Welcome to the 8-piece Slider Solver
Please choose one of the following:
1. Generate a random puzzle
2. Run a Breadth First Search
3. Run a Depth First Search
4. Exit
Once a puzzle is generated, at least one of the searches must be run against it (the program should be able to do more than one per puzzle as well). The user should choose the search. So, once a puzzle has been generated, the main menu should be called again to allow to the user to choose which search to run.
After the user chooses a search, the program should output the results. The program should keep track of what search was used, what the starting state of the puzzle was, whether a solution was found (IF YOU ARE GENERATING RANDOM PUZZLES, SOME PUZZLES WILL HAVE NO SOLUTION! THE PROGRAM MUST BE ABLE TO IDENTIFY THIS AND OUTPUT THAT THE PROGRAM COULD FIND NO SOLUTION!), at what depth the solution was found, how many nodes were expanded to find the solution, and how long it took the program to find the solution. The program should then output the results of the search like so:
(Print Name of Search Used)
1. At what depth was the solution found?: (print depth)
2. How many nodes were expanded?: (print depth)
3. How long did the search take?: (print time)
4. Exit
Once the program has run a search against the generated puzzle, the program should return to the main menu so that the user can choose to generate a new puzzle, run another search on the puzzle that was already generated, or exit the program.
Marketing inputs and marketing actions
: 1. What are the broad outlines of Web 3.0? 2. The Internet marketing paradigm includes both marketing inputs and marketing actions. Discuss the major components of both the inputs and the actions.
|
How to code the transcript for the videos
: Initially, I was unsure how to code the transcript for the videos because there was only one person speaking versus two people having a conversation as illustrated in the Laureate Education Inc
|
Develop a campaign plan from the objectives
: In this assignment, you will develop a Campaign Plan from the objectives, to strategy and tactics, all along paying attention to the concepts covered in the module, the key theories of persuasion, and the lectures on strategy and tactics.
|
How much external equity must it raise
: Assume that Wolverine's capital structure includes only common equity and debt, and that debt and equity will be the only sources of funds to finance capital projects over the year.
|
At what depth was the solution found
: This program will need a simple menu for the user interface. At what depth was the solution found? How many nodes were expanded? How long did the search take?
|
Discuss the stability of personality traits
: Discuss the stability of personality traits throughout the life span, including a discussion of the "Big Five." Discuss the effects of three (3) health habits on the aging body
|
Find the operating ratio for sol dry goods
: Find the operating ratio for Sol's Dry Goods if the income statement for the month shows net sales,$15500;cost of goods sold, $8500; gross profit, $7000; operating expenses, $3500; net income, $4500. Express results to the nearest tenth of a perce..
|
What is the effective rate of increase in the dividends
: Tulia Dairy pays a $2.50 cash dividend and earns $5 per share.- What is the effective rate of increase in the dividends for Tulia as a result of this action?
|
Difference between peroxisme and lysosome
: What is difference between peroxisme and lysosome what is function of it
|