Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged recurrence-relation
0
votes
2
answers
241
Kenneth Rosen Edition 6th Exercise 7.1 Question 23 (Page No. 458)
Find a recurrence relation for the number of bit strings of length n that contains a pair of consecutive 0s
Find a recurrence relation for the number of bit strings of length n that contains a pair of consecutive 0s
aditi19
471
views
aditi19
asked
Dec 14, 2018
Combinatory
kenneth-rosen
discrete-mathematics
recurrence-relation
+
–
1
votes
2
answers
242
#discrete matmatics
recurrence relation 2a$_{n}=a_{n-1}+2^{n}$ intial condtion a$_{0}$=1 value of a$_{100}$
recurrence relation 2a$_{n}=a_{n-1}+2^{n}$ intial condtion a$_{0}$=1 value of a$_{100}$
amit166
490
views
amit166
asked
Dec 12, 2018
Combinatory
recurrence-relation
+
–
0
votes
1
answer
243
Kenneth Rosen Edition 6th Exercise 6.1 Example 7 (Page No. 399)
this is an example taken from Rosen. but I’m unable to understand to understand the solution given there can someone pls explain me in details
this is an example taken from Rosen. but I’m unable to understand to understand the solution given therecan someone pls explain me in details
aditi19
400
views
aditi19
asked
Dec 10, 2018
Combinatory
kenneth-rosen
discrete-mathematics
recurrence-relation
counting
+
–
0
votes
0
answers
244
SELF DOUBT GENERATING FUNCTION
Difference between getting closed form of generating function and closed form of the given sequence ,pls someone explain with an example
Difference between getting closed form of generating function and closed form of the given sequence ,pls someone explain with an example
codingo1234
307
views
codingo1234
asked
Dec 10, 2018
Combinatory
generating-functions
recurrence-relation
+
–
0
votes
3
answers
245
NIELIT 2018-75
For the given recurrence equation $\begin{array} T(n) & =2T(n-1), &\text{if } n>0 \\ & =1, & \text{otherwise} \end{array}$ $O(n \log n)$ $O(n^2)$ $O(2^n)$ $O(n)$
For the given recurrence equation$\begin{array} T(n) & =2T(n-1), &\text{if } n>0 \\ & =1, & \text{otherwise} \end{array}$$O(n \log n)$$O(n^2)$$O(2^n)$$O(n)$
Arjun
1.6k
views
Arjun
asked
Dec 7, 2018
Algorithms
nielit-2018
algorithms
recurrence-relation
+
–
0
votes
2
answers
246
Ace Test Series: Algorithms - Time Complexity
What is the time complexity of T(n) = T(n/3) + T(n/9) +n?
What is the time complexity of T(n) = T(n/3) + T(n/9) +n?
Nidhi Budhraja
707
views
Nidhi Budhraja
asked
Nov 29, 2018
Algorithms
algorithms
recurrence-relation
ace-test-series
+
–
0
votes
0
answers
247
Doubt : Recurrence Relation.
T(n)=T(n-1)*(n-1)+1 hints : define R(n) = T(n)/(n-1)! solve the recurrence for R(n) express T(n) as a function of R(n) How to proceed , i am not getting it ? Can i reduce it to the form so that i can use masters theorem.
T(n)=T(n-1)*(n-1)+1 hints :define R(n) = T(n)/(n-1)!solve the recurrence for R(n)express T(n) as a function of R(n) How to proceed , i am not getting it ?Can i reduce it ...
HeadShot
549
views
HeadShot
asked
Nov 27, 2018
Algorithms
recurrence-relation
+
–
0
votes
1
answer
248
#time complexity
T(n)=4T(n/2)+n$^{2}\sqrt{2}$ T.C
T(n)=4T(n/2)+n$^{2}\sqrt{2}$ T.C
amit166
556
views
amit166
asked
Nov 24, 2018
Algorithms
algorithms
recurrence-relation
+
–
0
votes
0
answers
249
ace academy test series
Please explain in some detail.
Please explain in some detail.
amitqy
350
views
amitqy
asked
Nov 23, 2018
Combinatory
recurrence-relation
discrete-mathematics
+
–
1
votes
1
answer
250
How is the time Complexity of this problem O(n log log n)?
int A(int n){ for(i = 1; i < n; i++) for(j = 1; j < i; j *= 2) for(k = j; k >= 1; k /= 2) if(n = 0) return 1; else{ for(z = 0; z < n; z++){ // do something } } } How do find the complexity of this problem? The answer is supposed to be O(n log log n), but it maybe wrong.
int A(int n){ for(i = 1; i < n; i++) for(j = 1; j < i; j *= 2) for(k = j; k >= 1; k /= 2) if(n = 0) return 1; else...
gmrishikumar
4.2k
views
gmrishikumar
asked
Nov 22, 2018
Algorithms
algorithms
time-complexity
recurrence-relation
programming-in-c
+
–
4
votes
2
answers
251
T(n) = sqrt(n) * T(sqrt(n)) + n
T(n) = sqrt(n) * T(sqrt(n)) + n Given solution is O(log log n). But my solution is O(n log log n). 'wolframalpha'' shows the answer same as mine. You can find the solution here. Can anyone confirm the solution and provide an explantion?
T(n) = sqrt(n) * T(sqrt(n)) + n Given solution is O(log log n). But my solution is O(n log log n).'wolframalpha'' shows the answer same as mine. You can find the solution...
gmrishikumar
11.5k
views
gmrishikumar
asked
Nov 22, 2018
Algorithms
algorithms
recurrence-relation
time-complexity
+
–
0
votes
0
answers
252
SELF DOUBT MADEESY TEST
WHAT IS RECURRENCE RELATION ? I M GETTING T(n-2)+1
WHAT IS RECURRENCE RELATION ?I M GETTING T(n-2)+1
eyeamgj
535
views
eyeamgj
asked
Nov 19, 2018
Algorithms
time-complexity
recurrence-relation
+
–
0
votes
1
answer
253
recurrence relation
T(n)=5 T ($\frac{n}{2}$+16) + n2 please tell the solution as i m getting confused
T(n)=5 T ($\frac{n}{2}$+16) + n2please tell the solution as i m getting confused
LavTheRawkstar
725
views
LavTheRawkstar
asked
Nov 18, 2018
Algorithms
recurrence-relation
algorithms
+
–
0
votes
0
answers
254
Time Complexity
How to solve the following recurrence relation? T(n) = T(n-6) + n2 , n>7 T(n) = 1 , n<= 7
How to solve the following recurrence relation?T(n) = T(n-6) + n2 , n>7T(n) = 1 , n<= 7
garvit_vijai
474
views
garvit_vijai
asked
Nov 17, 2018
Algorithms
time-complexity
asymptotic-notation
recurrence-relation
algorithms
+
–
1
votes
1
answer
255
What is the value of T(n) for the given recurrence relation
T(n)=T(n/2)+2; T(1)=1 when n is power of 2 the correct expression for T(n) is: a) 2(logn+1) b) 2logn c)logn+1 d)2logn+1
T(n)=T(n/2)+2; T(1)=1when n is power of 2 the correct expression for T(n) is:a) 2(logn+1)b) 2lognc)logn+1d)2logn+1
sripo
1.6k
views
sripo
asked
Nov 14, 2018
Algorithms
recurrence-relation
algorithms
time-complexity
jest
+
–
0
votes
1
answer
256
test series - Testbook
Which of the following functions given by their recurrences grows the fastest asymptotically? $T(n) = 8T(n/4) + 100n^2$ $T(n) = 81T(n/9) + 10n^2$ $T(n) = 16T(n/4)+ 100(n \log n)^{1.99}$ $T(n) = 100T(n/100)+ n \log^2 n$
Which of the following functions given by their recurrences grows the fastest asymptotically?$T(n) = 8T(n/4) + 100n^2$$T(n) = 81T(n/9) + 10n^2$$T(n) = 16T(n/4)+ 100(n \lo...
Shubham Aggarwal
1.2k
views
Shubham Aggarwal
asked
Nov 13, 2018
Algorithms
asymptotic-notation
recurrence-relation
testbook-test-series
+
–
0
votes
1
answer
257
Self Doubt
What is order of T(n) ? T(n) = T(n-1) + 2$^{n}$ , n>1 T(n) = 1 , n=1 A) O(2$^{n}$) B) O(n.2$^{n}$) C) O(2$^{2n}$)
What is order of T(n) ?T(n) = T(n-1) + 2$^{n}$ , n>1T(n) = 1 , n=1A) O(2$^{n}$)B) O(n.2$^{n}$)C) O(2$^{2n}$)
Vipin Rai
258
views
Vipin Rai
asked
Nov 12, 2018
Algorithms
recurrence-relation
time-complexity
+
–
0
votes
1
answer
258
Please solve this recurence relation.... How we got option--a.
The recurrence equation: T(1) = 1 T(n) = 2T(n - 1) + n, n ≥ 2 evaluates to (a) 2n + 1 - n – 2 (b) 2n – n (c) 2n + 1 – 2n – 2 (d) 2n – n Solution: Option (a)
The recurrence equation:T(1) = 1T(n) = 2T(n - 1) + n, n ≥ 2evaluates to(a) 2n + 1 - n – 2 (b) 2n – n(c) 2...
Mak Indus
769
views
Mak Indus
asked
Nov 5, 2018
Algorithms
algorithms
recurrence-relation
+
–
0
votes
2
answers
259
Karumanchi
aditi19
863
views
aditi19
asked
Nov 4, 2018
Algorithms
algorithms
time-complexity
recurrence-relation
+
–
0
votes
1
answer
260
recurrence equation:
T(1) = 1 T(n) = 2T(n - 1) + n, n ≥ 2 evaluates to (a) 2n + 1 - n – 2 (b) 2n – n (c) 2n + 1 – 2n – 2 (d) 2n – n HOW TO EVALUATES USING MASTER THEOREM
T(1) = 1 T(n) = 2T(n - 1) + n, n ≥ 2 evaluates to(a) 2n + 1 - n – 2(b) 2n – n(c) 2n + 1 – 2n – 2(d) 2n – n HOW TO EVALUATES USING MASTER THEOREM
altamash
405
views
altamash
asked
Nov 2, 2018
Algorithms
recurrence-relation
master-theorem
+
–
0
votes
1
answer
261
Recurrence Relations
Given $T(n)=T(\frac{n}{4})+T(\frac{n}{2})+n^{2},$ then $A)T(n)=\theta(n^{3})$ $B)T(n)=\theta(n^{2}logn)$ $C)T(n)=\theta(n^{2})$ $D)T(n)=\theta(n^{3}logn)$
Given $T(n)=T(\frac{n}{4})+T(\frac{n}{2})+n^{2},$ then$A)T(n)=\theta(n^{3})$ $B)T(n)=\theta(n^{2}logn)$ $C)T(n)=\theta(n^{2})$ ...
Lakshman Bhaiya
431
views
Lakshman Bhaiya
asked
Nov 1, 2018
Algorithms
algorithms
recurrence-relation
time-complexity
+
–
0
votes
1
answer
262
Karumanchi
what is the time complexity of function(int n) { if(n<=1) return; for(int i=1; i<n; i++) { printf("*"); } function(0.8n); } i'm getting O(nlogn base 5/4) using the recurrence relation method but in the book it's given O(n) $T(n)=T(\frac{4n}{5})+O(n)$
what is the time complexity offunction(int n){ if(n<=1) return; for(int i=1; i<n; i++) { printf("*"); } ...
aditi19
1.2k
views
aditi19
asked
Oct 31, 2018
Algorithms
algorithms
time-complexity
recurrence-relation
+
–
0
votes
1
answer
263
Analysis of algorithms of recurrence relation
I want to learn to find time complexity of the recurrence relation of an algorithm. Please suggest some good links or any gatetoverflow imp questions links to look as examples . Thanks
I want to learn to find time complexity of the recurrence relation of an algorithm.Please suggest some good links or any gatetoverflow imp questions links to look as exam...
Mayankprakash
858
views
Mayankprakash
asked
Oct 31, 2018
Algorithms
algorithms
recurrence-relation
+
–
1
votes
1
answer
264
Time Complexity
how to compute time complexity of this kind of recurrence relation- T(n)=T(n/2)+T(n/4)+T(n/8)+n
how to compute time complexity of this kind of recurrence relation-T(n)=T(n/2)+T(n/4)+T(n/8)+n
aditi19
875
views
aditi19
asked
Oct 27, 2018
Algorithms
time-complexity
algorithms
asymptotic-notation
recurrence-relation
+
–
0
votes
0
answers
265
Recurrence relation
Let $a_{n}$ be the number of $n$-bit strings that do NOT contain two consecutive $1's.$ Which one of the following is the recurrence relation for $a_{n}?$ $a_{n}=a_{n-1}+2a_{n-2}$ $a_{n}=a_{n-1}+a_{n-2}$ $a_{n}=2a_{n-1}+a_{n-2}$ $a_{n}=2a_{n-1}+2a_{n-2}$
Let $a_{n}$ be the number of $n$-bit strings that do NOT contain two consecutive $1's.$ Which one of the following is the recurrence relation for $a_{n}?$$a_{n}=a_{n-1}+2...
Lakshman Bhaiya
484
views
Lakshman Bhaiya
asked
Oct 24, 2018
Combinatory
discrete-mathematics
recurrence-relation
relations
+
–
0
votes
1
answer
266
Quick Sort
In Quicksort let n/7 th smallest element is chosen using an O(n2 ) algorithm as the pivot. Calculate the worst case time complexity of the algorithm.
In Quicksort let n/7 th smallest element is chosen using an O(n2 ) algorithm as thepivot. Calculate the worst case time complexity of the algorithm.
Purvi Agrawal
3.8k
views
Purvi Agrawal
asked
Oct 13, 2018
Algorithms
quick-sort
algorithms
time-complexity
recurrence-relation
+
–
0
votes
3
answers
267
Merge Sort Doubt
what is the recurrence relation for merge sort?
what is the recurrence relation for merge sort?
aditi19
1.2k
views
aditi19
asked
Oct 6, 2018
Algorithms
merge-sort
algorithms
time-complexity
recurrence-relation
sorting
divide-and-conquer
+
–
0
votes
2
answers
268
Recurrence Relation
Let $T(n) = T(n-1) + \frac{1}{n} , T(1) = 1 ;$ then $T(n) = ? $ $O(n^{2})$ $O(logn)$ $O(nlogn)$ $O(n^{2}logn)$
Let $T(n) = T(n-1) + \frac{1}{n} , T(1) = 1 ;$ then $T(n) = ? $$O(n^{2})$$O(logn)$$O(nlogn)$$O(n^{2}logn)$
Lakshman Bhaiya
1.5k
views
Lakshman Bhaiya
asked
Oct 5, 2018
Combinatory
discrete-mathematics
recurrence-relation
relations
+
–
0
votes
1
answer
269
Homework
T(n)=0.5T(n/2)+n^3 How to solve this using recurrence method?
T(n)=0.5T(n/2)+n^3How to solve this using recurrence method?
Mariela Prasetyo
2.8k
views
Mariela Prasetyo
asked
Oct 5, 2018
Algorithms
recurrence-relation
+
–
5
votes
3
answers
270
recurrence relation MIT
$T(n)=\sqrt{n} T(\sqrt{n})+100n$ Please solve this.
$T(n)=\sqrt{n} T(\sqrt{n})+100n$Please solve this.
sushmita
2.2k
views
sushmita
asked
Oct 4, 2018
Algorithms
recurrence-relation
algorithms
time-complexity
discrete-mathematics
+
–
Page:
« prev
1
...
4
5
6
7
8
9
10
11
12
13
14
...
24
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register