Git Product home page Git Product logo

rapsoulhaonan / randomness-simulation-in-single-server-queue Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 28 KB

:japanese_goblin: A single-server queue: where people arrive for service randomly, then take time in service. If someone arrives while the server is busy, or while other people are in line, they wait in line too

Java 100.00%
java cpp random prng quasirandom mersenne-twister halton-sequence

randomness-simulation-in-single-server-queue's Introduction

randomness-simulation-in-single-server-queue

A single-server queue: where people arrive for service randomly, then take time in service. If someone arrives while the server is busy, or while other people are in line, they wait in line too.

Simulate a single-server queue with random times between arrivals and purely deterministic service.

my wait time = the wait time of the person in front of me, plus his/her service time, minus the time between when he/she arrived and when I arrived. Except if that answer is negative, then just give 0 (I arrived after the person had departed)

In queueing theory, a discipline within the mathematical theory of probability, Kingman's formula is an approximation for the mean waiting time in a G/G/1 queue.

graph

In this problem, E(Wq) = 4.05

graph

randomness-simulation-in-single-server-queue's People

Contributors

rapsoulhaonan avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.