Final answer:
To remember your friend's address, you used the rehearsal process in short-term memory, which is the repetition of information to encode it into long-term memory. Other memory strategies include chunking and elaborative rehearsal, as well as using mnemonic devices.
Step-by-step explanation:
To remember the address, you used a rehearsal process in short-term memory (STM). Rehearsal is a memory strategy that involves the conscious repetition of information to help with the encoding of that information into long-term memory. In your scenario, by repeatedly saying the address in your mind, you engaged in active rehearsal, which is a way to attend to information to move it from short-term to long-term memory. Once the address was no longer needed (upon arriving at your friend's house), you redirected your cognitive resources to consider a housewarming gift instead.
Chunking is another strategy that could have been used, where information is organized into manageable bits. For example, phone numbers are often chunked when remembered. Alternatively, elaborative rehearsal is a method of linking new information to already known data, thereby forming more complex associations and hence, stronger memories. Mnemonic devices are also effective tools for enhancing memory, by helping to organize information for more efficient encoding and retrieval.