algorithm view 3