Develop a simulation program

Assignment Help MATLAB Programming
Reference no: EM13625

1. Given the following actual CPU burst for a task,  {6, 4, 6, 4, 13, 13, 13}, and an initial "best guess" at the burst as 10, develop a simulation to predict the length of the task's next CPU burst using the following formula.  Execute the simulation using an α of 0.1, 0.5, and 0.9.  Include in the simulation the calculation of average burst time for each α and its comparison with the "true" average.

 τn+1 =  αnt + (1 - α)nτ

2. The Poisson function,

P(r) = Cr*e-C/ r!  where C = the distribution average, is useful for modeling a distribution when the probability of any one occurrence of P(r) is extremely small and r is the number of occurrences of the event. Applying this average to message volumes and interarrival rates, C =  λ * T where λ  = message volume and T = interarrival rate, would imply:

r (- λT) P(r) =  (λT) * e / r!

Develop a simulation program to accomplish the following:

1) Ask for and accept message volume per hour, Lambda.

2) Convert this volume to message volume per second, Lambda/3600.

3) Ask for and accept the number of simulations desired.

4) Ask for and accept a random number generator seed.

5) Perform the simulation loop to determine and print interarrival times for Lambda where RN is determined by a random number generator function. 

6. Compute the average message interarrival time = sum of all interarrival times / count.

Reference no: EM13625

Questions Cloud

Project risk management approach : How does a project risk management approach pro-vide an early warning signal for impending problems or issues
Calculate the merchandise inventory values : Calculate the merchandise inventory values
Analysis of corrosion mechanisms : Analysis of corrosion mechanisms and preventative measures
Develop a simulation program : Develop a simulation program
Value chain analysis : Analyze or look at brand and critically assess them, an important analysis is the value chain.
Create a portfolio of analytical reference materials : Create a portfolio of analytical reference materials including the financial reports for at least five years. This is your analytical permanent file for the selected company.
Write a paper about lavalife : Write a paper about Lavalife(dating site)
Designing a decision support systems : Write a paper about designing a computer interface to people with visual disabilitiy.

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Calculate and plot the error in the numerical derivative

Write a program to calculate and plot the error in the numerical estimate of the derivative.

  Compute the speed of single-stage planetary gear train

Write a MATLAB function [speed] = planetary (N, emesh, first, last, arm) that computes the speed of a given link in a single-stage planetary gear train.

  Create the graph using matlab functions

Create the graph, which contains a piecewise function where a line exists in the first interval, a parabola in the second interval, and the sine function in the third interval.

  Determine the necessary shell temperature

In a shell-and-tube heat exchanger, one fluid passes through a central tube while another fluid flows through an outer shell in the opposite direction. The purpose is to heat the fluid passing through the central tube.

  Find the integral of a function at an arbitrary location

Write a Matlab function to perform numerical integration of a set of evenly spaced data points using the trapezoidal rule

  Finite difference method

Use the finite difference method to calculate the temperature at the point specified since it is easier.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd