1This is what Algorithm P2 does.