So i went to a programming contest in my city, and won first place. Soon i'm going to goto next contest.
The problem is that i dunno any algorithms, so is there a web page that someone knows of with algorithms.
( such as knapsack, pathfinding, ...)
So i went to a programming contest in my city, and won first place. Soon i'm going to goto next contest.
The problem is that i dunno any algorithms, so is there a web page that someone knows of with algorithms.
( such as knapsack, pathfinding, ...)
lu lu lu I've got some apples lu lu lu You've got some too lu lu lu Let's make some applesauce Take off our clothes and lu lu lu
a website? not off the top of my head... If you willing to pay a smidge the following book has some nice algorithms:
AI for Game Developers
Publisher : O'Reilly
Pub Date : July 2004
ISBN : 0-596-00555-5
Pages : 400
Other than that I can't help yah.. sorry
well i'm looking for a free resource.
lu lu lu I've got some apples lu lu lu You've got some too lu lu lu Let's make some applesauce Take off our clothes and lu lu lu
Could take a look at:
The Algorithm Design Manual
Dictionary of Algorithms and Data Structures
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
*goes into nostalgic flashback after seeing the word "Hypertext"*
Go to gamedev.net and look under articles and resources.
en.wikipedia.org
Just peek around. May not be 100% accurate, but it's real good.
Code:#include <stdio.h> void J(char*a){int f,i=0,c='1';for(;a[i]!='0';++i)if(i==81){ puts(a);return;}for(;c<='9';++c){for(f=0;f<9;++f)if(a[i-i%27+i%9 /3*3+f/3*9+f%3]==c||a[i%9+f*9]==c||a[i-i%9+f]==c)goto e;a[i]=c;J(a);a[i] ='0';e:;}}int main(int c,char**v){int t=0;if(c>1){for(;v[1][ t];++t);if(t==81){J(v[1]);return 0;}}puts("sudoku [0-9]{81}");return 1;}