University : The University of the Fraser Valley UniLearnO is not sponsored or endorsed by this college or university.
Subject Code : COMP370
Country : Canada
Assignment Task -                 
 

 

Brief Description 

This assignment amounts to 5% (see the course syllabus) of the entire course grade. In particular, whatever your team obtains as a score will be scaled to this value for final grade computation. You may work in a team of up-to 4 students, exceptional case will be 5 students (instructor’s permission is requi). However, when a deliverable is handed in as a group, a participation journal – a detail of each member’s contribution(s) will be required as a key component of the submission and will determine grades of each member. For example, a zero-participation in this component will attract 0% for such team member. 

The goal of this assignment is to analyze and evaluate various design options (that can be used for a purpose), and report your findings on performances of the designs. You will find a grading scheme at the end of this document – to guide you on instructor’s expectations while preparing your submission.

 

Problem Definitions 

Performance Analysis of Design

 

1. Performance Analysis of Design Options : This problem is adapted from Section 2.9 of our required text (starting on page 57). Assuming you are a software analyst on a project that requires extensive (in millions) rotation of points and computation of distance between any two points and performance is key to the success of the project. However, to realize this, 

 Assignment 1 — Analysis of Design Options 

you are allowed to store a point either in its Polar or Cartesian coordinates formats. For example, you may choose to store a point in its Polar form but provide interfaces to convert or store it in its Cartesian form and vice-versa. In its Cartesian state, you will be storing the ’x’ and ’y’ coordinates of the point while you will be storing its distance from a reference point (r) and theta - an angle from the reference direction (Θ) in its Polar state. 

Alternative designs for PointCP class

 

 

You are required to do the following: 

(a) Modify the original implementation of PointCP.java to reflect distinct design specifications in Table 1. In particular, you will end up with 4 different implementations (say D3, D4, D52, D53). Do not modify implementations of methods - getDistance(...) and rotateP oint(...) for any of the design considerations (leave as-is). You are to hand-in a working code for each of the implementations that you have written.

(b) Modify the downloaded version of PointCPTest.java accordingly to allow you test all the designs you have developed and write a brief report on your experiment. For each implemen tation, you may have different test file. You are to study execution times (in milliseconds) with implementations of rotatePoint(double rotation) and getDistance(Object point) for all the designs at different loop sizes and for at least six different runs. (see Listing 1 on how to setup your timer object).

2. Arrays : Compare the performance of ArrayList, Vector and ordinary arrays. You should do a series of experiments where you do each of the following tests with the three types of collection, timing the execution of each run. You should run each case several times on the same computer to obtain stable average timings. 

You are required to do the following: 

(a) Construct very large collections by putting random integers into each collection one at a time. The random integers should range in value from zero to nine. You should make each collection large enough so that the running time takes at least 10 seconds to add the integers in the case of an ArrayList. You will have to do some initial experiments to find out what is a good size. You would use the same size of elements for ArrayList, Vector and the array. The ArrayList and Vector can be created by successively adding items and allowing them to grow, while the array has to be created at its full size and then populated with its contents. You could also try to experiment with the case where you do create the ArrayList and Vector initially with their full size. 

(b) Construct very large collections as in (a). Then use iterators to sum the elements. Subtract the construction time to get a measure of how much time the iteration takes. Use a for loop for the array, and an Iterator for the Vector and ArrayList. 

 

Grading Scheme

 

Document Requirements 

1. Metadata – Assignment details, team member names [Last name, First name + Other name(s)]. Also note that if your metadata is missing or incomplete, your submission will not be graded. In other words, you will be graded zero percent for this component. 

2. Participation journal – An outline of activities and contributions of each member to this com ponent. If this is missing, the entire team will be graded zero-percent for this component. For a member with zero-participation will be awarded zero-percent for this component only. 

3. To be uploaded – One submission per group (where applicable). This includes reports on ques tions (1) and (2), and participation journal which should be bundled into a single PDF. The codes and the PDF report should be zipped and uploaded to Blackboard by a designated team member (where applicable). Name your zipped file accordingly - don’t just name it generically. 

4. Academic Misconduct – This is a very severe offence and will be dealt with strictly. You are warned not to copy from another. It is your responsibility to know acceptable boundaries of collaborations. 

 

This COMP 370 IT/Computer Science Assignment has been solved by our IT/Computer Science Experts at UniLearnO. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.

Be it a used or new solution, the quality of the work submitted by our assignment Experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.
    
 

Eureka! You've stumped our genius minds (for now)! This exciting new question has our experts buzzing with curiosity. We can't wait to craft a fresh solution just for you!

  • Uploaded By : Roman
  • Posted on : December 03rd, 2018

Whatsapp Tap to ChatGet instant assistance