Giter Site home page Giter Site logo

machinelearning_maze's Introduction

MachineLearning_Maze

Passing Through Maze

Input

Input data is provided in two files:

  • maze_128x128
  • maze_16x16

Both contain coordinates for each wall in a maze.

Input format:

Two first are x and y coordinates. Last one is an instruction how to draw a wall.

0 0 0 - means draw in 0,0: one wall down and one wall to the right.    ┌
0 0 1 - means draw in 0,0: only wall to the right0 0 2 - means draw in 0,0: only wall down0 0 3 - means draw in 0,0: no wall at all

Output for Tremaux:

Time spent solving: 0.11201095581054688 seconds
Iterations counted: 14641
Path lenght: 5547
Dead ends lenght: 4547

Maze solved with Tremaux algorithm

Output for Dead End Filler

Long processing time.

Time spent solving: 119.60996007919312 seconds
Iterations counted: 3700
Path length: 0
Dead ends length: 27218

Maze solved with Dead End Filler algorithm

Bonus round

Tremaux without randomness in path picking step (always picks first one - similar to Wall Follower, although its capable of leaving loops)

Maze solved with Tremaux algorithm without randomness in path picking step

machinelearning_maze's People

Contributors

mnmnc avatar

Watchers

James Cloos 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.