the solution for a sparse recovery problem is given by:
The definition of ||x||0 is no. of non-zero entries in x . This is also called the sparsity of the vector.
i.e., we are asking for the sparsest solution x , that satisfies y=Ax .
Consider the simplest case where x is 1-sparse but you don't know the location of that non-zero entry. In such a case, we have (N1) possibilities for a 1-sparse vector and to find the solution we have to examine the values of all the (N1) possibilities for finding the unique minimizer. Similarly, if you are told that x is k -sparse, you need to search (Nk) possibilities. i.e., the algorithm grows as (Nk) with increase in k . Since k is not known a priori, you have to check for all the N possible values of k .
Hence, the complexity of the algorithm is ∑i=1N(Ni) . This is called as NP hard problem which is an acronym for Non-polynomial time complexity.