Meaning of lg * N in Algorithmic Analysis

前端 未结 6 1895
暖寄归人
暖寄归人 2021-02-05 05:23

I\'m currently reading about algorithmic analysis and I read that a certain algorithm (weighted quick union with path compression) is of order N + M lg * N. Apparently though th

6条回答
  •  执笔经年
    2021-02-05 05:58

    Logarithm is denoted by log or lg. In your case I guess the correct interpretation is N + M * log(N).

    EDIT: The base of the logarithm does not matter when doing asymptotic complexity analysis.

提交回复
热议问题