retagged by
6,785 views
1 votes
1 votes

Which of the following is asymptotically smaller?

  1. lg(lg*n)
  2. lg*(lgn)
  3. lg(n!)
  4. lg*(n!)
retagged by

1 Answer

Best answer
5 votes
5 votes
lg *n, (Inverse Ackermann function) is the number of times we can take log repeatedly until we get 1. This function can almost be considered constant for all practical purposes.

There shouldn't be any confusion regarding options C and D as n! is asymptotically larger than lg n.

A) lg (lg * n)
B) lg * (lg n)

As per the definition of lg *, we can write B as

lg * (lg n) = lg * n - 1.

So, A is asymptotically lower than B.

A < B < D < C.
selected by
Answer:

Related questions

3 votes
3 votes
1 answer
3
go_editor asked Jul 31, 2016
3,309 views
An all-pairs shortest-paths problem is efficiently solved using:Dijkstra's algorithmBellman-Ford algorithmKruskal algorithmFloyd-Warshall algorithm
4 votes
4 votes
3 answers
4