#include #include #include #include using namespace std; int maxdis(int *dis,int max) { int m=0; for(int i=0;idis[m]) m=i; } return(m); } int found(int x,int *l,int j) { for(int i=0;i>max; int *temp=new int[max]; int *dis=new int[max]; int *flag=new int[max]; for(int i=0;i>n; cout<<"\n\nEnter the entire sequence of page requests:\t"; int *a=new int[n]; for(int i=0;i>a[i]; cout<<"\n\nprocess pages are then allocated as follows:\n\n"; int j=0; for(int i=0;i