



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Main points of this past exam are: Streams, Properties, Arithmetic Random-Number Generator, Very Long Period, Computer Simulation Modelling, Streams Necessary, Fabonacci Generator, Expanded Version, Fabonacci, Simulation Modelling
Typology: Exams
1 / 5
This page cannot be seen from the preview
Don't miss anything!




Semester 2 Examinations 2008/
Module Code: COMP 9005
School: Computing & Mathematics
Programme Title: Master of Science in Software Development
Programme Code: KSDEV_9_Y
External Examiner(s): Dr J F Power Internal Examiner(s): Dr J Creagh
Instructions: Answer THREE questions. Note 120 marks maximum.
Duration: 2 Hours
Sitting: Summer 2009
Requirements for this examination:
Note to Candidates: Please check the Programme Title and the Module Title to ensure that you have received the correct examination paper. If in doubt please contact an Invigilator.
(b) (i) Define ‘generating random variates’. (2 marks) (ii) Write an algorithm and give the C/C++ code structure for the generation of exponential continuous random variates. An explanation is required. (11 marks)
(b) Multiple random number streams are recommended to reduce variance in a simulation. Explain why this is true? (7 marks)
(c) Consider the classical ‘time shared system’ problem. N terminals exist. The users at a terminal wait and later submit work or a job to a round robin scheduler for a single processor system. Choose your own arrival times and server times. Develop a solution for:
(b) Cleary describe the major components of Run-Time Infrastructure (RTI) implementation architecture. An architecture diagram for the following example must clearly illustrate the major components.
EXAMPLE: 3 federations are defined. The BUS federation contains two federates Bus Engine and Passenger. The TRUCK federation contains three federates Truck Engine, Load and Driving Conditions. The CAR federation contains two federates Car Engine and Environment. (14 marks)
(c) With reference to the HLA country population federation case study, describe how to write a program for a time stepped federate. C++ code elements are required. (10 marks)