GithubHelp home page GithubHelp logo

haseeb-qureshi / n-queens-visualizer Goto Github PK

View Code? Open in Web Editor NEW
117.0 10.0 41.0 395 KB

Visualizes solutions to the N-Queens problem, written in React & Flux

Home Page: https://haseeb-qureshi.github.io/n-queens-visualizer

HTML 3.09% JavaScript 89.00% CSS 7.91%
flux javascript react algorithms search recursion backtracking

n-queens-visualizer's Introduction

N-Queens Visualizer

A visual exploration of local search algorithms which generate solutions to the N-Queens problem. Featured on React Rocks.

VIEW LIVE: https://haseeb-qureshi.github.io/n-queens-visualizer

preview

  • Visualizes N-Queens problem using different local search algorithms
  • Created an action queue to process moves asynchronously without violating the Flux pattern
  • Uses custom-written easing function to simulate real-time speed modulation
  • Transmits minimum possible information within action dispatches, to minimize space & time costs

Backlog of features:

  • DONE Number queens
  • DONE Implement all methods (backtracking, brute-force permutations, random permutations, simulated annealing, and iterative repair)
  • DONE Speed bar
  • DONE Smooth out speed modulation
  • DONE Display number of iterations
  • DONE Fix iterative repair action overload bug
  • DONE Make brute force permutations show exact number of iterations
  • DONE Display temperature for simulated annealing
  • DONE Colorize temperature
  • DONE Make algorithm selection immediately seed board
  • DONE Slow down slowest speed
  • DONE Replace easing function with correct speed modulation using dynamic intervals
  • Pause and play buttons
  • Optimize parameters for simulated annealing (currently resolves 68% of the time)
  • Asterisk; mouseover iterations displays: number queens swapped, not total computations
  • Highlight attack paths
  • Animate movement of queens
  • Show animations for every reset
  • Make resizable from 4-20 N
  • Show text explaining each search method
  • Convert simulated annealing failure to modal
  • Guided tour through sequence of possible search strategies

n-queens-visualizer's People

Contributors

haseeb-qureshi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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