as2d3 / artificial-intelligence-lab Goto Github PK
View Code? Open in Web Editor NEWFor all the examples, test programs and assignments
License: MIT License
For all the examples, test programs and assignments
License: MIT License
Unable to understand the larger_heuristic. Add an explanation why it is indeed a pessimistic approach in the code.
The various methods of the A-star are needed to be written in a modular fashion as it's cumbersome to manage or introduce a change if required in future. Also, it reduce the code redundancy and make the code more readable
Use of the variable string_to_matrix_mapping
is not clear. Specifically, why is its value = goal when it is about to be put in open_list
and puzzle_state.puzzle_configuration
later on.
Some comments in the code would be helpful
puzzle.py
contains class. Need to change the name to Puzzle.py
.
This issue is related to few of the recent commits, namely: e821612, ba8fc03 and a60d6fe.
These commits were made to add a more intuitive Manhattan distance calculator which runs in 34 iterations which is almost 10 times slower than the previous Manhattan distance calculator. Also, I don't think that the previous functions were a lot less intuitive. They were intuitive enough if run through some examples first.
Another problem is that new Manhattan distance calculator calculates the movement of blank tile as well which is wrong. If we include the movement of blank tile as well in the sum then h(n)
may get bigger than h*(n)
, which we don't want.
Please revert back this to older commits.
Also, from next time, please refrain from editing the code before commenting on the commit about the problem faced. You can comment on the commits in this way: Example of a comment. Use commenting as much as possible for better code communication.
How this can be done?
There may be many method, I am stating one of the methods.
git add .vscode
git commit -m "Removing .vscode folder"
git push origin master
Please let me know if you face any problems.
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.