My hypothesis for artificial intelligence to have the same algorithms as humans : All humans are selfish. Altruistic behavior is also done because humans are selfish.