Exemple #1
0
        public static HeapMin <T1> BuiltHeapMin(T1[] arrayValor, int[] arrayPrioridad)
        {
            HeapMin <T1> temp = new HeapMin <T1>();

            for (int indice = 0; indice < arrayValor.Length; indice++)
            {
                temp.Inserta(arrayValor[indice], arrayPrioridad[indice]);
            }

            return(temp);
        }