Coder Social home page Coder Social logo

graph_search_java's Introduction

Graph Searching Algorithms in Java

This project was developed during the Intelligent Systems course at the Free University of Bolzano. The aim of this project is to implement various standard graph searching algorithms and to use them to solve some standard AI problems.

Implemented Algorithms

Implemented Problems

This is not really a standard AI problem, but can be solved using graph searching algorithms. There exists a recursive algorithm that computes the optimal solution, yet it is nice to see how the graph searching algorithms find the best solution too.

The N-Puzzle problem is a popular game where the player has to shift numerated tiles on a grid in such a way that at the end the numbers are ordered. The program is able to solve the 8 puzzle problem efficiently. Using the Iterative Deepening A* search strategy it is possible to solve also the 15 puzzle problem.

Spell Checking

Given a dictionary of known words the program tries to correct misspelled words with the most promising replacement. Again the Iterative Deepening A* is the most efficient one and is able to suggest corrections also for long input strings.

Implemented Heuristics

This heuristic is applied in the N-Puzzle Problem and in the Spell Checking Problem. For example, given a misspelled word and a correct word, this heuristic tells how many "errors" are in the misspelled word, so in how many places the strings differ.

It is applied in the N-Puzzle Problem and tells for a certain configuration of the numbers how far away misplaced numbers are from their correct position. So it is in some sense the Eucledian Distance from the wrong place to the right position.

The Levenshtein Distance is applied in the Spell Checking problem. The distance knows three operations that can be applied to a string, insertion, deletion, changing a letter. The algorithm computes the minimum number of operations needed to transform one string to another.

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.