Locally competitive algorithm(LCA) solves a collection of sparse coding principles minimizing a weighted combination of mean squared error (MSE) and a coefficient cost function. LCAs are designed to be implemented in a dynamical system composed of many neuron like elements operating in parallel. These algorithms use thresholding functions to induce local (usually one way) inhibitory competitions between nodes to produce sparse representations.