Answer the question
In order to leave comments, you need to log in
The base of the logarithm in estimating the complexity of the nlog(n) algorithm
Hello.
I started to learn algorithms, by education not IT in any way.
I can not understand. Let's say BigO for Merge Sort - nlog(n)
What is the base of this logarithm? Natural ln, decimal lg. Unclear.
Answer the question
In order to leave comments, you need to log in
Depending on how many parts the array is divided into, this will be the base of the logarithm.
One property of this notation is to drop constants before members, as well as lower (less rapidly growing) members. In addition, log[base=a](N)=log[base=b](N)/log[base=b](a), i.e. changing the base of the logarithm effectively changes the constant in front of the corresponding term, which is generally not taken into account ('suppressed') by O-notation.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question