|
CMSC 330, Fall 2007Organization of Programming LanguagesWe meet in CSI 1115 on Tuesdays and ThursdaysProject 1Test Case 1 - ValidationInput: [download] 72.30.61.37 - - [22/Jul/2006:00:00:15 -0400] "GET /~ben/ HTTP/1.0" 200 10175 59.144.5.65 - - [22/Jul/2006:00:00:14 -0400] "GET /~hendler/hendler.gif HTTP/1.1" 200 23118 209.249.86.4 - - [22/Jul/2006:00:00:17 -0400] "GET /users/pugh/java/memoryModel/archive/2437.html HTTP/1.0" 200 5279 128.8.128.160 - - [22/Jul/2006:00:06:52 -0400] "GET /hcil/_includes/publications-2-col.html HTTP/1.0" 200 12043 64.4.8.94 - - [22/Jul/2006:00:08:53 -0400] "GET /projects/hcil/members/cplaisant/ HTTP/1.0" 200 15738 128.8.128.160 - - [22/Jul/2006:00:08:53 -0400] "GET /hcil/_includes/publications-2-col.html HTTP/1.0" 200 12043 221.236.111.21 - - [22/Jul/2006:23:59:59 -0400] "GET /favicon.ico HTTP/1.1" 404 425 72.30.129.107 - - [23/Jul/2006:00:00:03 -0400] "GET /users/hendler/cs620.html HTTP/1.0" 200 2735 69.143.248.68 - - [23/Jul/2006:12:00:20 -0400] "GET /assets/images/logos/globe2.gif HTTP/1.1" 200 3708 128.8.128.68 - - [23/Jul/2006:13:00:52 -0400] "GET /Library HTTP/1.1" 301 304 66.249.66.65 - - [24/Jul/2006:09:00:02 -0400] "GET /Library/TRs/CS-TR-3643/CS-TR-3643.abs HTTP/1.1" 200 978 64.139.51.178 - - [25/Jul/2006:18:00:00 -0400] "GET /~jan/images/florence/088fullmoon%20florence.jpg HTTP/1.1" 200 107416 68.48.137.141 - - [25/Jul/2006:18:06:15 -0400] "GET /class/summer2006/cmsc131/ HTTP/1.1" 200 4960 85.19.72.153 - - [25/Jul/2006:23:00:11 -0400] "GET /class/spring2006/cmsc740/ HTTP/1.1" 304 0 85.19.72.153 - - [25/Jul/2006:23:02:02 -0400] "GET /class/fall2005/cmsc412/ HTTP/1.1" 304 0 85.19.72.153 - - [25/Jul/2006:23:02:02 -0400] "GET /class/fall2005/cmsc417/ HTTP/1.1" 304 0 128.118.126.16 - - [27/Jul/2006:15:00:03 -0400] "GET /hcil/about/events/open-house-2001/hdrexsmall.gif HTTP/1.1" 200 2619 128.118.126.16 - - [27/Jul/2006:15:00:03 -0400] "GET /hcil/about/events/open-house-2001/BtnWorkshop.jpg HTTP/1.1" 200 6243 Expected output: yes Test Case 2 - BytesInput: same as test #1 [download] Expected output: 202 KB Test Case 3 - TimeInput: same as test #1 [download] Expected output: 00 7 01 0 02 0 03 0 04 0 05 0 06 0 07 0 08 0 09 1 10 0 11 0 12 1 13 1 14 0 15 2 16 0 17 0 18 2 19 0 20 0 21 0 22 0 23 4 Test Case 4 - PopularityInput: [download] 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy01 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy02 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy02 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy03 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy03 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy03 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy04 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy04 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy04 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy04 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy05 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy05 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy05 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy05 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy05 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy06 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy06 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy06 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy06 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy06 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy06 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy07 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy07 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy07 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy07 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy07 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy07 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy07 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy08 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy08 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy08 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy08 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy08 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy08 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy08 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy08 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy09 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy09 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy09 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy09 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy09 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy09 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy09 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy09 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy09 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy10 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy10 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy10 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy10 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy10 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy10 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy10 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy10 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy10 HTTP/1.1" 200 12345 128.128.128.128 - - [12/Dec/2007:12:12:12 -0400] "GET /dummy10 HTTP/1.1" 200 12345 Expected output: 10 "GET /dummy10 HTTP/1.1" 9 "GET /dummy09 HTTP/1.1" 8 "GET /dummy08 HTTP/1.1" 7 "GET /dummy07 HTTP/1.1" 6 "GET /dummy06 HTTP/1.1" 5 "GET /dummy05 HTTP/1.1" 4 "GET /dummy04 HTTP/1.1" 3 "GET /dummy03 HTTP/1.1" 2 "GET /dummy02 HTTP/1.1" 1 "GET /dummy01 HTTP/1.1" |