io.github.changebooks.optimal.permutation.Calculator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of optimal-permutation Show documentation
Show all versions of optimal-permutation Show documentation
全排列数组,计算所有排列的结果,从中选最优结果。
full permutation array, calculate optimal permutation's result.
The newest version!
package io.github.changebooks.optimal.permutation;
/**
* 计算数组的最优排列
*
* @author [email protected]
*/
public interface Calculator> {
/**
* 全排列数组
* 计算所有排列的结果,从中选最优结果
*
* @param values 参与计算的数组
* @param compute 计算过程
* @return 最优结果和下标排列
*/
Result calculate(T[] values, Function compute);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy