According to the Halstead's software metrics:
Estimated program length:
Can you please explain me, why the formula uses logarithm to base 2? Why not something else? Why exactly logarithm? What’s the reason? Is that somehow related to how we think?
I understand that allows to determine internal computer (bits) representation of n, but in this case n is just number of operators/operands. So, I really do not understand what this estimation represents and why the formula looks like this?