Mitigating Non-idealities of Memristive-based Artificial Neural Networks - an Algorithmic Approach | IEEE Conference Publication | IEEE Xplore