© Copyright 2000-2020 Source Code Online. Free Source Code and Scripts Downloads.
|Code Listing by Shao-chuan Wang|
Longest common subsequence problem is a good example of dynamic programming, and also has its significance in biological applications.
For more information about LCS, please see:
Also, here, I use a 'cached' decorator to keep core algorithm neat.
You can see how great the decorator could be. :)
Also note that, this recipe is just a...
This program will make your cpu work at a given cpu usage. It should be also able to work on machines with multi-processors. The program has been tested on Windows xp sp2 with python of version 2.5.4.
The implementation is based on the...
The utility function that converts PIL image to numpy array and vice versa.
This python submodule enable you to do the vectorize calculation, such as vectorize add, and etc.
This recipes demonstrates how to use recursive generator to implement permutation and combination.
READ BEFORE YOU USE THE CODE*
Mac OS with python obj-c wrapper built-in. Typically, Mac OS Snow leopard, or Lion comes with python wrapper of objc.
If you want to also sync to your iphone, simply enable...
Please refer to: http://en.wikipedia.org/wiki/Gray_code
The reflected binary code, also known as Gray code after Frank Gray, is a binary numeral system where two successive values differ in only one digit.
Please refer to wikipedia: http://en.wikipedia.org/wiki/Huffman_coding
Huffman coding is an entropy encoding algorithm used for lossless data compression. The term refers to the use of a variable-length code table for encoding a source...
Here I just want to keep it simple. If you want to execute a function every n second, this function should be competent. However, please note that the task is actually executed in another thread.
This is a decorator for doing the profiling of a function.
All files and free downloads are copyright of their respective owners. We do not provide any hacked, cracked, illegal, pirated version of scripts, codes, components downloads. All files are downloaded from the publishers website, our file servers or download mirrors. Always Virus check files downloaded from the web specially zip, rar, exe, trial, full versions etc. Download links from rapidshare, depositfiles, megaupload etc not published.