A simple association algorithm