Algorithm Assignment - Java -- 2

已关闭 已发布的 Nov 16, 2015 货到付款
已关闭 货到付款

1. Implementation of A* using Graph-Search

The aim of this project is to design and implement the A* searching technique using

Graph-Search strategy. These steps should be followed:

a. Define an adequate data structure to represent each state during the search

(Node).

b. Define a data structure to represent the queue containing unexplored nodes

(fringe).

c. Write the java function to explore the state space.

2. Problem tests and evaluation

Consider the Farmer Puzzle problem; in this puzzle a Farmer, Wolf, Goat and Cabbage

arrive at a river and wish to cross. There is a boat but it can transport the farmer (only

he can row!) and at most one other object at a time. How can the farmer plan to move

his entourage from the East bank to the West bank? An additional problem is that if ever

the wolf and goat, or goat and cabbage, are left alone then one eats the other!

There are four actions in this puzzle:

 Farmer goes alone (ga)

 Farmer takes wolf (tw)

 Farmer takes goat (tg)

 Farmer takes cabbage (tc).

a. We must represent each state of the puzzle; i.e. which side of the river each of the

Farmer, Wolf, Goat and Cabbage is on. Suppose we use a 4 element list [F, W, G, C]

to represent the state and use the constants e and w to represent the east and west

banks respectively.

i. What state is represented by the list [e, e, w, w]?

ii. What are the start and goal states of the puzzle?

iii. What are the unsafe states?

iv. Draw the state space (hint: the unsafe states are not represented in

the state space).

v. Assume that the cost of each action is 1, suggest an admissible

heuristic h.

b. Solve the farmer puzzle problem using your code: display the expanded nodes, the

path solution and its cost (GUI displaying these results is appreciable).

c. Test your program on the 8-puzle problem (the initial and goal states are randomly

generated).

d. Analyze and compare your results on different heuristics (Manhattan distance,

misplaced tiles, and Gashing heuristic).

NB: The assessment of the project is based on:

 The provided report describing and discussing the implementation and different

used heuristics and analyzing the obtained results.

 The demonstration showing your code and its execution on some problem tests.

算法 Java

项目ID: #8915414

关于项目

9个方案 远程项目 活跃的Dec 23, 2015

有9名威客正在参与此工作的竞标,均价$126/小时

gokulanand

Hello I can get you this assignment ready in the next 24 to 48 hours. Do let me know if you are interested. Thanks

$150 USD 在2天内
(85条评论)
5.8
mahershahmeer

Hi there! I'm a Professional Software developer and Data Analyst for a well known Software House in Islamabad named PacSquare Pvt Ltd. If I get this job, I assure you that you'll get my best services in return. Plea 更多

$138 USD 在3天内
(41条评论)
4.8
josemontenegro13

Computer science student in his final year. Plenty of experience solving algorithmic problems via code. Java is one of my main languages

$100 USD 在2天内
(15条评论)
3.7
eaglepoint

Hi i am a software engineer with java and python as expertise. I have been working on java for last 3 years. I have sound knowledge of OOP and procedural programming paradigms.I also have goo understanding of various j 更多

$130 USD 在2天内
(10条评论)
3.4
ddarz4u

3+ years of experiences in Java and C/C++. please accept the proposal and send me any additional data if you have and I'll get started right away.

$88USD 在1天里
(0条评论)
0.0
doriaviram

Alot of experience in Java programming Great capabilities in designing applications. I will be happy to be your assesment, with a decent fee. Sounds like an interesting project, will be more than glad to be invo 更多

$100 USD 在5天内
(0条评论)
0.0