
C programs, header files and data files associated with Discrete-Event Simulation:  A First Course 

C PROGRAMS 

acs.c      Autocorrelation statistics [Section 4.4]
buffon.c   Monte Carlo simulation of Buffon's needle problem [Section 2.3]
bvs.c      Bivariate statistics: mean, sdev, autocorrelation [Section 4.4]
cdh.c      Continuous data histograms (no graphics) [Section 4.3]
craps.c    Monte Carlo simulation of the dice game craps [Section 2.4]
det.c      Monte Carlo simulation to estimate probability of a positive determinant [Section 2.4] 
ddh.c      Discrete data histograms (no graphics) [Section 4.2]
estimate.c Computes an interval estimate for the mean of the data [Section 8.1]
galileo.c  Monte Carlo simulation of the sum-of-three-dice experiment [Section 2.3]
hat.c      Monte Carlo simulation to estimate probability of returning hats correctly [Section 2.3]
msq.c      Next-event simulation of multiple-server service node [Section 5.2]
rng.c      Lehmer random number generator with no streams [Section 2.2]
rngs.c     Lehmer random number generator with streams [Section 3.2]
rvgs.c     Random variate generators [Sections 6.2 and 7.2, Appendix E]
rvms.c     Random variate models:  evaluates pdf/cdf/idf [Sections 6.2, 7.2, Appendix D]
san.c      Stochastic activity network simulation [Section 2.4]
sieve.c    Sieve of Eratosthenes to find primes [Appendix B]
sis1.c     Trace-driven process-interaction simulation of simple inventory system [Section 1.3]
sis2.c     Random input process-interaction simulation of simple inventory system [Section 3.1]
sis3.c     Next-event simulation of simple inventory system [Section 5.2]
sis4.c     Next-event simulation of simple inventory system w/Geometric demands [Section 6.3]
ssms.c     Process-interaction simulation of single-server machine shop [Section 3.3]
ssq1.c     Trace-driven process-interaction simulation of single-server service node [Section 1.2]
ssq2.c     Random input process-interaction simulation of single-server service node [Section 3.1]
ssq3.c     Next-event simulation of single-server service node [Section 5.1]
ssq4.c     Next-event simulation of single-server service node using M/E/1 model [Section 7.3]
ttr.c      Think-type-receive model with exhaustive search [Section 5.3]
uvs.c      Univariate statistics: mean, sdev, min, max) using Welford's algorithm [Section 4.1]

HEADER FILES

rng.h      Lehmer random number generator with no streams [Section 2.2]
rngs.h     Lehmer random number generator with streams [Section 3.2]
rvgs.h     Random variate generators [Sections 6.2 and 7.2, Appendix E]
rvms.h     Random variate models:  evaluates pdf/cdf/idf [Sections 6.2, 7.2, Appendix D]

DATA FILES

ac.dat     Arrival and departure times (n = 500) for Exercise 1.2.6 [Section 1.2]
acs.dat    Sample autocorrelation data file (n = 500) for acs.c [Section 4.4]
bvs.dat    Sample bivariate data file (n = 82) for bvs.c [Section 4.4]
ddh.dat    Sample discrete data files for (n = 1000) for ddh.c [Section 4.2]
sis1.dat   Sample demands (n = 100) for sis1.c [Section 1.3, page 32]
ssq1.dat   Sample arrival and service time data (n = 1000) for ssq1 [Section 1.2, page 21]
uvs.dat    Sample univariate data file (n = 1000) for uvs.c [Section 4.1, pages 140-141, Exercise 4.1.5]

All files have been ordered alphabetically within the three categories.

There are 28 program files, 4 header files, 7 data files, and 1 Makefile, for a total of 40 files.

Updated:  June 16, 2006
