• recategorized by
3,717 views
0 0 votes

The solution of the recurrence relation $T(m) = T(3m/4)+1$ is

  1. $\Theta (\lg \: m)$
  2. $\Theta (m)$
  3. $\Theta (m\lg  m)$
  4. $\Theta (\lg\lg  m)$

4 Answers

3 3 votes

for T(m) = aT(m/b) + mklogpm

a = 1 (satisfies,  required a >=1)

b=4/3 (satisfies, required b>1)

k = 0 (satisfies, k>=0)

p=0 (satisfies, required p can be any real number)

we can Apply master's Theorem

now comparing a and bk  ,we will get a = bk

so, go for case when  a = bk  and p > -1

we get T(m)= ⊖(mlogbalog p+1m) = ⊝(mlog4/31log m) = ⊝ (log m)

2 2 votes

 in this problem use master theorm:

  T(m) = aT(m/b) + f(m)

   compare both equation   a = 1;  b = 4/3

     m^(log b a)  =  m ^0  = 1

      whenever       m^(log b a)  and f(m) is equal than  answer is  f(m)* logm

 hence correct answer  1* log(m) = log(m)

1 1 vote

Option A

Using Master's Thm:
$T(m) = aT(\frac{m}{b}) + \Theta (n^{k} log^pn)$ 

here , a =1, b= 4/3, k=0, p=0
hence  a = $b^k$ and p>-1
then, $T(m) = \Theta (n^{\log a}\log^{p+1}m )$
= $\Theta (n^0 \log ^1m )$ =
$\Theta(\log m)$


 

Answer:
Position:
Show:

Related questions

1 1 vote
1 1 answer
3.1k
3.1k views
Pooja Khatri asked Jul 13, 2018
3,136 views
Match the following with respect to algorithm paradigms :$\begin{array}{clcl} & \textbf{List-I} & {} & \textbf{List-II} \\ \text{(a)} & \text{The 8-Queen's problem} & \t...
0 0 votes
2 2 answers
3.0k
3.0k views
Pooja Khatri asked Jul 13, 2018
3,003 views
Consider a Boolean function of 'n' variables. The order of an algorithm that determines whether the Boolean function produces a output 1 isLogarithmicLinearQuadraticExpon...
1 1 vote
2 2 answers
3.4k
3.4k views
Pooja Khatri asked Jul 13, 2018
3,443 views
The definitions in an XML document are said to be ______ when the tagging system ans definitions in the DTD are all in compliancewell-formedreasonablevalidlogical
1 1 vote
1 1 answer
4.5k
4.5k views
Pooja Khatri asked Jul 13, 2018
4,512 views
Consider the JavaScript Code:var y=”12” function f() { var y=”6”; alert (this.y); function g() {alert (y); } g(); } f();If $M$ is the number of alert dialog boxes generat...