find the minimum frequency task type ( miniind ) and frequency ( mini ) .
for j in range ( 1 , m + 1 ) : NEW_LINE INDENT if isRunning [ j ] and mini > freqarr [ i ] [ j ] : NEW_LINE INDENT mini = freqarr [ i ] [ j ] NEW_LINE miniind = j NEW_LINE DEDENT DEDENT