Skip to main content
. 2021 Apr 19;7:e436. doi: 10.7717/peerj-cs.436

Algorithm 2. Word Concretization Function γ(w).

Input: a word w
Output: a set matrix_set of arrays
1: rnum = iRow/oRow, cnum = iCol/oCol
2: if w.lengthrnum × cnum then
3:  return null
4: end if
5: for wi = 0, . . . ,w.length − 1 do
6:  data[wi] = γsS (word[wi])
7: end for
8: S = {m | m[ri : ri + oRow][ci : ci + oCol] ∈ data[ri × cnum + ci]}
9: matrix_set = {in | in ∈ γv(m) and mS}
10: return matrix_set