I need some help to count the complexity of the jump search algorithm
sorry it says I need to write more infos to get my question shared so just ignore this please , I really need it.
void jump_search(Pointeur_L1 P, int lenght, char * word) {
Pointeur_L1 inf, max;
max = P;
lenght = longueur_L1(P);
int step = sqrt(lenght);
bool r = false;
int i, j = 0;
while (j < longueur_L1(P)) {
 for (i = 0; i < step; i++) {
   max = max -> suiv;
 }
 if (strcmp(max -> mot, word) == 0) {
   printf("ce mot existe :");
   printf("dans la ligne %d a la position %d \n", max -> line, max -> pos);
   r = true;
 }
 if (strcmp(max -> mot, word) > 0) {
   while (max != NULL) {
     if (strcmp(max -> mot, word) == 0) {
       printf("ce mot existe :");
       printf("dans la ligne %d a la position %d \n", max -> line, max -> pos);
       r = true;
       max = max -> preced;
     } else {
       max = max -> preced;
     }
   }
 } else {
   inf = max;
 }
 j++;
}
if (max == NULL) {
 printf("ce mot n existe pas\n");
}
}
 
    