logo

Crowdly

Browser

Додати до Chrome

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

✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.

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%
Більше питань подібних до цього

Хочете миттєвий доступ до всіх перевірених відповідей на cvex1.ucm.es?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!

Browser

Додати до Chrome