Implement a program to solve the puzzle problem

Assignment Help Programming Languages
Reference no: EM131265402

Solving - Puzzle using A*, IDA*, or RBFS

Overview:

In this project you will implement a program to solve the 8-puzzle problem using the A*, IDA* or RBFS algorithm. Your program should be a command line based program reading input from stdin and print results to stdout. You can choose from the following programming languages: C, C++, Java, Python, C#. If you use C, C++ or C#, make your program compliable using Visual Studio 2015 Community edition under Windows 7 or using GNU compiler under Ubuntu. You must write the entire project in your own codes. Provide instructions on how to compile your program. Also give a brief description of your implementation architecture and the heuristics you have used. Submit all your source codes and a separate document containing the instructions and descriptions mentioned above.

You can find a classmate to form a group to do the project. A group can contain at most 2 members. If you choose to do it with someone, have one of you send me all group members (name+EagleID) by Oct 30. (In this case you also need to specify briefly who did what in your documentation.) If you don't send me your preference to do it in a group by the date, it will be assumed that you will do it alone.

Input and output formats:

The input file will contain the initial and goal board configuration. A sample can look like this:

7 2 4

5 0 6

8 3 1

 

 

0 1 2

3 4 5

6 7 8

Output:

If the goal configuration is reachable in a finite number of steps, output all board configurations from initial to goal and the minimum number of steps required to reach the goal.

If the goal configuration is not reachable in a finite number of steps, output "no solution".

Reference no: EM131265402

Questions Cloud

Write a correct version of the given sentences : Each of the following sentences has a total of three errors in grammar, punctuation, capitalization, usage, or spelling. On a separate sheet, write a correct version.
Describe a real or hypothetical situation that requires : Describe a real or hypothetical situation that requires someone to make a policy decision. Then, select one of the three approaches to forecasting to apply: extrapolative, theoretical, or judgmental.
Net identifiable assets on the date of business combination : Dish Company issued 43,000 shares of its $2 par value common stock at a market price of $17 per share to acquire Eason Company in a statutory merger. Dish also incurred $2,000 legal fees and $300 for issuing the stock in the merger. Dish recorded $1,..
Healthcare organizational websites : In addition, compare and contrast your own definition of quality and how the 2 healthcare organizational websites you selected from the unit assignment activities, located under the Course Content in Unit 1, differs?
Implement a program to solve the puzzle problem : In this project you will implement a program to solve the 8-puzzle problem using the A*, IDA* or RBFS algorithm. Your program should be a command line based program reading input from stdin and print results to stdout
Journalize the in the general journal : Journalize the following in the general journal:
Determine which arguments are the most plausible : Determine which arguments are the most plausible. Provide a rationale for your views. After creating a cumulative frequency distribution from the list, discuss new ideas generated by each stakeholder.
Calculate the full-load torque and power developed : The fullload slip is 4%. Calculate the full-load torque and power developed. Find also the maximum torque and the corresponding speed.
Sources of regulatory requirements : Choose one of the three sources of regulatory requirements listed above. Write a three paragraph briefing statement which summarizes the regulatory requirements as they apply to the company's collection, processing, management, and storage of pers..

Reviews

len1265402

11/4/2016 2:58:46 AM

We will use the command line your program test_input_file to run your program. We will test your program on four inputs. Each counts 24 points. For each input, if your program gives correct output in 5 seconds, you will get 24 points. If your program gives correct output in 5~10 seconds, you will get 18 points. If your program takes more than 10 seconds to output, you will get 0 points. Any incorrect output will get you 0 points, no matter how fast your program runs.

Write a Review

Programming Languages Questions & Answers

  Write down a program which asks user to type of series of

write a program that asks user to type of series of positive integers. when the user types a negative value the program

  An automated sampling and quality control system

An automated sampling and quality control system experienced a systems failure. You job is to evaluate the data collected over the past 6 hours to determine if the process being measured was in control the entire time Six measurements were taken in e..

  Write program to accept a list of student-s name

Write a program that will accepts a list of student's name, individual scores for quiz1, quiz2 and quiz3. Your program should then compute for the average of 3 quizzes.

  A device that when moved along a flat

A device that when moved along a flat surface can move the on-screen cursor

  Program to calculate integer part of quotient

Calculate the integer part of the quotient when integer a is divided by integer. Calculate the integer remainder when integer a is divided by integer b

  Data members to store values of the two loans

A class that represents a person who belongs to a SACCO has two data members to store values of the two loans the person owes the SACCO. Add a parameterized constructor that initializes these loans using the two values passed as arguments.

  Create program which computes person-s bmi

Create a program which computes a person's body mass index? Design a modular program that calculates and display a person's body mass index (BMI).

  Write down a program that will loop continuously to get

write a program that will loop continuously to get user input of positive numbers and total them out. the loop will

  Create basic function which performs simple operation

Create basic function which performs simple operation. Write implementation for this function and then write second function which overloads the first. Describe how each of your functions could be invoked.

  Design a bigger and harder maze

E91: Humanoid Robotics - Spring 2013 - Assignment 1. Design a bigger and harder maze for the 2D and/or translation/rotation problems and see how it affects planning

  Develop console application utilizes while loop to count

Develop a C++ console application which utilizes a while loop to count, total, and average series of positive integers entered by a user.

  Program to evaluate postfix expressions using a stack

Program to evaluate postfix expressions containing complex numbers using a stack. This program should contain two classes. T

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd