It requires a mixed use of floating point numbers and Tropical numbers:
MMAP : computing the most likely assignment to the query variables, $X_M \subset X'$ after marginalizing out the remaining variables $X_S = X' \setminus X_M$.
We first marginalize $X_S$ with real numbers, the contraction result is a set of tensors. Then we contract the remaining tensor network with tropical algebra.
find clusters connected by hyper-edges in $X_S$,
optimize the contraction order for each cluster,
contract each cluster with real numbers,
optimize the clusters contraction order,
contract the clusters with logged tropical numbers.
It requires a mixed use of floating point numbers and Tropical numbers:
MMAP : computing the most likely assignment to the query variables, $X_M \subset X'$ after marginalizing out the remaining variables $X_S = X' \setminus X_M$.