Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  For parameters a and b, both of which are &om... Start Learning for Free
For parameters a and b, both of which are ω(1), T(n)=T(n1/a)+1, and T(b)=1. Then T(n) is
  • a)
    Θ(logalogbn)
  • b)
    Θ(logabn)
  • c)
    Θ(logblogan)
  • d)
    Θ(log2log2n)
Correct answer is option 'A'. Can you explain this answer?
Verified Answer
For parameters a and b, both of which are ω(1), T(n)=T(n1/a)+1, ...
Given,
T(n) = T(n1/a)+1, T(b) = 1
Now, using iterative method,
= T(n) = [T(n1/a2)+1] + 1 = [T(n1/a3)+1] + 2 = [T(n1/a4)+1] + 3 . . . = [T(n1/ak)+1] + (k-1) = T(n1/ak) + k
Let,
→ n1/ak = b → log(n1/ak) = log(b) → ak = log(n) / log (b) = logb(n) → k = logalogb(n)
Therefore,
= T(n1/ak) + k = T(b) + logalogb(n) = 1 + logalogb(n) = Θ(logalogb(n))
Option (A) is correct.
View all questions of this test
Most Upvoted Answer
For parameters a and b, both of which are ω(1), T(n)=T(n1/a)+1, ...
Explanation:
T(n) = T(n1/a) + 1 represents a recursive function where the input size decreases by a factor of a each time, and the function makes constant time operations at each step.

Using Master Theorem:
- We can apply the Master Theorem to analyze the time complexity of the given recursive function T(n).
- According to the Master Theorem, if T(n) = aT(n/b) + f(n), where a >= 1, b > 1, and f(n) is a polynomial function, then:
- If f(n) = Θ(nc) where c < />ba, then T(n) = Θ(nlogba).
- If f(n) = Θ(nc) where c = logba, then T(n) = Θ(nc * log n).
- If f(n) = Θ(nc) where c > logba, then T(n) = Θ(f(n)).

Applying Master Theorem:
- In this case, a = 1, b = a, and f(n) = 1.
- We have c = 0, which is less than logab = log11 = 0.
- Therefore, according to the Master Theorem, T(n) = Θ(logan) = Θ(log n).

Conclusion:
- The correct answer is option 'A' (Θ(log n)), as the time complexity of the given recursive function T(n) is logarithmic in nature.
Free Test
Community Answer
For parameters a and b, both of which are ω(1), T(n)=T(n1/a)+1, ...
Given,
T(n) = T(n1/a)+1, T(b) = 1
Now, using iterative method,
= T(n) = [T(n1/a2)+1] + 1 = [T(n1/a3)+1] + 2 = [T(n1/a4)+1] + 3 . . . = [T(n1/ak)+1] + (k-1) = T(n1/ak) + k
Let,
→ n1/ak = b → log(n1/ak) = log(b) → ak = log(n) / log (b) = logb(n) → k = logalogb(n)
Therefore,
= T(n1/ak) + k = T(b) + logalogb(n) = 1 + logalogb(n) = Θ(logalogb(n))
Option (A) is correct.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Question Description
For parameters a and b, both of which are ω(1), T(n)=T(n1/a)+1, and T(b)=1. Then T(n) isa)Θ(logalogbn)b)Θ(logabn)c)Θ(logblogan)d)Θ(log2log2n)Correct answer is option 'A'. Can you explain this answer? for Computer Science Engineering (CSE) 2026 is part of Computer Science Engineering (CSE) preparation. The Question and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus. Information about For parameters a and b, both of which are ω(1), T(n)=T(n1/a)+1, and T(b)=1. Then T(n) isa)Θ(logalogbn)b)Θ(logabn)c)Θ(logblogan)d)Θ(log2log2n)Correct answer is option 'A'. Can you explain this answer? covers all topics & solutions for Computer Science Engineering (CSE) 2026 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for For parameters a and b, both of which are ω(1), T(n)=T(n1/a)+1, and T(b)=1. Then T(n) isa)Θ(logalogbn)b)Θ(logabn)c)Θ(logblogan)d)Θ(log2log2n)Correct answer is option 'A'. Can you explain this answer?.
Solutions for For parameters a and b, both of which are ω(1), T(n)=T(n1/a)+1, and T(b)=1. Then T(n) isa)Θ(logalogbn)b)Θ(logabn)c)Θ(logblogan)d)Θ(log2log2n)Correct answer is option 'A'. Can you explain this answer? in English & in Hindi are available as part of our courses for Computer Science Engineering (CSE). Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free.
Here you can find the meaning of For parameters a and b, both of which are ω(1), T(n)=T(n1/a)+1, and T(b)=1. Then T(n) isa)Θ(logalogbn)b)Θ(logabn)c)Θ(logblogan)d)Θ(log2log2n)Correct answer is option 'A'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of For parameters a and b, both of which are ω(1), T(n)=T(n1/a)+1, and T(b)=1. Then T(n) isa)Θ(logalogbn)b)Θ(logabn)c)Θ(logblogan)d)Θ(log2log2n)Correct answer is option 'A'. Can you explain this answer?, a detailed solution for For parameters a and b, both of which are ω(1), T(n)=T(n1/a)+1, and T(b)=1. Then T(n) isa)Θ(logalogbn)b)Θ(logabn)c)Θ(logblogan)d)Θ(log2log2n)Correct answer is option 'A'. Can you explain this answer? has been provided alongside types of For parameters a and b, both of which are ω(1), T(n)=T(n1/a)+1, and T(b)=1. Then T(n) isa)Θ(logalogbn)b)Θ(logabn)c)Θ(logblogan)d)Θ(log2log2n)Correct answer is option 'A'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice For parameters a and b, both of which are ω(1), T(n)=T(n1/a)+1, and T(b)=1. Then T(n) isa)Θ(logalogbn)b)Θ(logabn)c)Θ(logblogan)d)Θ(log2log2n)Correct answer is option 'A'. Can you explain this answer? tests, examples and also practice Computer Science Engineering (CSE) tests.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Explore Courses
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev