package com.company.tabu; import java.util.List; public class NeighborSolutionHandler { // find state but Avoid tabu (forbiddent) public State getBestNeighbor(State[][] states, List neighborStates, List tabuStates) { // remove tabu neighborStates.removeAll(tabuStates); // go to the middle state if(neighborStates.size()==0) return states[100][100]; //algorithm find min neighborStates State bestSolution = neighborStates.get(0); for(int i=1;i