Need Help Yellow Highlighted Sections Description Mostly Need Help Getting Program Stop Ch Q37030025

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).

Parallel Implementation of Game of Life Using C and OpenMP A two-dimensional binary cellular automaton consists of a two-dime

//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

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.