From Mad in Brasil: The article explains that the algorithm is defined by a set of predetermined factors that will cross-reference information considered relevant to a desired solution. In the case of euthanasia, it would be deciding whether a person meets the prerequisites for the claim, which is to shorten their own life. This algorithm is a project carried out by Exit International created by Australian doctor Philip Nitschke, who is working to make a computer capable of performing an easy-to-interact psychiatric test.
Read the full article here and the English translation here.