Code Monkey home page Code Monkey logo

ai-project-1's Introduction

Dylan Wulf  
CSC380: Artificial Intelligence  
Project 1: Searching  
February 12, 2017  

Files:  
MapSolver.java: contains main method; reads file and initiates search  
SearchStrategy.java: Simple interface describes search strategy class layout
AStarSearch.java: Contains instructions for A* search algorithm  
BFSearch.java: Contains instructions for breadth-first search algorithm  
DFSearch.java: Contains instructions for depth-first search algorithm  
MapHeuristic.java: Interface for A* Heuristic class  
MapHeuristicStraightLine.java: Straight line heuristic for A* search strategy  
MapHeuristicTaxiDistance.java: Taxi distance heuristic for A* search strategy
ProblemNode.java: Interface for a single node in the problem search tree  
MapProblemNode.java: Describes a single node in the map problem search tree  

Building:  
To build this program, simply run the following command  
javac MapSolver.java  
The Java compiler should automatically compile all the other files as required.  

Running:  
This program is run using a command like this  
java MapSolver path/to/map.txt search-strategy  
where path/to/map.txt is a relative or absolute path to the input map file,  
and search strategy is one of the following: BFS, DFS, A*-straight-line, A*-taxi-distance  
BFS stands for breadth-first search
DFS stands for depth-first search
A*-straight-line is the A* algorithm with straight line heuristic
A*-taxi-distance is the A* algorithm with taxi distance heuristic
Example: java MapSolver maps/map1.txt A*-straight-line

This program was tested on a Linux system using Java version 1.8.0_121

ai-project-1's People

Contributors

dylanwulf avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.