Skip to main content

Design and implement a discrete event simulation Choose and implement appropriate data structures Adapt standard algorithms to a specific problem

Ojectives
Design and implement a discrete event simulation Choose and implement appropriate data structures Adapt standard algorithms to a specific problem
Task
You should write a single program which simulates the queuing and service of customers under two different queuing strategies and compare the results.
Program
Your program should run two discrete event simulations, one for each strategy. Each simulation should start at time 0 and run until all customers have been served.
The two queueing strategies are as follows:
1. Use a single queue from which each server will take the next customer as soon as the server becomes available.
2. Use a queue for each server. Customers will choose the server with the shortest queue on arrival and will not move from queue to queue.
Your program should be readable and well commented.
Data Structures and Algorithms
Part of the purpose of this subject is to gain an in-depth understanding of data structures and algorithms. As such, all programming tasks in this subject require you to choose appropriate data structures and algorithms, and to implement them yourself. You may not take advantage of any built in data structures more complex than an array, but instead should provide your own implementation. The use of STL, Java Collection, or any collection framework in your language of choice, is disallowed. If you use any references other than the lecture notes, ensure you cite them or you may receive 0 for plagiarism. A clear comment in your code is sufficient. 1
Readme
Write a text file named readme. Include clear instructions on how to compile and run your algorithm. Ensure that your program compiles and runs correctly on ubuntu, in the lab. If your program does not compile, it will receive 0 marks. If it doesn’t run according to the specification, you will receive very few marks. You may also include a makefile if you wish.
Analysis
Once your program is complete, you should run it for some sample scenarios and examine the results. Write a file named analysis.pdf containing a discussion the differences you observe in statistics between the two queueing strategies. Which strategy is most efficient?
Input
Both simulations will use identical inputs. Your program should read a file name from standard input, and run each simulation using the named file as the input file.
The input file has the following format:?
• The number of servers.?
• A set of lines each consisting of a customer arrival time followed by the corresponding service time.
Times are in seconds, from the start of the simulation. Although a sample input file has been provided, your program should still run sucessfully substantially larger inputs.
Output
Output should be to standard output.?
For each of the two simulations the output should consist of the following data, clearly labelled:
• Number of people served. ?
• Time that the last customer finished being served (total simulation time). ?
• Average service time (note this should depend only on the input file). ?
• Average time a customer spends in queue. ?
• Maximum time a customer spends in queue. ?
• Average length of queue in any given second. For each queue and in total for the multi-queue version of the simulation. ?
• Maximum Length of queue. For each queue and in total for the multi-queue version of the simulation. ?• Total idle time for each server. ?
Plagiarism is treated seriously. If we suspect any work is copied, all students involved are likely to receive zero for the entire assignment.

Comments

Popular posts from this blog

Identify and discuss a key milestone in the history of computers that interests you and why.

  Part 1Title: Lab ResponseDiscuss one feature of MS Word and one feature of MS Excel that you found challenging within the lab and why. Examples are WordArt, inserting shapes, adding borders, cell styles, etc. This response should be at least one paragraph in length. Part 2Title: History of Computers Identify and discuss a key milestone in the history of computers that interests you and why. This section should be at least one paragraph. Part 3Title: System Software vs. Application Software In your words, explain the difference between application software and system software as if to another coworker who has limited technical knowledge. Use examples to support your rationalization. This section should be at least two paragraphs. Part 4Title: Blockchain and Cryptocurrency In a minimum of one paragraph each: 1. Conduct some research on the internet and discuss one underlying technology of cryptocurrencies like blockchain, cryptography, distributed ledger technol...

You have been given the t

PPMP20009 Leading Lean Projects Term 2, 2018 Page 1 of 3 Assessment 1 (Individual Work – 40%) Case study: Managing Lean Project Introduction You have been given the task to organise the FIFA 2018 World Cup football tournament ( https://ift.tt/2If0UDE ). (For those not familiar with football, you may change the event to the recently concluded 2018 Gold Coast Commonwealth Games: https://gc2018.com/ ). Your tasks This assessment item requires you to work INDIVIDUALLY. 1. As the project manager in charge of delivering such as an important world sporting event: i. Identify and elaborate the following terms with regards to the event. a. Voice of the Customer (VOC) b. Critical to Customer Requirements (CCR) c. Critical to Quality parameters (CTQ) ii. In what ways would you have implemented lean project management for this event? Identify and elaborate processes from PMBOK, PRINCE2, Organisational Project iii. Management Agile Practices and Lean Six Sigma (DMAIC Me...

Cybersecurity and Infrastructure Security (CISA)

 Develop a research paper that identifies a specific Department of Homeland Security (DHS) operating agency. Fully describe 1 DHS operating agency from the following list: Cybersecurity and Infrastructure Security (CISA) U.S. Customs and Border Protection (CBP) U.S. Citizenship and Immigration Services (USCIS) Federal Emergency Management Agency (FEMA) U.S. Coast Guard (USCG) U.S. Immigration and Customs Enforcement (ICE) U.S. Secret Service (USSS) Transportation Security Administration (TSA) The information must include a discussion of the selected DHS agency. Identify the agency’s mission, goals, objectives, and metrics. Conduct an analysis of how these mission areas address the threats or challenges. Recommend agency program priorities among the current set of goals, objectives, metrics, or budget items. Justification of all choices is an essential element of this assignment. Reference all source material and citations using APA format. WE OFF...