Closed recursion-ninja closed 7 years ago
The network cost is not being correctly calculated.
Suppose you had 5 character blocks across 3 resolutions with the following costs:
We are currently (incorrectly) summing the characters of a resolution:
Then taking the minimum cost resolution:
We need to select the minimum resolution for each character:
This minimization error has been corrected and merged back into master with commit 1527959.
master
The network cost is not being correctly calculated.
Suppose you had 5 character blocks across 3 resolutions with the following costs:
Incorrect Algorithm:
We are currently (incorrectly) summing the characters of a resolution:
Then taking the minimum cost resolution:
Correct Algorithm:
We need to select the minimum resolution for each character:
Then taking the minimum cost resolution: