# include
# include
# include
# include
# include
//# define NOP 5 /*NOP is the number of processors*/
using namespace std;
int pNOP[4]={2,3,4,5}; //added line 9 and 10 instead of line 5
int NOP;
float shapeparameter[3] = {0.5,1,2};
float ccr[5] = {0.1,0.5,1,5,10};
int *wid,*h,v=0;
FILE *fp;
fstream output_file; //for the input in heft.c
int task(); /*Declaration of all the functions*/
float ratio();
float graphshape();
int avgcomp();
int width(float,int);
int out_degree(int);
int below(int);
float compcost(int);
int commcost(int ,float);
void output(int*,float*);
int main()
{
//srand(time(NULL));
int n,k,wDAG,height,nog,*outdegree,i,r,j,temp,*cost;
float alpha,ccratio,*comp;
fp=fopen("RandomTaskGRaphs.txt","w"); /*Output File*/
output_file.open("Input.txt",ios::out);
printf("How many graphs you want to generate?\n");
scanf("%d",&nog);
for(k=0;k