All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.changebooks.optimal.permutation.Calculator Maven / Gradle / Ivy

Go to download

全排列数组,计算所有排列的结果,从中选最优结果。 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