Exemple #1
0
        public static string GetSolutionByBranchSharpMethod(int[,] matrix, bool isSort)
        {
            string    answerString = "";
            AnswerDTO answerDTO    = null;

            if (matrix != null)
            {
                answerDTO = BaBSharp.Start(matrix, isSort);
            }
            else
            {
                return("Matrix is null...");
            }

            if (answerDTO != null)
            {
                return(answerDTO.ToString());
            }
            else
            {
                return("AnswerDTO is null...");
            }
        }
        private static AnswerDTO GetSolutionByBcSharp()
        {
            var answerDTO = BaBSharp.Start(TargetMatrix, true);

            return(answerDTO);
        }