Exemplo n.º 1
0
        static void Main(string[] args)
        {
            var arr = DocFile();


            for (int i = 0; i < 1000; i++)
            {
                Thread t = new Thread(new ThreadStart(() =>
                {
                    var s = new ThuatToanDfs(arr);

                    s.DinhDangDuyet(5);

                    if (s.Dinh.Sum() != 10)
                    {
                        Console.WriteLine(s.Dinh.Count);
                    }
                }));
                t.Start();
            }



            //foreach (var item in s.Dinh)
            //{
            //    Console.WriteLine(item + "\t");
            //}
            Console.ReadKey();
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            var arr     = DocFile();
            var s       = new ThuatToanDfs(arr);
            var sss     = s.ARR;
            var x       = s.DanhSachDoThi();
            var soDoThi = x.Count;
            var ss      = s.DemCanhDoThi(1);

            Console.ReadKey();
        }