- For every array element, - Extract the numeric component of the element. - If the hash contains a key matching the extracted component, - If the hash value is empty, - Print whatever - Else - Print whatever