写作COMP SCI 4094程序、C++编程语言程序调试

” 写作COMP SCI 4094程序、C++编程语言程序调试COMP SCI 4094/4194/7094 – Distributed Databases and Data MiningAssignment 2DUE: 23:59 Friday 18th OctoberImportant Notes Handins: The deadline for submission of your assignment is 23:59 Friday 18th October ,2020. You must do this assignment individually and make individual submissions. Your program should be coded in C++ and pass test runs on 3 test files. The sampleinput and output files are downloadable in Assignments of the course home page( httpss://myuni.adelaide.edu.au/courses/54718/assignments/176864/). You need to use svn to Upload and run your source code in the web submission systemfollowing Web-submission instructions stated at the end of this sheet. You shouldattach your name and student number in your submission. Late submissions will attract a penalty: the maximum mark you can obtain will bereduced by 25% per day (or part thereof) past the due date or any extension you aregranted. Marking scheme: 12 marks for testing on 3 standard tests: 4 marks per test. 3 marks for the code structure. Note: If it is found your code did not implement the required computation tasksin this assignment, you will receive zero mark regardless of the correctness of testingoutput.If you have any questions, please send them to the student discussion forum. This way youcan all help each other and everyone gets to see the answers.The assignmentIn this assignment you are Required to code a traffic packet clustering engine to cluster the rawnetwork packet to different Applications, such as https, smtp. To accomplish this assignment,a data preprocessing module and a clustering module should be implemented, the structure isillustrated below:You have two input files, and you should print two output files.The input file1 contains a distance threshold and the raw network packet information, that is,seven attributes of a packet: source address, source port, destination address, destination port,protocol, arrival time, and packet length. input file1.txt is Sample traffic flow information;Input file2.txt has a number K, and on the next line include K integer numbers represent aninitial set of K medoids.In the data preprocessing module, your program should prepare the flow data for clusteringby the raw packet data, two steps are involved: you need to firstly merge the packets into flowsby the rule: a network flow includes at least TWO packets with same source address, sourceport, destination address, destination port, and protocol, then calculate two clustering features:average transferring time and the average packet length of a flow.In the clustering module, you need to apply k-medoids algorithm (course slides Chapter 10,not the books random method) to find the minimum number of clusters that the sum of thedistance of each flow to its centroid is less than the given threshold. Note: the clustering featurescome from data Preprocessing module, the distance measurement is Mannhaton distance.For your convenience, below is the framework of the k-medoids algorithm which you shouldfollow: 写作COMP SCI 4094作业、C++编程语言作业调试ExampleSample traffic flow informationsrc addr src port dst addr dst port protocol arrival time packet length202.234.224.254 49880 31.65.181.210 80 6 115258 52202.234.224.254 49880 31.65.181.210 80 6 115307 52202.234.35.144 55256 74.39.124.220 443 6 115310 46119.188.179.82 50592 150.79.7.129 80 6 115314 40202.234.224.254 49880 31.65.181.210 80 6 115341 52119.188.179.82 50592 150.79.7.129 80 6 115350 40119.188.179.82 50592 150.79.7.129 80 6 115363 40Data preprocessing moduleIn the above traffic Flow information, there are two flows: The first, second, and fifth packetbelong to the first flow(index is 0); the fourth, sixth, and seventh packet belong to the secondflow(index is 1).The Average transferring time of first flow = (( the arrival time of fifth packet – the arrivaltime of second packet ) + (the arrival time of second packet – the arrival time of first packet)) (3 – 1) = ((115341 – 115307) + (115307 – 115258)) 2 = 41.5. The Average length of firstflow = (P packet length) 3 = (52 + 52 + 52) 3 = 52. Similarly, the Average transferringtime of second flow = 24.5, the average length of second flow = 40.(arrival time is microsecond(s))Clustering moduleWe use Mannhaton distance to measure the distance between flows. In our sample, the distancebetween the two flows is |41.5 24.5| + |52 40|.Example input initial medoids.txt initial k medoids1 (k=1)0 (Start from index 0, as the initial start medoid)Example OutputAt begin you should output the flow after Data preprocessing module, include index, averagetransferring time x Value and average length y value.ID X YIn this case, flow.txt should print:0 41.50 52.001 24.50 40.00Rounding numbers (X,Y) to 2 decimal place. You can use:cout f ixed setprecision(2) 3.1415926;orprintf(%0.2f, 3.1415926);After doing KMedoid, you will get K clusters. It includes K+2 lines. First line is absoluteerrorcriterion. Next one line include K medoids index. Following each line have several flowindex represent each medoid includes which flows.29.00 (Absolute-error of the cluster,2 decimal place)0 (Medoid is 0)0 1 (This cluster include 2 flows index 0 and index 1)Web-submission instructions First, type the Following command, all on one line (replacing xxxxxxx with your studentID):svn mkdir – -parents -m DDDM httpss://version-control.adelaide.edu.au/svn/axxxxxxx/2020/s2/dddm/assignment2 Then, check out this directory and add your files:svn co httpss://version-control.adelaide.edu.au/svn/axxxxxxx/2020/s2/dddm/assignment2cd assignment2svn add KMedoids.cpp svn commit -m assignment2 solution Next, go to the web submission system at: httpss://cs.adelaide.edu.au/services/websubmission/Navigate to 2020, Semester 2, Distributed Databases and Data Mining, Assignment 2.Then, click Tab Make Submission for this assignment and indicate that you agree to thedeclaration. The automark script will then check whether your code compiles. You canmake as many resubmissions as you like. If your final solution does not compile you wontget any marks for this solution. Note:1. Please follow the forms in sample output files.2. Your local file path will not work with our web-submission system.3. We prepared ten test files in web-submission system, when you submit your program,random test files will be allocated for you.4. The auto-marker script compiles and runs named KMedoids.cpp by using followingcommand:g++ -std=c++11 KMedoids.cpp -o runKMedoids./runKMedoids network packets.txt initial medoids.txtIn this assignment, you need to read two files network packets.txt ( network packetstraffic information) and initial medoids.txt (initial medoids) which are generatedrandomly by The system.you should print two output files named med Flow.txt (flow data after preprocessing)and KMedoidsClusters.txt (k-medoids clustering results) as shown in the followingtwosamples:.Example1input:File1.txtsrc addr src port dst addr dst port protocol arrival time packet length202.234.224.254 49880 31.65.181.210 80 6 115258 52202.234.224.254 49880 31.65.181.210 80 6 115307 52202.234.35.144 55256 74.39.124.220 443 6 115310 46119.188.179.82 50592 150.79.7.129 80 6 115314 40202.234.224.254 49880 31.65.181.210 80 6 115341 52119.188.179.82 50592 150.79.7.129 80 6 115350 40119.188.179.82 50592 150.79.7.129 80 6 115363 40input:File2.txt10output:Flow.txt0 41.50 52.001 24.50 40.00output:KMedoidsdetails.txt29.0000 1Example2input:file1.txtsrc addr src Port dst addr dst port protocol arrival time packet length61.43.24.146 80 133.227.178.71 55651 6 115164 1500223.139.34.184 57258 203.146.250.47 80 6 115167 40118.162.252.133 8100 150.79.7.129 80 6 115178 52163.39.157.71 52864 199.252.216.15 443 6 115181 436125.96.202.102 80 202.31.174.9 36122 6 115185 185202.234.224.254 49880 31.65.181.210 80 6 115189 5261.211.145.45 61611 150.79.7.129 80 6 115222 40202.234.224.254 49880 31.65.181.210 80 6 115226 52163.39.157.71 52864 199.252.216.15 443 6 115230 1426163.39.157.71 52865 199.252.216.15 443 6 115233 436118.91.103.40 53186 150.79.7.129 80 6 115244 52133.244.153.246 54194 165.143.250.152 443 6 115247 52202.234.224.254 49880 31.65.181.210 80 6 115251 52163.39.157.71 52865 199.252.216.15 443 6 115254 1426202.234.224.254 49880 31.65.181.210 80 6 115258 52202.234.224.254 49880 31.65.181.210 80 6 115307 52202.234.35.144 55256 74.39.124.220 443 6 115310 378119.188.179.82 50592 150.79.7.129 80 6 115314 40202.234.224.254 49880 31.65.181.210 80 6 115320 52202.234.224.254 49880 31.65.181.210 80 6 115326 52202.234.224.254 49880 31.65.181.210 80 6 115331 52202.234.35.144 50070 173.199.56.254 80 6 115335 4054.221.15.83 443 150.79.179.172 60804 6 115349 52202.145.203.99 443 163.39.7.122 53326 6 115435 1500133.227.171.14 52147 121.131.234.16 80 6 115439 818131.14.216.241 24153 54.43.88.212 80 6 115443 1496202.145.203.99 443 163.39.7.122 53326 6 115447 1188203.146.250.47 80 5.98.62.124 47610 6 115461 146069.192.0.189 80 202.234.225.187 59368 6 115469 150069.192.0.189 80 202.234.225.187 59368 6 115491 1500202.234.228.45 58507 38.249.43.123 443 6 115494 1500163.39.110.212 49700 204.93.161.172 443 6 115501 819126.71.29.111 61782 203.146.247.176 80 6 115512 40126.71.29.111 61782 203.146.247.176 80 6 115516 40131.14.216.241 24153 54.43.88.212 80 6 115519 1496203.146.250.47 80 113.63.133.249 39564 6 115573 1500202.231.242.67 49448 131.226.8.6 80 6 115576 249157.210.227.245 60827 66.36.161.252 80 6 115580 52203.146.250.47 80 113.63.133.249 39564 6 115584 150069.192.0.189 80 202.234.225.187 59368 6 115588 150069.192.0.189 80 202.234.225.187 59368 6 115597 1500175.84.22.21 41639 150.42.176.170 54756 6 115601 60219.80.177.15 33814 150.79.7.129 80 6 115605 52202.234.228.45 58507 38.249.43.123 443 6 115609 1500131.14.216.241 24153 54.43.88.212 80 6 115664 1496163.39.157.71 52867 199.252.216.15 443 6 115751 1426163.39.157.71 52867 199.252.216.15 443 6 115755 436163.39.157.71 52864 199.252.216.15 443 6 115763 436133.244.153.246 54194 165.143.250.152 443 6 115766 52163.39.157.71 52864 199.252.216.15 443 6 115809 1426131.14.216.241 24153 54.43.88.212 80 6 115815 1496202.234.35.13 52171 185.213.144.150 80 6 115831 52173.199.56.233 80 202.234.224.241 59801 6 115878 1500173.199.56.233 80 202.234.224.241 59801 6 115893 1500113.113.137.159 61396 150.79.7.129 80 6 115904 40199.252.216.15 443 163.39.157.71 52864 6 115907 64131.14.216.241 24153 54.43.88.212 80 6 115991 1496199.252.216.15 443 163.39.157.71 52864 6 116014 52133.244.153.246 54194 165.143.250.152 443 6 116049 5296.227.76.37 3242 133.250.150.37 445 6 116075 48131.14.216.241 24153 54.43.88.212 80 6 116084 149696.16.24.215 443 202.234.35.13 62476 6 116222 60163.39.157.71 52865 199.252.216.15 443 6 116226 1426131.14.216.241 24153 54.43.88.212 80 6 116229 1496163.39.157.71 52865 199.252.216.15 443 6 116275 436131.14.216.241 24153 54.43.88.212 80 6 116279 495182.158.75.63 80 133.244.234.48 50169 6 116287 149061.210.137.135 56413 150.79.7.129 63190 6 116291 40163.39.157.71 52867 199.252.216.15 443 6 116298 436163.39.157.71 52867 199.252.216.15 443 6 116329 1426133.244.153.246 54194 165.143.250.152 443 6 116333 52131.14.188.92 34705 204.93.161.172 443 6 116349 52211.73.188.247 443 202.234.35.13 36955 6 116358 1500211.73.188.247 443 202.234.35.13 36955 6 116365 1500211.73.188.247 443 202.234.35.13 36955 6 116400 1500211.73.188.247 443 202.234.35.13 36955 6 116404 1500126.71.29.111 61782 203.146.247.176 80 6 116415 40202.234.228.45 58507 38.249.43.123 443 6 116423 1500203.146.250.47 80 199.48.187.153 58554 6 116427 52133.244.153.246 56862 31.65.185.141 443 6 116484 4023.225.11.237 80 202.31.174.9 18622 6 116498 143023.225.11.237 80 202.31.174.9 18622 6 116501 1430173.199.56.233 80 202.234.224.241 59801 6 116518 1500173.199.56.233 80 202.234.224.241 59801 6 116522 1500182.104.251.244 64598 150.79.7.129 80 6 116525 40182.104.251.244 64598 150.79.7.129 80 6 116528 40133.244.153.246 56862 31.65.185.141 443 6 116539 40173.199.56.233 80 202.234.224.241 59801 6 116542 1500173.199.56.233 80 202.234.224.241 59801 6 116566 1500182.104.251.244 64598 150.79.7.129 80 6 116569 40202.234.228.45 58507 38.249.43.123 443 6 116573 1500173.199.56.233 80 202.234.224.241 59801 6 116576 1500133.244.153.246 54194 165.143.250.152 443 6 116582 52173.199.56.233 80 202.234.224.241 59801 6 116586 1500106.127.152.45 56799 150.79.7.129 80 6 116589 40124.44.132.23 443 202.231.242.67 49557 6 116601 294211.3.241.186 14457 150.79.7.129 80 6 116605 40223.139.34.184 57258 203.146.250.47 80 6 116610 40200.98.164.214 3966 133.250.168.37 445 6 116615 48199.252.216.15 443 163.39.157.71 52864 6 116623 52199.252.216.15 443 163.39.157.71 52864 6 116630 52133.244.153.246 56862 31.65.185.141 443 6 116641 4061.43.24.146 80 133.227.178.71 55651 6 116645 150061.43.24.146 80 133.227.178.71 55651 6 116651 1500223.25.5.131 64680 150.79.7.129 80 6 116654 40175.167.20.236 10595 150.79.176.180 54762 6 116658 52107.133.162.38 443 163.39.5.198 57375 6 116672 569183.172.222.56 39620 150.79.7.129 80 6 116675 52202.234.228.45 58507 38.249.43.123 443 6 116678 1500183.172.222.56 39620 150.79.7.129 80 6 116682 52183.172.222.56 39620 150.79.7.129 80 6 116688 52183.172.222.56 39620 150.79.7.129 80 6 116692 52183.172.222.56 39620 150.79.7.129 80 6 116696 52183.172.222.56 39620 150.79.7.129 80 6 116699 52183.172.222.56 39620 150.79.7.129 80 6 116703 52183.172.222.56 39620 150.79.7.129 80 6 116706 52183.172.222.56 39620 150.79.7.129 80 6 116709 52183.172.222.56 39620 150.79.7.129 80 6 116713 52183.172.222.56 39620 150.79.7.129 80 6 116716 52133.244.153.246 56862 31.65.185.141 443 6 116727 40203.146.253.28 6881 60.26.1.79 45729 6 116741 5227.178.159.198 4419 150.79.7.129 80 6 116748 40183.172.222.56 39620 150.79.7.129 80 6 116751 52183.172.222.56 39620 150.79.7.129 80 6 116755 52183.172.222.56 39620 150.79.7.129 80 6 116759 52183.172.222.56 39620 150.79.7.129 80 6 116762 52163.39.157.71 52864 199.252.216.15 443 6 116766 1426163.39.157.71 52864 199.252.216.15 443 6 116769 436133.244.153.246 56862 31.65.185.141 443 6 116773 4065.119.5.150 80 150.79.7.11 52758 6 116777 192182.104.251.244 64598 150.79.7.129 80 6 116781 40163.39.157.71 52865 199.252.216.15 443 6 116788 436126.71.29.111 61782 203.146.247.176 80 6 116796 40202.234.228.45 58507 38.249.43.123 443 6 116801 1500133.244.153.246 56862 31.65.185.141 443 6 116804 40163.39.157.71 52865 199.252.216.15 443 6 116811 1426163.39.157.71 52867 199.252.216.15 443 6 116818 43661.43.24.146 80 133.227.178.71 55651 6 116822 150061.43.24.146 80 133.227.178.71 55651 6 116831 1500126.71.29.111 61782 203.146.247.176 80 6 116838 40133.244.153.246 54194 165.143.250.152 443 6 116841 52163.39.157.71 52867 199.252.216.15 443 6 116844 1426133.244.153.246 56862 31.65.185.141 443 6 116851 40199.252.216.15 443 163.39.157.71 52864 6 116860 64199.252.216.15 443 163.39.157.71 52864 6 116863 5261.43.24.136 80 133.227.178.71 55658 6 116871 1500202.234.228.45 58507 38.249.43.123 443 6 116875 1500203.146.250.47 80 199.48.187.153 58554 6 116878 99061.43.24.136 80 133.227.178.71 55658 6 116882 150040.17.153.225 443 133.244.144.247 22150 6 116885 434223.139.34.184 57258 203.146.250.47 80 6 116888 40223.139.34.184 57258 203.146.250.47 80 6 116892 40133.244.153.246 56862 31.65.185.141 443 6 116898 4036.10.160.187 64334 150.79.177.11 62064 6 116915 40182.158.75.33 80 157.210.199.11 11540 6 116918 64175.161.50.49 61316 150.79.7.129 80 6 116921 52133.244.153.246 56862 31.65.185.141 443 6 116925 40202.234.228.45 58507 38.249.43.123 443 6 116935 1500133.244.153.246 54194 165.143.250.152 443 6 117021 52133.244.153.246 56862 31.65.185.141 443 6 117028 4023.238.55.225 80 202.234.35.13 54750 6 117031 150023.238.55.225 80 202.234.35.13 54750 6 117034 1500133.244.153.246 56862 31.65.185.141 443 6 117038 40113.150.148.134 9051 150.42.177.43 54756 6 117048 52133.244.153.246 56862 31.65.185.141 443 6 117111 40113.5.21.232 5328 150.79.7.129 80 6 117125 40163.39.157.71 52864 199.252.216.15 443 6 117129 1426163.39.157.71 52864 199.252.216.15 443 6 117133 436163.39.157.71 52865 199.252.216.15 443 6 117136 436133.244.153.246 56862 31.65.185.141 443 6 117193 401.106.21.96 1946 150.79.7.129 80 6 117204 40133.244.153.246 54194 165.143.250.152 443 6 117207 5260.36.215.88 51464 150.79.7.129 80 6 117212 52163.39.157.71 52865 199.252.216.15 443 6 117215 1426173.199.56.233 80 202.234.224.241 59801 6 117218 1500173.199.56.233 80 202.234.224.241 59801 6 117225 1500133.244.153.246 56862 31.65.185.141 443 6 117245 40202.234.227.137 58409 89.57.134.9 80 6 117248 4069.192.0.189 80 202.234.225.187 59368 6 117251 1500202.234.227.137 58409 89.57.134.9 80 6 117258 4069.192.0.189 80 202.234.225.187 59368 6 117261 1500202.234.227.137 58076 89.57.134.158 80 6 117266 40131.14.158.108 62531 216.19.170.177 80 6 117269 40202.234.227.137 58409 89.57.134.9 80 6 117301 4023.234.243.99 443 203.146.254.83 61708 6 117304 52133.244.153.246 56862 31.65.185.141 443 6 117311 40199.252.216.15 443 163.39.157.71 52864 6 117316 64199.252.216.15 443 163.39.157.71 52864 6 117319 5223.234.243.101 80 203.146.254.83 61718 6 117324 52211.3.241.186 14457 150.79.7.129 80 6 117331 40133.227.127.204 53917 103.238.115.79 80 6 117335 4061.111.37.246 49473 150.79.7.129 80 6 117357 52133.244.153.246 56862 31.65.185.141 443 6 117371 4023.234.243.101 80 203.146.254.83 61712 6 117375 5223.234.243.99 443 203.146.254.83 61711 6 117381 52131.14.92.245 60000 54.20.141.183 443 6 117384 40101.105.131.251 62325 203.146.240.134 80 6 117388 52118.91.103.40 53186 150.79.7.129 80 6 117467 52118.91.103.40 53186 150.79.7.129 80 6 117471 5223.234.243.101 80 203.146.254.83 61719 6 117474 5223.234.243.99 443 203.146.254.83 61710 6 117478 52133.244.153.246 56862 31.65.185.141 443 6 117481 4031.65.185.129 443 202.31.174.9 51205 6 117484 143031.65.185.129 443 202.31.174.9 51205 6 117487 143031.65.185.129 443 202.31.174.9 51205 6 117495 143031.65.185.129 443 202.31.174.9 51205 6 117502 1430133.244.153.246 56862 31.65.185.141 443 6 117506 4031.65.185.129 443 202.31.174.9 51205 6 117510 1430222.165.41.192 55767 150.79.7.129 80 6 117514 4023.234.243.101 80 203.146.254.83 61704 6 117518 5223.234.243.101 80 203.146.254.83 61702 6 117521 5223.234.243.99 443 203.146.254.83 61709 6 117525 5223.234.243.101 80 203.146.254.83 61703 6 117531 52202.126.14.111 80 150.79.179.98 59791 6 117569 52150.33.47.65 8932 150.79.7.129 80 6 117576 40133.227.127.204 53917 103.238.115.79 80 6 117587 40133.244.153.246 56862 31.65.185.141 443 6 117590 4023.234.243.99 443 203.146.254.83 61706 6 117603 52163.39.157.71 52867 199.252.216.15 443 6 117606 43623.234.243.99 443 203.146.254.83 61707 6 117617 52163.39.157.71 52867 199.252.216.15 443 6 117633 1426133.244.153.246 56862 31.65.185.141 443 6 117644 40133.244.153.246 54194 165.143.250.152 443 6 117694 5282.102.13.136 1364 133.250.174.99 445 6 117698 48163.39.157.71 52864 199.252.216.15 443 6 117702 1426163.39.157.71 52864 199.252.216.15 443 6 117705 436163.39.157.71 52865 199.252.216.15 443 6 117718 1426163.39.157.71 52865 199.252.216.15 443 6 117722 436183.52.183.141 993 202.231.242.67 36931 6 117803 52133.244.153.246 56862 31.65.185.141 443 6 117809 40133.244.153.246 56862 31.65.185.141 443 6 117814 40203.48.9.248 23617 150.79.7.129 80 6 117829 4064.120.227.69 443 163.39.158.247 58667 6 117869 1426133.244.153.246 56862 31.65.185.141 443 6 117878 40131.14.92.245 60000 54.20.141.183 443 6 117881 40119.125.248.106 10777 133.250.156.245 50356 6 117900 48133.244.153.246 54194 165.143.250.152 443 6 117968 5227.178.159.198 4419 150.79.7.129 80 6 117980 40133.244.153.246 56862 31.65.185.141 443 6 117983 4064.120.227.69 443 163.39.158.247 58667 6 117994 1426202.234.224.241 59801 173.199.56.233 80 6 118007 40125.51.122.124 32415 150.79.7.129 80 6 118016 4061.211.145.45 61611 150.79.7.129 80 6 118021 40133.244.153.246 56862 31.65.185.141 443 6 118024 40203.48.9.248 23620 150.79.7.129 80 6 118043 40202.234.224.241 59801 173.199.56.233 80 6 118062 40202.234.224.241 59801 173.199.56.233 80 6 118065 4023.11.86.235 80 157.210.156.203 47406 6 118069 40115.109.126.31 42535 150.79.7.129 80 6 118075 40133.244.153.246 56862 31.65.185.141 443 6 118078 40114.125.195.70 17294 150.79.7.129 80 6 118092 52133.244.153.246 54194 165.143.250.152 443 6 118180 52133.244.153.246 56862 31.65.185.141 443 6 118193 4061.43.24.136 80 133.227.178.71 55658 6 118196 1500163.39.157.71 52864 199.252.216.15 443 6 118201 1426163.39.157.71 52864 199.252.216.15 443 6 118220 436110.135.17.73 48692 150.79.7.129 80 6 118420 52110.135.17.73 48692 150.79.7.129 80 6 118424 52110.135.17.73 48692 150.79.7.129 80 6 118427 52150.33.47.65 8932 150.79.7.129 80 6 118439 4027.178.159.198 4419 150.79.7.129 80 6 118447 40103.246.81.74 47751 203.146.247.176 80 6 118451 64133.244.153.246 56862 31.65.185.141 443 6 118491 4061.243.110.158 10035 150.79.7.129 80 6 118507 4061.243.110.158 10035 150.79.7.129 80 6 118511 40157.210.154.200 54684 31.65.191.15 443 6 118514 55823.225.11.237 80 202.31.174.9 18622 6 118518 1430133.244.153.246 56862 31.65.185.141 443 6 118521 4023.225.11.237 80 202.31.174.9 18622 6 118524 143023.225.11.237 80 202.31.174.9 18622 6 118566 143023.225.11.237 80 202.31.174.9 18622 6 118569 143023.225.11.237 80 202.31.174.9 18622 6 118573 143023.225.11.237 80 202.31.174.9 18622 6 118576 143023.225.11.237 80 202.31.174.9 18622 6 118580 1430133.244.153.246 56862 31.65.185.141 443 6 118587 4023.225.11.237 80 202.31.174.9 18622 6 118590 1430133.244.153.246 54194 165.143.250.152 443 6 118601 5223.225.11.237 80 202.31.174.9 18622 6 118606 143027.178.159.198 4419 150.79.7.129 80 6 118609 40157.210.145.83 53131 66.36.161.181 443 6 118613 35923.225.11.237 80 202.31.174.9 18622 6 118616 1430150.33.47.65 8932 150.79.7.129 80 6 118620 40150.33.47.65 8932 150.79.7.129 80 6 118623 40150.33.47.65 8932 150.79.7.129 80 6 118627 4027.178.159.198 4419 150.79.7.129 80 6 118630 4027.178.159.198 4419 150.79.7.129 80 6 118635 4027.178.159.198 4419 150.79.7.129 80 6 118639 40211.73.188.247 443 202.234.35.13 36955 6 118653 1500211.73.188.247 443 202.234.35.13 36955 6 118657 30361.111.37.246 49473 150.79.7.129 80 6 118660 40118.162.252.133 6095 150.79.7.129 80 6 118665 40133.244.153.246 56862 31.65.185.141 443 6 118675 40163.39.157.71 52865 199.252.216.15 443 6 118714 1426163.39.157.71 52865 199.252.216.15 443 6 118718 436106.43.9.102 2840 150.79.7.129 80 6 118725 40221.2.4.133 58658 150.79.7.129 873 6 118729 52163.39.157.71 52864 199.252.216.15 443 6 118733 43683.217.137.20 62919 150.79.118.25 2821 6 118739 1458163.39.157.71 52864 199.252.216.15 443 6 118742 142631.65.185.129 443 202.31.174.9 51205 6 118746 1430Input:file2.txt121 12 13 15 17 21 22 23 27 29 31 36Output:flow.Txt0 416.75 1500.001 575.00 40.002 273.92 931.003 20.29 52.004 2799.00 40.005 316.82 931.006 1113.50 52.007 304.91 52.008 12.00 1344.009 119.43 1370.8810 358.40 1500.0011 205.86 1500.0012 331.50 40.0013 11.00 1500.0014 268.86 931.0015 149.67 1500.0016 201.71 56.5017 459.80 1300.5018 451.00 521.0019 73.03 40.0020 192.55 1430.0021 85.33 40.0022 726.00 40.0023 6.21 52.0024 315.17 40.0025 662.50 1500.0026 3.00 1500.0027 26.50 40.0028 252.00 40.0029 1303.00 46.0030 497.00 40.0031 252.40 1430.0032 262.75 40.0033 125.00 1426.0034 29.00 40.0035 3.50 52.0036 4.00 40.00Output:KMedoidsdetails.Txt如有需要,请加QQ:99515681 或邮箱:99515681@qq.com

添加老师微信回复‘’官网 辅导‘’获取专业老师帮助,或点击联系老师1对1在线指导