Red de conocimientos sobre prescripción popular - Conocimiento del confinamiento - El algoritmo se describe utilizando funciones de C++ y se obtiene la complejidad temporal.

El algoritmo se describe utilizando funciones de C++ y se obtiene la complejidad temporal.

# incluir & ltiostream.h & gt

int max=0, may = 0;

int array[5][5];

void ReMax( )

{

int i, j;

///Método de burbuja, complejidad temporal 5*5.

for(I = 0;i<5;i++)

for(j = 0;j<5;j++)

if(array[max ][may] <array[I][j+1]){ max = I;may = j+1;}

}

void main(){

int i, j;

//* a =(int *)malloc(5 * size of(int));

cout & lt& lt" Ingrese una matriz [5][5]:"

for(I = 0;i<5;i++)

for(j = 0;j<5;j++ )

CIN & gt;& gtarray[I][j];

ReMax();

cout & lt& lt"Coordenadas máximas:"

}