set toolname, no of tools available and its status
set cycle name and needed tools for this cycle
Read order then check first cycle and check availability of tools
temp=0;
do{
set availability=false
for(int k=0;k<neededtool.length();k++){
if(tools[i].toolname==neededtool[k]){
for(int j=0;j<totalNoOfTools;j++){
for(int i=0;i<noofavailabletools[j];i++){
if(tool1[i].status=='free'){
availablity=true;}
else
{
availablity=false
break;
}
}
}
}}
if(availability=true){
//allocate this cycle
}
else{