Sunday, October 01, 2006

juZ for fun

took it from one of my coursemate blog..
haha.. it's cute..
mayb it's becoz i have lost contact with programming..
so when i see this..
i find it rather amusing..

function stableMatching {
Initialize all m M and w W to free
while free man m who still has a woman w to propose to {
w = m’s highest ranked such woman
if w is free
engage (m, w)
else some pair (m’, w) already exists
if w prefers m to m’
(m, w) become married
m’ becomes free
else
(m’, w) remain married
}
}


HAAPY CHILDREN'S DAY TO ALL!

No comments: