回答:
対数がどこにあるかによります。それが単なる係数である場合、大きなOまたは使用すると定数を乗算できるため、違いはありません。
あなたが取る場合はその後、ベースが重要です。基数2にはだけがあり、基数10には約ます。
漸近的な表記は定数因子の忘れであり、任意の2つの対数は、一定の係数によって異なるので、ベースは違いはありません:すべてについて、B > 1。そのため、漸近表記を使用する場合、対数の底を指定する必要はありません。
In most cases, it's safe to drop the base of the logarithm because, as other answers have pointed out, the change-of-basis formula for logarithms means that all logarithms are constant multiples of one another.
There are some cases where this isn't safe to do. For example, @gnasher729 has pointed out that if you have a logarithm in an exponent, then the logarithmic base is indeed significant.
I wanted to point out another case where the base of the logarithm is significant, and that's cases where the base of the logarithm depends directly on a parameter specified as input to the problem. For example, the radix sort algorithm works by writing out numbers in some base , decomposing the input numbers into their base- digits, then using counting sort to sort those numbers one digit at a time. The work done per round is then and there are roughly rounds (where is the maximum input integer), so the total runtime is . For any fixed integer this simplifies to . However, what happens if isn't a constant? A clever technique is to pick , in which case the runtime simplifies to . Since = , the overall expression simplifies to . Notice that, in this case, the base of the logarithm is indeed significant because it isn't a constant with respect to the input size. There are other algorithms that have similar runtimes (an old analysis of disjoint-set forests ended up with a term of somewhere, for example), in which case dropping the log base would interfere with the runtime analysis.
Another case in which the log base matters is one in which there's some externally-tunable parameter to the algorithm that control the logarithmic base. A great example of this is the B-tree, which requires some external parameter . The height of a B-tree of order is , where the base of the logarithm is significant in that is not a constant.
To summarize, in the case where you have a logarithm with a constant base, you can usually (subject to exceptions like what @gnasher729 has pointed out) drop the base of the logarithm. But when the base of the logarithm depends on some parameter to the algorithm, it's usually not safe to do so.