Your emotional algorithm, is a subconscious selection process that is choosing the wrong the person for you. You overlook the red flags because are so familiar that they feel like home. Possibly the same red flags as one of your parents.
Me sobbing during a break up - Gawd! I can't believe I ended up with another prick who treats me like garbage! My emotional algorithm must be broken. What is wrong with me?