Re: algorithm for making humans happy
"step 1: kill all humans"
In Yeat's Wanderings of Oisin, Oisin is transported to the realm of the fairies. While there he plays his harp and the fairies beg him to stop because of its unendurable sadness. Best not add the works of Yeats to the AI's database or your scenario might eventuate.