{"id":523,"date":"2015-07-22T03:27:04","date_gmt":"2015-07-21T17:27:04","guid":{"rendered":"http:\/\/casestudyhelp.com\/sample-questions\/?p=523"},"modified":"2018-01-29T18:40:14","modified_gmt":"2018-01-29T07:40:14","slug":"design-analysis-of-algorithms-and-java-programming-help","status":"publish","type":"post","link":"https:\/\/casestudyhelp.com\/sample-questions\/design-analysis-of-algorithms-and-java-programming-help\/","title":{"rendered":"Design &#038; Analysis of Algorithms and Java Programming Help"},"content":{"rendered":"<p style=\"text-align: justify;\"><strong>CMP561 Quiz #2 Page 1<\/strong><br \/>\n<strong> CMP 561 Design &amp; Analysis of Algorithms Dr. Yao<\/strong><br \/>\n<strong> Quiz #2 One submission per team.<\/strong><br \/>\n<strong> Resource to Study:<\/strong><br \/>\nStateSearch.java (data file name: addressfile.txt)<br \/>\nTask: Your team is tasked to develop a program to compare the CPU efficiency and Memory efficiency among 3 data structures: java.util.ArrayList, java.util.Vector, and static array used in implementing a solution to the requirements described below. This program DOES NOT take any input from the user at all. Name your drive class as TeamNumber QZ2, for example, Team18QZ2<br \/>\nRequirements: (See next page for a possible pseudo code)<br \/>\nDevelop a program to similar 50,000 searches of customer records by 5 different states. Your team can pick any 5 states to search. Hence, each search consists of searching by 5 different states. In other words, this simulation program will perform 250,000 searches.<br \/>\nRecords will be displayed in an ascending order by the zip code. An insertion sort algorithm is used to perform sorting.<\/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;\">Create a comment file to contain the screen shots of your program out and the conclusion your team derive from your program output. Please name the comment file as: TeamNumberQZ2<br \/>\nAbout Data:<br \/>\nEach line\/record in the data file, CustomerAddress.csv, contains 5 fields:<br \/>\nCustomerName, StreetAddress, City, State, ZipCode<br \/>\nThe field delimiter is a comma, hence, csv file. Listed below is a sample record:<br \/>\nSan Diego State University Foundation,5250 Campanile Drive,San Diego,CA,921822190<br \/>\nGrading Policy<br \/>\nDeducted<br \/>\nWhy<br \/>\n5%<br \/>\nSubmitted a solution that is identical 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 \/>\n2%<br \/>\nDid not submit the comment file or the comment file is incomplete.<br \/>\n1%<br \/>\nSubmitted one or more bytecode files.<br \/>\n1%<br \/>\nSubmitted one or more files without the names of team members.<br \/>\n1%<br \/>\nDid not follow the file naming instruction.<br \/>\nCMP561 Quiz #2 Page 2<br \/>\nA possible pseudo code for your program:<br \/>\nBegin<br \/>\nOpen CustomerAddress.cvs for reading<br \/>\nLoop<br \/>\nRead one data record\/line from CustomerAddress.csv<br \/>\nAdd the current record to ArrayList<br \/>\nAdd the current record to Vector<br \/>\nAdd the current to the static array<br \/>\nUntil the end of file<br \/>\nClose CustomerAddess.csv<br \/>\nFind out the memory used by ArrayList<br \/>\nFind out the memory used by Vector<br \/>\nFind out the memory used by static array<br \/>\nLoop<br \/>\nSearch state #1 against ArrayList<br \/>\nSearch state #2 against ArrayList<br \/>\nSearch state #3 against ArrayList<br \/>\nSearch state #4 against ArrayList<br \/>\nSearch state #5 against ArrayList<br \/>\nUntil 50,000 times is reached<br \/>\nFind out the CPU time used by searching against ArrayList<br \/>\nLoop<br \/>\nSearch state #1 against Vector<br \/>\nSearch state #2 against Vector<br \/>\nSearch state #3 against Vector<br \/>\nSearch state #4 against Vector<br \/>\nSearch state #5 against Vector<br \/>\nUntil 50,000 times is reached<br \/>\nFind out the CPU time used by searching against Vector<br \/>\nLoop<br \/>\nSearch state #1 against static array<br \/>\nSearch state #2 against static array<br \/>\nSearch state #3 against static array<br \/>\nSearch state #4 against static array<br \/>\nSearch state #5 against static array<br \/>\nUntil 50,000 times is reached<br \/>\nFind out the CPU time used by searching against static array<br \/>\nEnd of Program<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: center;\"><strong>To get answer chat with online assignment adviser<\/strong><\/p>\n<p style=\"text-align: center;\"><a title=\"Order Now\" href=\"https:\/\/casestudyhelp.com\/MyOrder.php\" target=\"_blank\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-2455\" src=\"https:\/\/casestudyhelp.com\/sample-questions\/wp-content\/uploads\/2016\/04\/Oerder-Now.png\" alt=\"Order Now\" width=\"840\" height=\"120\" srcset=\"https:\/\/casestudyhelp.com\/sample-questions\/wp-content\/uploads\/2016\/04\/Oerder-Now.png 840w, https:\/\/casestudyhelp.com\/sample-questions\/wp-content\/uploads\/2016\/04\/Oerder-Now-300x43.png 300w\" sizes=\"(max-width: 840px) 100vw, 840px\" \/><\/a><\/p>\n<p style=\"text-align: center;\">\n<p style=\"text-align: center;\">\n<p style=\"text-align: center;\"><strong>Ask Your\u00a0<a title=\"Java Programming Assignment Question\" href=\"https:\/\/casestudyhelp.com\/computer-assignment\/java-programming-assignment-help.html\" target=\"_blank\">Java Programming Assignment Question<\/a><\/strong><strong>?<\/strong><br \/>\n<strong>Check out our\u00a0<a title=\"Help with Java Assignment Service\" href=\"https:\/\/casestudyhelp.com\/computer-assignment\/java-assignment-help-from-java-expert.html\" target=\"_blank\">Help with Java Assignment Service<\/a><\/strong><br \/>\n<strong>Find Your\u00a0<a title=\"ASP.Net Assignment Help by Programming Experts\" href=\"https:\/\/casestudyhelp.com\/computer-assignment\/asp-dot-net-programming-assignment-help.html\" target=\"_blank\">ASP.Net Assignment Help by Programming Experts<\/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>CMP561 Quiz #2 Page 1 CMP 561 Design &amp; Analysis of Algorithms Dr. Yao Quiz #2 One submission per team. Resource to Study: StateSearch.java (data file name: addressfile.txt) Task: Your team is tasked to develop a program to compare the CPU efficiency and Memory efficiency among 3 data structures: java.util.ArrayList, java.util.Vector, and static array used [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[190,876],"tags":[349,348],"_links":{"self":[{"href":"https:\/\/casestudyhelp.com\/sample-questions\/wp-json\/wp\/v2\/posts\/523"}],"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=523"}],"version-history":[{"count":3,"href":"https:\/\/casestudyhelp.com\/sample-questions\/wp-json\/wp\/v2\/posts\/523\/revisions"}],"predecessor-version":[{"id":2727,"href":"https:\/\/casestudyhelp.com\/sample-questions\/wp-json\/wp\/v2\/posts\/523\/revisions\/2727"}],"wp:attachment":[{"href":"https:\/\/casestudyhelp.com\/sample-questions\/wp-json\/wp\/v2\/media?parent=523"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/casestudyhelp.com\/sample-questions\/wp-json\/wp\/v2\/categories?post=523"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/casestudyhelp.com\/sample-questions\/wp-json\/wp\/v2\/tags?post=523"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}