for(i=0 ; i L ) ut[j] = L; } int nMin = INTINF; for( j=1 ; j ut[j] ){ nMin = ut[j]; s = j; } } u[s] = ut[s]; //点sの最短経路長を確定 ut[s] = INTINF }