En primer lugar, esta recurrencia se puede escribir como [matemática] T (n) = 3T (n / 2) + \ Theta \ left (n * sqrt (n + 1) \ right) [/ math] = [math] 3T (n / 2) + \ Theta \ left (n * sqrt (n) \ right) [/ math] = [math] 3T (n / 2) + \ Theta \ left (n ^ {{3/2}} \ derecha) [/ matemáticas]
Ahora, usaremos el Teorema maestro, que establece que si [matemática] T (n) = aT (n / b) + f (n) [/ matemática] donde [matemática] a> = 1 [/ matemática] y [ matemáticas] b> 1 [/ matemáticas], hay tres casos siguientes:
1. Si [math] f (n) = \ Theta \ left (n ^ {{c}} \ right) [/ math] donde [math] c <\ log _ {b} a [/ math] entonces [math ] T (n) = \ Theta \ left (n ^ {{\ log _ {b} a}} \ right) [/ math]
2. Si [math] f (n) = \ Theta \ left (n ^ {{c}} \ right) [/ math] donde [math] c = \ log _ {b} a [/ math] entonces [math ] T (n) = \ Theta \ left (n ^ {{c}} logn \ right) [/ math]
3. Si [math] f (n) = \ Theta \ left (n ^ {{c}} \ right) [/ math] donde [math] c> \ log _ {b} a [/ math] luego [math ] T (n) = \ Theta \ left (f (n) \ right) [/ math]
- Cómo imprimir el conjunto de potencia de un conjunto finito de enteros en Java usando recursividad
- ¿Está 1SAT NP completo?
- ¿Cuál es una mejor especialización, CS o matemáticas?
- ¿Qué problemas matemáticos se pueden hacer con las computadoras? ¿Cómo?
- ¿Es posible crear un lenguaje completo de Turing con solo un puntero de instrucción modificable, una operación de intercambio y un incremento por una operación?
Aquí, [math] \ log_ {2} 3 = 1.585 [/ math] y [math] c = 1.5 [/ math]. Por lo tanto, el nuestro es el caso (1) y, por lo tanto, [matemáticas] T (n) = \ Theta \ left (n ^ {{\ log _ {b} a}} \ right) = \ Theta \ left (n ^ {1.585 } \ right) [/ math]