GithubHelp home page GithubHelp logo

eda-nqueens's Introduction

An Estimation of Distribution Algorithm implementaion that attempts to solve N-Queens problems.

To setup, run the command: make all

This will create an obj directory and an nqueens executable in the current directory.

To run the programme, run the command: ./nqueens

Where the arguements in "<>" are to be replaced by user variables, or left empty to use default values. Note, previous variables cannot be left empty and then later ones specified, so to enter the number of iterations the number of queens must be entered before. The is the value that will be added to the iteration counter, so can be set to 0 to allow an unbounded number of iterations and run time.

Default values: Number of Queens: 1 Maximum number of iterations: 1000 Iteration increment value: 1

Here is an example: ./nqueens 6 200 1

This will solve the N-Queens problem for 6 queens (6x6 board) with a maximum of 200 iterations, after which it will return the best solution it has if an ideal one has not already been found.

eda-nqueens's People

Contributors

churmd 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.