Tag: python
Simulated Annealing (SA) is a meta-hurestic search approach for general problems. It is based on the process of cooling down metals. The search algorithm is simple to describe however …
Sometimes, you might want to wrap a binary file (image, executable) in your source code, to eliminate the hassle when deploying your application. You might consider using resource file …
Python is used widely in linux, windows, and other platforms to provide useful utilities. In order to write utilities, such as the shell scripts in Linux, you might need …
The problem is from codeforces: http://www.codeforces.com/problemset/problem/125/B The given input has no format errors, which makes it easy to solve because you don’t have to consider unregular situations such as …
The problem is from codeforces: http://www.codeforces.com/problemset/problem/1/A Given the size of the area and the size of the flag stone, you are asked to compute the minimal number of flagstones …