Each iteration is very costly since we need to go over all the dictionary words.
to avoid this, we can compute cross correlation d × d matrix for each pair of languages i, j in a preprocessing step: Substituting (5) in (4) we obtain that updating the mapping t i can be done in a very efficient way without going over all the bilingual dictionaries of the i-th language.