ROMA algorithm