El “problema de los matrimonios estables”
El “problema de los matrimonios estables”
El “problema de los matrimonios estables”
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
algoritmo ensaya(ent h:hombre)<br />
variable r:rango<br />
principio<br />
para r:=1 hasta n hacer<br />
seleccionar preferencia r-ésima <strong>de</strong>l hombre h;<br />
si aceptable entonces<br />
registrar pareja;<br />
si h