chesarin / ai-1 Goto Github PK
View Code? Open in Web Editor NEWartificial intelligence 1
artificial intelligence 1
Antonio Cesar Vargas Queens College Fall 2010 Program 2 A* program in order to solve 9 square puzzle problem. Input:Two 9x9 square of number separated with space. The first one is your goal node, and the second one is the start node. Output:You will get a solution to the puzzle including every step that it took in order to get the goal node. The following is the A* algorithm. Create a list called OpenList Create a list called ClosedList Create a new state for the initial node and the evaluate f*. Insert new state s into OpenList while OpenList is not empty current_node <- OpenList.pop(); ClosedList.push( current_node ); if ( current_node == goal ) return current_node; else children_current_node <- expand(current_node); for each child j of current_node evaluate f* on each j if not member (OpenList) and not member (ClosedList) OpenList.insert(j); current_node.link(j); else if f* of j is bettern than f* of j in OpenList Replace(OpenList,j); current_node.link(j); if f* of j is better than f* of j value in ClosedList ClosedList.remove(j); OpenList.insert(j); current_node.link(j);
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.