This script should go into the experiments/katz_topk directory of the fast-katz experimental codes from the Internet Mathematics paper.

see here:

http://www.cs.purdue.edu/homes/dgleich/publications/2011/codes/fast-katz/

for the codes which would need to be modified.
