The Devil and the Network: What Sparsity Implies to Robustness and Memory