logo

Crowdly

Browser

Add to Chrome

Partimos de la siguiente función void mi_funcion(const BinTree &t) { if (t.e...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Partimos de la siguiente función

void mi_funcion(const BinTree &t) {

if (t.empty()) {

// No hacemos nada

} else {

mi_funcion(t.left());

mi_funcion(t.right());

g(t.left());

g(t.right());

}

}

Si suponemos que el árbol de entrada t es un árbol degenerado y que tiene tamaño , y que la función g() tiene coste en tiempo lineal con respecto al tamaño del árbol que recibe como parámetro. ¿Cuál es el orden de complejidad de esta función?

0%
0%
0%
0%
More questions like this

Want instant access to all verified answers on cvex1.ucm.es?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome