public void addRotationLinkedList(RotationLinkedList p_list)
 {
     c_array.Add(p_list.getCopy());
 }
Exemple #2
0
        public void addSolution(RotationLinkedList p_rotationLinkedList, Permutation p_permutation, Solution p_prevSolution,
                                int p_value, int p_floor)
        {
            if (/*(p_value>=32 && getBestValue()>=36) ||*/ (c_solutionList[p_value] as ArrayList).Count < 40)
            {
                (c_solutionList[p_value] as ArrayList).Add(new SolutionNode(new Solution(p_rotationLinkedList.getCopy(), p_permutation.getCopy(), p_prevSolution)));

                //         Console.Write("Added Solution Value={0}, Index={0}\n", p_value, p_value);
            }
        }
Exemple #3
0
 public Solution(RotationLinkedList p_rotationLinkedList, Permutation p_permutation, Solution p_prevSolution)
 {
     c_rotationLinkedList = p_rotationLinkedList.getCopy();
     c_permutation        = p_permutation.getCopy();
     c_prevSolution       = p_prevSolution;
 }