In the statement “The weighted quick-union algorithm follows at most lg N pointers to determine whether two of N objects are connected” what does lg stand for?
In the statement The weighted quick-union algorithm follows at most lg N pointers to
Share
lg Nstands for the logarithm ofN. It is common in computing to uselg(in contrast tolog) to explicitly mean the base-2 logarithm, but that’s not universal.