Изменения

Перейти к: навигация, поиск
м
Псевдокод: добавлена инициализация Q и R
'''int''' count_q = 0
'''int''' count_r = 0
'''float''' Q[n][n]
'''float''' R[n][n]
'''int''' position[n]
'''for''' i = 0 '''to''' n - 1
count_q++
'''for''' '''jump''' i = 0 '''toin''' m - 1transition '''if''' absorbing[transition[i].to] '''if''' !absorbing[transition[i].from] R[position[transition[i].from]][position[transition[i].to]] = transition[i].prob
'''else'''
Q[position[transition[i].from]][position[transition[i].to]] = transition[i].prob
'''return''' Q
54
правки

Навигация