joshuaguerin / answer-set-programming-algorithms Goto Github PK
View Code? Open in Web Editor NEWImplementation of classical problems in Computer Science in the Answer Set Solving dialect of Clingo.
Implementation of classical problems in Computer Science in the Answer Set Solving dialect of Clingo.
It feels a bit obvious, but I think that is the curse of knowledge. Queens is so common because it is a great illustration. Probably going to add.
Pretty simple example, I think.
Bin Packing?
We are starting to get occasional traffic and stargazers, so let's clean things up and make them presentable.
Going to pull partial/non-working solutions into their own branches to keep the main page clean.
Max Flow is likely worthy of a formal treatment.
Algorithm is highly inefficient and likely broken. Need to circle back to examine overall representation/strategy and correctness.
Current grid constraint is ugly and not terribly elegant. I think a solution is to be had that involves div or mod that greatly reduces the complexity of the final 2 constraints.
At the start I've avoided puzzles, but they are likely to carry useful lessons for the reader. Sudoku is one of the standard examples.
Do it.
Current problem list:
Create a shared scripting directory that includes (minimally) more generalized parsing functionality. This is shared among all instances, so this will go a long way to clean up individual code files and improve the ease of writing new Python source.
Primes was pretty trivial. Perfect numbers would likely be another good example.
A couple of the algorithms have pretty-printers in the validate
directory. Should look into doing so for more algorithms.
Current problem list:
Is it correct?
Can I make it better looking?
Not 100% certain on that last one. Two thoughts:
I think we may be closing rapidly in on minimizing the ugly here.
Initial solution for W-G-C problem printer had crashing upon unsat. Need to locate any similarly misbehaving scripts and fix for user friendliness.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.