COMPLEJIDAD GHERMANO

  private NodoEneario<T> gHermano(NodoEneario<T> r, NodoEneario<T> h, T dato){
        NodoEneario<T> p=null, q, s;//3
        if(r==null)//2
            return (null);//c1
        if(r.getInfo().equals(dato)){//O(1)+O(1)
            return (h);//c2
        }
        q = r.getHijo();//O(1)+1
        while(q != null){//2+E()
            s = gHermano(q,p,dato);//t(1)
            if(s != null){//2
                return (s);//2
           
            p = q;//2
            q = q.getHermano();//O(1)+1
        }
        return (null);//c3
   
    }

T(n)=3+2+c1+2+c2+2+2+Σ(t(1)+2+2)+2+2+c3
T(n)=17+c1+c2+Σ(t(1)+4)+c3
T(n)=17+c1+c2+(nt(1)+4n)+c3

T(n)=17+C1+C2+(n*T(1))+4n+c3 i=0
T(n)=17+C1+C2+(n*T(1))+4n+c3 i=1
T(n)=34+2C1+2C2+2(n*T(1))+8n+c3 i=2
T(n)=102+3C1+3C2+3(n*T(1))+24n+c3 i=3

T(n)=k+nC1+nC2+n(n*T(1))+nn+nc3 i=n
T(n)=n+nC1+nC2+n+2n+nc3 i=n
T(n)=4n+nC1+nC2+nc3
O(n)