The Big Long River simulation program for American digital model paper

Source: Internet
Author: User

1 based on the greedy algorithm, we think that each vessel reaches the farthest camp of the specified reach as far as possible, trailing in turn and filling up with vacant seats. Each ship we as an object, record type, camping remaining time, where the river reaches, and then connected to form a queue, the queue with time in succession, when the ship to reach the sixth River and the camping days only one day, then pull out from the queue. The number of remaining camps on the first section of the day is equal to the number of vessels departing from the first section of the camp, and the distribution of the vessels is weighted according to certain weights. 2 The steps are as follows:3 When the number of camping sites is 90:4When u1=0.2, u2=0.6, u3=0.2;5 On the first day of the day, there were 15 camps in the first area. 6 On the first day of the day, depart 3 types of 1 tourist boat, 9 types 2 tourist boat, 3 Type 3 tourist boat. 7 the first day of the night encamped 3 types of 1 tourist boats, 9 types of 2 tourist boats, 3 types of 3 tourist boats. 8 The next day, the first area traveled three types of 1 tourist ships, the remaining 9 types 2 tourist ships, 3 types 3 tourist ships, namely, the first area left 3 camps. 9The next day of the day, according to the algorithm will be the remaining 3 camps according to the proportion of the allocation, you can calculate according to the proportion of a0.2=0.6 Type 1 tourist boat,3*0.6=1.8 Type 2 tourist boat,3*0. 2 Type 3 tourist ship, according to the ship up or down rounding, then departure 0 Type 1 tourist boat, two type 2 tourist boat, a type 3 tourist ship. Ten the next night camped 0 types of 1 tourist boats, 10 types of 2 tourist boats, 4 types 3 tourist boats.  One On the third day of the day, 9 types of 2 travel boats, two nights in the morning, depart, i.e. the first area has 9 types of 2 travel boats. The remaining nine camps.  A The third day ..... -  -Other regions and so on.

River.java

/* River Queue (can is use for contain a lot of boat) */public class River<e>{private java.util.linkedlist<e> Li St=new java.util.linkedlist<e> ();p ublic void Enter (E e) {     //a new boat Enter the Riverlist.addlast (e);        Begin a trip}public e out () {             //a boat out the Riverreturn list.removefirst ();//end a trip}public e get (int index) {r Eturn List.get (index);} public int GetSize () {return list.size ();} public void Remove (int index) {list.remove (index);}}

  

Boat.java

/* Boat class */public class Boat {public int type=0; /* The type of boat, 1 stand for the boat stay one night in every segment 2 stand for the boat stay-night in every SEG     ment 3 stand for the boat stay three night in every segment * * public int segment=0;      Now on which River Segmentpublic int number=0;    The number of the same type boat in the same begin daypublic int beginday=0;  The begin day of the campingpublic int surplusday=0; The surplus day of the Campingpublic Boat () {//TODO auto-generated constructor stub}public Boat (int beginday,int type,i          NT number) {days (type); Auto method to give value to another values//TODO auto-generated constructor Stubthis.number=number;this.type=type;} Change the river segment of the boat public void changesegment (int segment) {this.segment=segment;} Change the river surplus day of the boat public void Changesurplusday () {this.surplusday--;} Get the river surplus day of the boatpublic int getsurplusday () {RETurn This.surplusday;} Get the Segmentpublic int getsegment () {return this.segment;} Get the number of the same boat in the same begin daypublic int getboatnumber () {return this.number;} public int Getboattype () {return this.type;} public void days (int type) {//auto method if (type==1) {this.surplusday=6;} else if (type==2) {this.surplusday=12;} else{this.surplusday=18;}}}

  

Time.java

/* Boat change with times */public class time {public static int day=180;  Trip sum daypublic static int campnumber=15;  Every segment ' s camp numberpublic static int Firstcampnumber=15;//surplus camp in the first segmentpublic static double     u1=0.2;      Type 1 boat weightpublic static double u2=0.6;       Type 2 boat weightpublic static double u3=0.2;         Type 3 boat weightpublic static int overu1=0; The sum number of the of the trip of type 1 in the, the public static int overu2=0;//the sum number of trips of type2 in + days PU    blic static int overu3=0;//the sum number of the trip of type 3 in + days public static int boatinriver=0;        The number of boat in the Riverpublic static boat Temp=new boat (); Temp variablepublic static void Main (string[] args) {//TODO auto-generated method stubriver<boat> River=new River <Boat> ();  Create a queue of boatfor (int i=1;i<=day;i++) {int[][] segemntboat=new int[7][3]; Every type of boat in every segmenT,SEGMENT7 stand for End the Tripint type1number= (int) (FIRSTCAMPNUMBER*U1);//floor the boat numberint type2number= (int) ( FIRSTCAMPNUMBER*U2); int Type3number=firstcampnumber-type1number-type2number;river.enter (New Boat (I,1,type1number );//enter Boatriver.enter (New Boat (I,2,type2number)); River.enter (new Boat (I,3,type3number)); boatinriver=           River.getsize ();                 Get the number of boat in the Riverfor (int. j=0;j<boatinriver;j++) {//one day pasttemp=river.get (j);           Get the Boattemp.changesurplusday (); Decrease Camping Dayswitch (Temp.getboattype ()) {//Change river segment case 1:{//if the           Type of boat is type 1int k=0;switch (Temp.getsurplusday ()) {case 6:k=1;           Surplus Day was 6,it in segment 1break;case 5:k=2;           Surplus Day was 5,it in segment 2break;case 4:k=3;break;case 3:k=4;break;case 2:k=5;break;case 1:k=6;break;case 0:k=7; Boat of End Trip}temp.changesegment (k); Segemntboat[k-1][0]+=temp.getboatnumber ();}             Break;case 2:{//if The type of boat is Type2int K=0;switch (Temp.getsurplusday ()) {case 11:;             Surplus Day was 11.12,it in segment 1case 12:k=1;break;case 10:; Surplus Day was 9.10,it in segment 1case 9:k=2;break;case 8: Case 7:k=3;break;case 5:; case 6:k=4;break;case 3:; case 4           : K=5;break;case 1: Case 2:k=6;break;case 0:k=7; Boat of End Trip}temp.changesegment (k); Segemntboat[k-1][1]+=temp.getboatnumber ();} Break;case 3:{//if The type of boat is Type3int K=0;switch (Temp.getsurplusday ()) {case £ º;//surplus day is. 17.16,it              In segment 1case: 16:k=1;break;case 15:; Surplus Day was 15.14.13,it in segment 2case:; case 13:k=2;break;case:; case 10:k=3;break;case 9:; case                 8: Case 7:k=4;break;case 6: Case 5: Case 4:k=5;break;case 3: Case 2: Case 1:k=6;break;case 0:k=7; Boat of End Trip}temp.changesegment (k); Segemntboat[k-1][2]+=temp.getboAtnumber ();}}} for (int j=0;j<boatinriver;j++) {//some boat leavetemp=river.get (j); if ((Temp.getsurplusday ()) ==0) {River.remove (j               ); The boat Overj--;boatinriver=river.getsize ();}}        OVERU1+=SEGEMNTBOAT[6][0]; Get the sum number of type 1 in all Days;overu2+=segemntboat[6][1];overu3+=segemntboat[6][2];int zone1=segemntboat[ 0][1]+segemntboat[0][0]+segemntboat[0][2];int Zone2=segemntboat[1][1]+segemntboat[1][0]+segemntboat[1][2];int Zone3=segemntboat[2][1]+segemntboat[2][0]+segemntboat[2][2];int zone4=segemntboat[3][1]+segemntboat[3][0]+ Segemntboat[3][2];int Zone5=segemntboat[4][1]+segemntboat[4][0]+segemntboat[4][2];int zone6=segemntboat[5][1]+ Segemntboat[5][0]+segemntboat[5][2];int zone7=segemntboat[6][1]+segemntboat[6][0]+segemntboat[6][2];   Firstcampnumber=campnumber-zone1; Zone 1 have some empty camp/* boat change *///system.out.printf ("The%d Day:15,%d,%d,%d,%d,%d,leave:%d\n", I,
Zone2,zone3,zone4,zone5,zone6,zone7);//system.out.println ("Have empty camp number:" +firstcampnumber);// System.out.printf ("The%d Day:%d,%d,%d,%d,%d,%d,leave:%d\n", I+1,
Zone1,zone2,zone3,zone4,zone5,zone6,zone7);//system.out.println ("Enter boat:" +firstcampnumber); System.out.printf ("%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d\n", i,segemntboat[0][0],segemntboat[0] [1],segemntboat[0][2],segemntboat[1][0],segemntboat[1][1],segemntboat[1][2],segemntboat[2][0],segemntboat[2][1 ],SEGEMNTBOAT[2][2],SEGEMNTBOAT[3][0],SEGEMNTBOAT[3][1],SEGEMNTBOAT[3][2],SEGEMNTBOAT[4][0],SEGEMNTBOAT[4][1], SEGEMNTBOAT[4][2],SEGEMNTBOAT[5][0],SEGEMNTBOAT[5][1],SEGEMNTBOAT[5][2],SEGEMNTBOAT[6][0],SEGEMNTBOAT[6][1], SEGEMNTBOAT[6][2]);} /* Some other input *///system.out.printf ("Sum leave type 1:%d leave type 2:%d leave type 3:%d\n total boat:%d\n",
OVERU1,OVERU2,OVERU3,OVERU1+OVERU2+OVERU3);//end of days//system.out.printf ("The total boat%d", OVERU1+OVERU2 +OVERU3)//system.out.printf ("%.2f%.2f%.2f%d%d%d%d\n", u1,u2,u3,overu1*2,overu2*2,overu3*2,
(OVERU1+OVERU2+OVERU3);//system.out.printf ("%d%d%d%d\n", campnumber*6*2,overu1*2,overu2*2,overu3*2,
(OVERU1+OVERU2+OVERU3) * *); overu3=overu2=overu1=0;}}

  

Result:

1 0 9 3 3 0 0 0 0 0 0 0 0 0 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4 4 1 8 6 1 8 6 1 8 6 1 8 6 1 8 6 1 4 2161 0 4 4 1 1 8 6 1 8 6 1 8 6 1 4 2162 0 4 4 1 8 6 1 8 6 1 8 6 1 8 6 1 8 6 1 4 2163 0 4 4 1 8 6 1 8 6 1 8 6 1 8 6 1 8 4 4 1 8 6 1 8 6 1 8 6 1 8 6 1 8 6 1 4 2165 0 4 4 1 8 6 1 8 6 1 8 6 1 8 6 1 8 6 1 4 2166 0 4 4 1 8 6 1 8 6 6 1 8 6 1 4 2167 0 4 4 1 8 6 1 8 6 1 8 6 1 8 6 1 8 6 1 4 2168 0 4 4 1 8 6 1 8 6 1 8 6 1 8 6 1 8 6 1 4 2169 0 1 8 6 1 8 6 1 8 6 1 8 6 1 4 2170 0 4 4 1 8 6 1 8 6 1 8 6 1 8 6 1 8 6 1 4 2171 0 4 4 1 8 6 1 8 6 1 8 6 1 8 4 2172 0 4 4 1 8 6 1 8 6 1 8 6 1 8 6 1 8 6 1 4 2173 0 4 4 1 8 6 1 8 6 1 8 6 1 8 6 1 8 6 1 4 2174 0 4 4 1 8 6 6 1 8 6 1 8 6 1 4 2175 0 4 4 1 8 6 1 8 6 1 8 6 1 8 6 1 8 6 1 4 2176 0 4 4 1 8 6 1 8 6 1 8 6 1 8 6 1 8 6 1 1 8 6 1 8 6 1 8 6 1 8 6 1 8 6 1 4 2178 0 4 4 1 8 6 1 8 6 1 8 6 1 8 6 1 8 6 1 4 2179 0 4 4 1 8 6 1 8 6 1 8 8 6 1 4 2180 0 4 4 1 8 6 1 8 6 1 8 6 1 8 6 1 8 6 1 4 2

Test.java

public class Test {public static double a=0.5;public static double b=0;/** * @param args */public static void main (string[ ] args) {//TODO auto-generated method Stubtime sensitivity=new time ();/* Initial  */sensitivity.campnumber=15; sensitivity.firstcampnumber=15; sensitivity.u1=0.2; sensitivity.u2=0.6; sensitivity.u3=0.2;for (int i=1;i<=10;i++) {/* weight */sensitivity.u1=a;   Sensitivity.u2=b; Sensitivity.u3=1-a-b;b=b+0.05;//sensitivity.campnumber=i;//sensitivity.firstcampnumber=i; Sensitivity.main (args);} Sensitivity.main (args);}}

  

The Big Long River simulation program for American digital model paper

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.