Algorithm of Hearts is a contemporary romance novel that blends psychology, data science, and emotional discovery. When Mia, a brilliant psychology student who believes love can be reduced to algorithms, develops a compatibility system that matches her with Ethan, an engineering student who embraces uncertainty, she is forced to confront the limits of logic and the unpredictable nature of human connection. As their relationship evolves, both must decide whether love is something that can be calculated-or something that must be experienced.