Synergistic Development of Perovskite Memristors and Algorithms for Robust Analog Computing