Last year, a friend came to me with a strange tech problem. “The algorithm is screwing me over,” he said,…