Closed recursion-ninja closed 7 years ago
Use finite, positive rational numbers to accumulate the average dynamic character length of a subtree.
[X] Define a Finite Rational numberSemigroup.
Semigroup
[X] Create a newtype AverageLength.
newtype AverageLength
[X] Add AverageLength field to Dynamic Character decorations.
AverageLength
[x] Use average length of characters in a sub tree to calculate root cost.
Use finite, positive rational numbers to accumulate the average dynamic character length of a subtree.
[X] Define a Finite Rational number
Semigroup
.[X] Create a
newtype AverageLength
.[X] Add
AverageLength
field to Dynamic Character decorations.[x] Use average length of characters in a sub tree to calculate root cost.