示例#1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            QuickFindAlghoritm qf = new QuickFindAlghoritm(4);

            qf.PrintTable();
            Console.WriteLine(qf.Connected(1, 2));

            Console.WriteLine();
            qf.Union(1, 2);
            qf.PrintTable();
            Console.WriteLine(qf.Connected(1, 2));


            Console.WriteLine();
            qf.Union(0, 2);
            qf.PrintTable();
            Console.WriteLine(qf.Connected(0, 1));

            Console.Read();
        }
示例#2
0
        public void QuickFind()
        {
            QuickFindAlghoritm qf = new QuickFindAlghoritm(4);

            MakeTests(qf);
        }