You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
BusquedaAnchura(V,E,s)Para cada vertice u en V-svisitado[u]=FALSE, d[u]=infinito,p[u]=NILvisitado[s]=TRUE,d[s]=0,p[s]=NILEncueue(Q,s)While(NoVacia(Q))u=Head(Q)para cada v en adj(u)if visitado[v]=FALSEd[v]=d[u]+1,p[v]=uEnqueue(Q,v)visitado[v]=TRUEDequeue(Q)