0int bbKnapsack() { int i=1; int bestp=0; double up=bound(1); num=1; while(i!=n+1) { if(cw+element[i].wbestp) bestp=cp+element[i].val; QueueEle queueEle; queueEle.flag=1; queueEle.profit=cp+element[i].val; queueEle.upperProfit=up; queueEle.