I need help with the yellow highlighted sections of thedescription. Mostly I need help getting the program to stop afterthere are no changes in the generations(iterations).
//Delcare
#include <stdio.h>
#include <string.h>
#include <omp.h>
#include <stdlib.h>
#include <assert.h>
#define MAX_N 2000
//global
int plate[2][(MAX_N + 2) * (MAX_N + 2)];
int which = 0;
int n;
//live cells “1s”
int live(int index)
{
return (plate[which][index – n – 3] +plate[which][index – n – 2] + plate[which][index – n – 1]
+ plate[which][index – 1] + plate[which][index + 1] +plate[which][index + n + 1]
OR
OR