{"id":336,"date":"2015-03-24T17:50:51","date_gmt":"2015-03-24T06:50:51","guid":{"rendered":"http:\/\/casestudyhelp.com\/sample-questions\/?p=336"},"modified":"2018-01-30T16:38:25","modified_gmt":"2018-01-30T05:38:25","slug":"design-and-analysis-of-algorithms-in-java-programming","status":"publish","type":"post","link":"https:\/\/casestudyhelp.com\/sample-questions\/design-and-analysis-of-algorithms-in-java-programming\/","title":{"rendered":"Design and Analysis of Algorithms in Java Programming"},"content":{"rendered":"<p><strong>CMP 561Designand Analysis of Algorithms<\/strong><\/p>\n<p style=\"text-align: justify;\">CMP 561Designand Analysis of Algorithms Dr. Yao<br \/>\nHomework #4 This is an individual assignment. It is not possible that 2 persons may come up with an identical solution.<br \/>\nPlease NEVER submit binary files, including zip files and bytecodes.<br \/>\nObjective: Compare the CPU efficiency between java.util.TreeSet and java.util.HashSet (Operations under comparison are: Search and Update)<br \/>\nIn order to test and show the CPU time used by TreeSet and HashSet, you need to create your own scenario along with your own data file and transaction file.<br \/>\nPlease name your .java files using your last name as the prefix: YourLastName\u2026. YourLastName\u2026.<br \/>\nFor example,<br \/>\nYaoTestTreeSet.java<br \/>\nYaoTestHashSet.java<br \/>\nYou also need to submit a file in MS Word or pdf format to describe your scenario and your conclusion.<br \/>\nWhat needs to be submitted?<br \/>\n\uf0b7 The .java files<br \/>\n\uf0b7 The data file<br \/>\n\uf0b7 The transaction file<br \/>\n\uf0b7 A comment file in MS Word or pdf format to describe your scenario and conclusion \uf0b7 DO NOT submit your output files<br \/>\nExamples of scenario:<br \/>\n1. To update the shipment date for shipped orders.<br \/>\nOrder record in the Data file contains: OrderID, OrderDate, ShipmentDate, CustomerID<br \/>\nEach line in the Transaction file contains: OrderID, ShipmentDate<br \/>\nThis program<br \/>\no reads order records from the data file into TreeSet and HashSet data structures<br \/>\no reads a line from the transaction file<br \/>\no performs necessary update to the records stored in these data structures<br \/>\no repeat until all lines in the transaction file has been processed o save the updated records into files:outputTreeSetandoutputHashset<br \/>\n2. To update the status of students.<br \/>\nStudent record in the Data file contains: StudentID, LastName, FirstName, Status<br \/>\nEach line in the Transaction file contains: StudentID, status (Accepted, Attending, Withdrew, Graduated)<br \/>\nThis program<br \/>\no reads order records from the data file into TreeSet and HashSet data structures<br \/>\no reads a line from the transaction file<br \/>\no performs necessary update to the records stored in these data structures<br \/>\no repeat until all lines in the transaction file has been processed o save the updated records into output files:outputTreeSetandoutputHashset<br \/>\nCMP561 Homework #4 Page 2<br \/>\n3. To update customer payment information.<br \/>\nPayment record in the Data file contains: CustomerID, Balance, PaidAmount<br \/>\nEach line in the Transaction file contains: CustomerID, Payment (to be added to the PaidAmount)<br \/>\nThis program<br \/>\no reads order records from the data file into TreeSet and HashSet data structures<br \/>\no reads a line from the transaction file<br \/>\no performs necessary update to the records stored in these data structures<br \/>\no repeat until all lines in the transaction file has been processed o save the updated records into output files: outputTreeSetandoutputHashset<br \/>\nYour scenario needs to include both search and update operations. In all of the above scenarios, in order to perform the necessary update, the program needs to find the record by OrderID, StdudentID or CustomerID.<br \/>\nHomework #4 Grading Policy<br \/>\nDeducted<br \/>\nWhy<br \/>\n5%<br \/>\nSubmitted a solution that is identical or similar to the one submitted by others.<br \/>\n5%<br \/>\nSubmitted a solution that has nothing or little to do with the requirements.<br \/>\n3%<br \/>\nSubmitted an incomplete solution.<br \/>\n3%<br \/>\nSubmitted a file that cannot be compiled.<br \/>\n2%<br \/>\nSubmitted a program that generates a run-time error\/exception.<br \/>\n2%<br \/>\nSubmitted a program that generates an incorrect output.<br \/>\n1%<br \/>\nSubmitted one or more binary files, including zip or jar file.<br \/>\n1%<br \/>\nSubmitted one or more files without your name.<br \/>\n1%<br \/>\nDid not follow the file naming instruction.<br \/>\n2%<br \/>\nDid not submit the comment file.<br \/>\n1%<br \/>\nComment file does not explain your scenario.<br \/>\n1%<br \/>\nComment file does not include your conclusion.<br \/>\n2%<br \/>\nTime used to read data from the data file is included.<\/p>\n<p style=\"text-align: center;\"><span style=\"color: #ff0000;\"><strong>To get answer chat with online assignment adviser<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\" align=\"center\"><a title=\"hire best assignment experts online\" href=\"https:\/\/casestudyhelp.com\/MyOrder.php\"><img decoding=\"async\" src=\"https:\/\/casestudyhelp.com\/images\/hire-best-assignment-experts-online.gif\" alt=\"Hire Your Assignment Writing Expert for Collage\/University\" \/><\/a><\/p>\n<p style=\"text-align: justify;\" align=\"center\">\n<p style=\"text-align: center;\" align=\"center\"><strong>Ask Your\u00a0<a title=\"Java Assignment Help Online\" href=\"https:\/\/casestudyhelp.com\/computer-assignment\/java-assignment-help-from-java-expert.html\" target=\"_blank\">Java Assignment Help Online<\/a><\/strong><strong>?<\/strong><br \/>\n<strong>Check out our\u00a0<a title=\"Java Programming Assignment Help Service\" href=\"https:\/\/casestudyhelp.com\/computer-assignment\/java-programming-assignment-help.html\" target=\"_blank\">Java Programming Assignment Help Service<\/a><\/strong><br \/>\n<strong>Find Your\u00a0<a title=\"computer science assignment topics\" href=\"https:\/\/casestudyhelp.com\/computer-assignment\/\" target=\"_blank\">computer science assignment topics<\/a><\/strong><\/p>\n<script type=\"text\/javascript\" charset=\"utf-8\" src=\"http:\/\/w.sharethis.com\/widget\/?wp=6.2.9\"><\/script>","protected":false},"excerpt":{"rendered":"<p>CMP 561Designand Analysis of Algorithms CMP 561Designand Analysis of Algorithms Dr. Yao Homework #4 This is an individual assignment. It is not possible that 2 persons may come up with an identical solution. Please NEVER submit binary files, including zip files and bytecodes. Objective: Compare the CPU efficiency between java.util.TreeSet and java.util.HashSet (Operations under comparison [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[116],"tags":[17,182,181,13,8],"_links":{"self":[{"href":"https:\/\/casestudyhelp.com\/sample-questions\/wp-json\/wp\/v2\/posts\/336"}],"collection":[{"href":"https:\/\/casestudyhelp.com\/sample-questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/casestudyhelp.com\/sample-questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/casestudyhelp.com\/sample-questions\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/casestudyhelp.com\/sample-questions\/wp-json\/wp\/v2\/comments?post=336"}],"version-history":[{"count":2,"href":"https:\/\/casestudyhelp.com\/sample-questions\/wp-json\/wp\/v2\/posts\/336\/revisions"}],"predecessor-version":[{"id":2840,"href":"https:\/\/casestudyhelp.com\/sample-questions\/wp-json\/wp\/v2\/posts\/336\/revisions\/2840"}],"wp:attachment":[{"href":"https:\/\/casestudyhelp.com\/sample-questions\/wp-json\/wp\/v2\/media?parent=336"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/casestudyhelp.com\/sample-questions\/wp-json\/wp\/v2\/categories?post=336"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/casestudyhelp.com\/sample-questions\/wp-json\/wp\/v2\/tags?post=336"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}