Пример #1
0
        public void heaps()
        {
            Rabin r = new Rabin();
            int   n = r.arr.Length;

            heapsort ob = new heapsort();

            ob.sort(r.arr);
            Console.WriteLine();
            Console.WriteLine("Sorted array according to heapsort is");
            printArray(r.arr);
        }
Пример #2
0
        static void Main(string[] args)
        {
            quicksort   q = new quicksort();
            bubblesorts b = new bubblesorts();
            heapsort    h = new heapsort();
            mergesort   m = new mergesort();

            q.quicks();
            b.bubbles();
            h.heaps();
            m.merge();


            Console.ReadLine();
        }