Human behavior and the principle of least effort