Discovering power laws in computer programs
Abstract
The power-law regularities have been discovered behind many complex natural and social phenomenons. We discover that the power-law regularities, especially the Zipf’s and Heaps’ laws, also exist in large-scale software systems. We find that the distribution of lexical tokens in modern Java, C++ and C programs follows Zipf–Mandelbrot law, and the growth of program vocabulary follows Heaps’ law. The results are obtained through empirical analysis of real-world software systems. We believe our discovery reveals the statistical regularities behind computer programming.
BibTeX
@article{zhang2009discovering,
author = {Hongyu Zhang},
title = {{Discovering power laws in computer programs}},
journal = {Information Processing \& Management},
year = {2009},
doi = {10.1016/j.ipm.2009.02.001},
}Ask Althea to put this paper to the test.
Loading related content...