3370A1_SampleSolution_Oct2019_CorrectedYetAgain.pdf - COMP3370 Assignment 1 – Sample Solution Assignment Objectives • To gain some first-hand

3370A1_SampleSolution_Oct2019_CorrectedYetAgain.pdf -...

This preview shows page 1 - 3 out of 15 pages.

COMP3370 Assignment 1 – Sample Solution Assignment Objectives: To gain some first-hand experience with solving basic performance assessment problems related to computer organization and thereby help to solidify your understanding of how design choices affect performance. To do a little online research to learn some more about benchmarking and to do a little benchmarking yourself. Assignment Instructions: Show all your work clearly in your answers to all questions. The marks assigned to each question are shown in braces (“[” & “]”). You must hand in your assignment electronically via UMLearn using the “Assignments” functionality under the “Assessments” drop-down menu. A folder for Assignment 1 has been created there. You can hand in multiple files if so desired. Recall that you must agree to the online honesty document before the dropbox will be visible. You can read back in the course announcements on UMLearn for details on how to do this. Note that assignments are to be done independently unless otherwise explicitly stated and that inclusion of materials from online sites is not allowed. For written questions PDF ( .pdf ), Word ( .docx ), PowerPoint ( .pptx ), Rich Text Format ( .rtf ) and Text ( .txt ) format files are acceptable. Handwritten then scanned PDF files are not acceptable. For programming questions, please hand in all source files and results as well as pre-compiled executables for the target platform. You must also include a text file named ‘ README ’ for each programming question that briefly describes how to both compile and run your program. Be sure your name and student number are in each file. Comments on Sample Solution: Not all questions have right or wrong answers (this is a sample solution). Where there is more than one possible correct answer, either a general solution strategy is provided or an annotated example is done. In some cases, additional detail than would be expected in your answers to the question is provided. Review of this document should be a learning experience and this is why such additional detail is provided. Assignment Questions: [2] 1. Machine M 1 does a task in 5 seconds, machine M 2 does the same task in 30 seconds. a. What is the performance of each machine? We know from (D4) in the notes (slide 38) that Performance is 1/ExecutionTime. Performance of P M1 : 1/5 and Performance of P M2 : 1/30 b. How much faster is M 1 than M 2 ? (i.e., What is the speedup expressed as a factor?) P M1 /P M2 =30/5=6; M1 is 6 times faster than M2; Speed up: (slower machine)/(faster machine) = 30/5=6 [2] 2. Machine M 2 executes a program in 4 minutes.
Image of page 1
Page 2 of 15 a. If machine M 1 is 8 times faster than machine M 2 , what is the execution time on machine M 1 ? Given: T M2 = 4 min Therefore, T M1 = 4/8=0.5 min b. If a machine M 3 is 4 times slower than machine M 2 , what is the execution time on machine M 3 ?
Image of page 2
Image of page 3

You've reached the end of your free preview.

Want to read all 15 pages?

  • Spring '19

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes