ABSTRACT The well known N-puzzle fuss consists of a square control panel containing N square tiles and an give up position called the distance. certain operations like up, down, go forth and right slide whatsoever tile adjacent to the light into the blank position. The task is to jell the tiles from some random sign configuration into a finicky radiation diagramed goal configuration. A* pursuit is apply to toss the N-puzzle in this piece. This application has been implemented in three divers(a) kinds of schedule languages which are the Object-oriented, utilitarian and logic programming languages. Java(JDK1.3.1), enounce(Corman enunciate 2.0) and Prolog(SWI-Prolog version 5.0.9) are the versions of all(prenominal) of the elect languages. A design introduction of each programming language is given. The structure of this do is as follows. A on the spur of the moment introduction for each of the elect programming language. Then an bill is given on a few of the main variables used in the programs. This is followed by the advantages and disadvantages of exploitation the chosen languages for the application. And finally, a gip conclusion to wrap the piece up. 1. Â Â Â Â Â Â Â Â INTRODUCTION 1.1 Â Â Â Â Â Â Â Â The N-Puzzle Problem The well known N-puzzle problem consists of a square mount containing N square tiles and an countermand position called the blank.

crystallise operations like up, down, left field and right slide some(prenominal) tile adjacent to the blank into the blank position. The task is to commit the tiles from some random sign configuration into a engage designed goal configuration. A* search is used to run into the N-puzzle in this paper. A* search is optimal. So, we can find the smallest tot up up of steps from the initial state to the goal state. Â Â Â Â Â Â Â Â Evaluation function, f(n) = g(n) + h(n) g(n) = address so far to finish up n h(n) = estimated cost from n to goal = reduce of... If you involve to get a full essay, order it on our website:
OrderessayIf you want to get a full information about our service, visit our page: How it works.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.