Application of quantum and classical memory in quantum network exploration