Giter Site home page Giter Site logo

cs3243-project2's Introduction

CS3243 Project 2

Ivan, Jun Wei, Ze Chu, Larry

CSP and Reinforcement Learning

Problem Specification

  1. Variable: Every cell in 9x9 matrix.
  2. Domain: Every cell, 1-9
  3. Constraint
    1. For each col and row, Alldif must be satisfied
    2. (KIV) Unary constraint for starting puzzle

Variant

  1. Variable ordering
    1. Most Constrained Variable
    2. Most Constraining Variable
  2. Value Ordering
    1. Least Constraining Value
  3. Inference Mechanism
    1. AC3
    2. Forward Checking

TODO:

  1. Experiment
    • Plot time taken against number of empty cells (for randomly generated puzzles)
    • Histogram (frequency against time)
  2. Variants
    • at least 2 variants that has justifications
    • Shift AC3 forward
    • Clarify most constraining value
  3. Justification for variant
  4. Beat benchmark

Variants

  1. AC3 (formally prove that AC3 does well)
  2. AC3 MRV (see effects of MRV)
  3. AC3 LCV (see effects of LCV)
  4. AC3 MRV LCV (see effects of both)

Idea:

  1. Analytically prove that AC3 works (can also show experimentally when you compare AC3 and FC)
  2. Experimentaly test w/ MRV and LCV due to its varying effectiveness (ie MRV is more effective in general/stress tests but not in public test cases; LCV not effective alone)

General/Stress tests refer to those in this repository which has implemented the heuristics correctly. Link here. We can confirm the varying effectiveness of MRV and LCV once our experiment set up is up and running.

Explain intuitively backed by evidence why one works better in some cases but not so much in others. (eg puzzles which require diff techniques will work well w/ diff heuristics? But in general, the combination of both usually works) 3. No need to come up with new heuristics - the simple combination will almost beat the benchmark already (missed out input1 by 0.3s).

Pacman

TODO

  1. Bug for 1 test case
  2. Feature extractor

cs3243-project2's People

Contributors

larrylawl avatar bigjunnn avatar liuzechu avatar ivanteejj avatar

Watchers

James Cloos avatar  avatar

Forkers

bigjunnn

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.