BSc CSIT (TU) Science Simulation and Modelling (BSc CSIT, CSC317) Question Paper 2081 Nepal
This is the official BSc CSIT (TU) (Science stream) Simulation and Modelling (BSc CSIT, CSC317) question paper for 2081, as set in the regular annual examination. It carries 60 full marks and a time allowance of 180 minutes, across 12 questions. On Kekkei you can attempt this Simulation and Modelling (BSc CSIT, CSC317) past paper online with a timer, get instant AI feedback and step-by-step solutions, and track the topics where you lose marks — completely free. Whether you are revising for your BSc CSIT (TU) Simulation and Modelling (BSc CSIT, CSC317) exam or solving previous years' question papers, this 2081 paper is a great way to practise under real exam conditions.
Section A: Long Answer Questions
Attempt any TWO questions.
Explain model verification and validation. Describe the three-step approach for developing valid and credible simulation models.
Model Verification and Validation
Verification is the process of checking that the computer/simulation program correctly implements the conceptual (assumptions) model — i.e. "Are we building the model right?". It is concerned with debugging the program logic, ensuring the code, mathematical relations and data structures behave as intended.
Validation is the process of confirming that the conceptual model and its implementation are an accurate representation of the real system for the intended purpose — i.e. "Are we building the right model?". It compares model output with the behaviour of the actual system.
| Aspect | Verification | Validation |
|---|---|---|
| Question | Built right? | Right model? |
| Compares | Code vs conceptual model | Model vs real system |
| Concern | Programming/logic errors | Representativeness/accuracy |
Three-Step Approach (Naylor and Finger) for Valid and Credible Models
-
Build a model with high face validity. Develop the model so that, on the surface, it appears reasonable to people knowledgeable about the system. This is achieved by:
- Discussing the model with subject-matter experts and operators.
- Collecting accurate, relevant input data.
- Performing structured walk-throughs and sensitivity analysis of assumptions.
-
Validate the model assumptions. Assumptions fall into two classes:
- Structural assumptions — how the system operates (e.g. queue discipline, number of servers, routing).
- Data/distributional assumptions — based on statistical analysis of collected data; verified using goodness-of-fit tests (chi-square, K-S) to confirm chosen probability distributions and parameters.
-
Compare the model's input–output transformations with those of the real system. The model is validated as an input–output transformer: feed the model the same inputs the real system received and statistically compare outputs (e.g. using confidence intervals, hypothesis tests, the Turing test) against historical system data. If output matches within acceptable error, the model is considered valid and credible.
Credibility results when the manager/decision-maker accepts the model and uses its results — achieved through verification, validation, and good documentation/communication.
Define system, model and simulation. Explain the different types of models and discuss the advantages and disadvantages of simulation.
Definitions
- System: A collection of entities (people, machines, components) that interact together toward the accomplishment of some logical end. Example: a bank with tellers and customers.
- Model: A simplified abstraction or representation of a system used to study its behaviour, capturing the essential features relevant to the problem while omitting irrelevant detail.
- Simulation: The technique of imitating the operation of a real-world system over time using a model, generating an artificial history of the system from which performance estimates are drawn.
Types of Models
- Physical (iconic) vs Mathematical models — physical models are scaled tangible replicas (e.g. wind-tunnel model); mathematical models represent the system by symbols, equations and logical relations.
- Static vs Dynamic — static represents the system at a single point in time (Monte Carlo); dynamic represents the system as it evolves over time.
- Deterministic vs Stochastic — deterministic has no random variables (fixed output for fixed input); stochastic contains random inputs producing random outputs.
- Continuous vs Discrete — continuous models have state variables that change continuously with time; discrete models have state variables that change only at discrete (event) points.
Simulation models are typically mathematical, dynamic, stochastic and discrete-event.
Advantages of Simulation
- Allows study of complex systems that are intractable analytically.
- Can test new policies/designs without disturbing the real system.
- Compresses or expands time; supports "what-if" experimentation.
- Helps identify bottlenecks and understand variable interactions.
- Safer and cheaper than experimenting on the real system.
Disadvantages of Simulation
- Model building requires special training and is an art; results depend on the modeller's skill.
- Can be expensive and time-consuming to develop.
- Produces only estimates (with sampling error), not exact optimal answers.
- Large volumes of output may be misinterpreted.
- Validation and data collection can be difficult.
Explain the characteristics and structure of a basic queuing system. Discuss the various performance measures of a single-server (M/M/1) queuing system.
Characteristics and Structure of a Queuing System
A queuing system is described by the following key characteristics:
- Calling population (input source): the population of potential customers; may be finite or infinite.
- Arrival process: how customers arrive, usually described by the inter-arrival time distribution (often Poisson arrivals / exponential inter-arrival times with rate ).
- Queue (waiting line) capacity: finite or infinite number of customers that can wait.
- Queue discipline: order of service — FIFO, LIFO, SIRO (random), or priority.
- Service mechanism: number of servers and the service-time distribution (rate ).
- System capacity: maximum number of customers allowed in the system.
Structure: Customers arrive from the calling population, join a queue if the server is busy, are served according to the queue discipline, and then leave the system.
Performance Measures of the M/M/1 Queue
The M/M/1 model has Poisson arrivals (rate ), exponential service (rate ), a single server, infinite capacity and FIFO discipline. Define traffic intensity / utilization (stable when ).
- Server utilization:
- Probability of customers in system: ; idle probability .
- Average number in system:
- Average number in queue:
- Average time in system:
- Average time in queue:
These are linked by Little's law: and .
Example: If /hr and /hr, then , customers, hr = 15 min, customers.
Section B: Short Answer Questions
Attempt any EIGHT questions.
Explain the features of a general-purpose simulation language (e.g., GPSS).
Features of a General-Purpose Simulation Language (GPSS)
GPSS (General Purpose Simulation System) is a process/transaction-oriented, discrete-event simulation language. Its key features are:
- Transaction-oriented (block) modelling: the system is described as a sequence of blocks through which dynamic entities called transactions flow (e.g. GENERATE, QUEUE, SEIZE, ADVANCE, RELEASE, TERMINATE).
- Built-in entities: facilities (single servers), storages (multi-server resources), queues, and logic switches are predefined, so the modeller need not program them.
- Automatic time advance and event scheduling: the simulation clock and the future-event handling are managed internally using next-event time-advance — the user does not write the clock-control routine.
- Built-in random number and variate generation from standard distributions.
- Automatic statistics collection: queue lengths, waiting times, facility utilization, etc., are gathered and reported automatically.
- Ease of use: little programming required, rapid model development, good for queuing/service systems.
Limitation: less flexible than general programming languages for highly customised logic.
Explain the chi-square test for testing the uniformity of random numbers with an example.
Chi-Square Test for Uniformity of Random Numbers
The chi-square () test is a frequency test that checks whether generated random numbers are uniformly distributed over .
Procedure:
- Divide into equal subintervals (classes).
- Count the observed frequency of numbers falling in each class.
- Compute the expected frequency (for numbers, uniform expectation is equal per class).
- Compute the statistic:
- Compare with the critical value (degrees of freedom ). Accept uniformity (fail to reject ) if .
Example: Suppose numbers are grouped into intervals, so each. If the observed counts give , and the critical value , then since we do not reject and conclude the numbers are uniformly distributed at the 5% level.
Explain the classification of models: static vs dynamic, deterministic vs stochastic, continuous vs discrete.
Classification of Models
-
Static vs Dynamic
- Static model: represents the system at a single point in time, ignoring time evolution. Example: Monte Carlo simulation of an integral.
- Dynamic model: represents the system as it changes/evolves over time. Example: a queue observed over an 8-hour day.
-
Deterministic vs Stochastic
- Deterministic model: contains no random variables; the same input always gives the same output. Example: a fixed-formula chemical reaction model.
- Stochastic model: contains one or more random variables, so outputs are themselves random and must be treated as estimates. Example: a bank simulation with random arrivals and service times.
-
Continuous vs Discrete
- Continuous model: the state variables change continuously with respect to time (described by differential equations). Example: water level in a reservoir.
- Discrete model: the state variables change only at discrete, separate points in time (events). Example: number of customers in a shop, changing on each arrival/departure.
A typical discrete-event simulation model is dynamic, stochastic and discrete.
Explain the tests for randomness. Describe the frequency (Kolmogorov-Smirnov) test and the runs test.
Tests for Randomness
After generating random numbers we test two properties: uniformity (frequency tests) and independence (run/autocorrelation tests). Two important tests:
Frequency Test — Kolmogorov–Smirnov (K-S) Test
Tests uniformity by comparing the empirical CDF of the sample with the theoretical uniform CDF on .
- Rank the numbers in ascending order: .
- Compute
- Take .
- Compare with the critical value . If , accept that the numbers are uniformly distributed.
Runs Test
Tests independence by examining the sequence of numbers for runs (a run is a succession of increasing or decreasing values — a run up or run down).
- Count the total number of runs in the sequence.
- For numbers, the expected number of runs and variance are:
- Compute the standardized statistic .
- If , the hypothesis of independence is not rejected.
Explain the basic properties of random numbers: uniformity and independence.
Basic Properties of Random Numbers
A sequence of random numbers (each between 0 and 1) must possess two important statistical properties:
1. Uniformity
The numbers are uniformly distributed over the interval . If the interval is divided into equal sub-intervals, the expected number of observations in each is for numbers. Formally each has the density
with mean and variance .
2. Independence
Each random number is statistically independent of the others; the probability of observing a value in any sub-interval is unaffected by previous values. Knowing gives no information about (no correlation/autocorrelation).
Violating uniformity biases results; violating independence introduces patterns/correlation. These properties are checked using frequency tests (chi-square, K-S) for uniformity and runs/autocorrelation tests for independence.
Explain the inverse transform technique for generating random variates from the exponential distribution.
Inverse Transform Technique — Exponential Distribution
The inverse transform method generates a random variate from a distribution by setting its CDF equal to a uniform random number and inverting.
Steps:
- The exponential distribution with rate (mean ) has CDF:
- Set :
- Solve for :
- Since is also uniform on , this simplifies to:
Example: For and :
Repeating with successive uniform numbers produces a stream of exponential variates.
Explain Kendall's notation for queuing systems with examples.
Kendall's Notation
Queuing systems are described by the standard Kendall's notation, written as:
Where:
- A = inter-arrival-time distribution
- B = service-time distribution
- c = number of parallel servers
- N = system capacity (maximum number in system) — omitted means
- K = size of the calling population — omitted means
- (sometimes a 6th symbol for queue discipline, default FIFO)
Common symbols for A and B:
- M = Markovian / exponential (Poisson) — memoryless
- D = Deterministic (constant)
- G = General (arbitrary) distribution
- Ek = Erlang-k
Examples:
- M/M/1 — Poisson arrivals, exponential service, single server, infinite capacity and population (the basic single-server queue).
- M/M/c — Poisson arrivals, exponential service, servers (e.g. a bank with multiple tellers).
- M/D/1 — Poisson arrivals, constant (deterministic) service time, one server (e.g. an automated car wash).
- M/M/1/N — single-server queue with limited capacity .
What is a simulation clock? Differentiate between fixed-increment and next-event time-advance mechanisms.
Simulation Clock
A simulation clock is a variable in a discrete-event simulation that holds the current value of simulated time. It does not run in real time; instead it is advanced by the program as events occur, keeping track of when the system reaches each state.
There are two mechanisms for advancing the clock:
Fixed-Increment Time Advance
- The clock is advanced by a fixed amount at each step.
- After each increment, the simulation checks whether any events occurred during the interval and processes them.
- Simple to implement, but events within an interval are treated as occurring at the interval end, causing rounding error; also wastes effort during intervals with no events.
- Suited to systems where events occur at regular intervals (and to continuous simulation).
Next-Event Time Advance
- The clock jumps directly to the time of the next (most imminent) event in the future-event list.
- No time is wasted on idle intervals; no events are missed or mis-timed.
- More efficient and accurate for discrete-event systems; used by most simulation languages (e.g. GPSS).
| Feature | Fixed-increment | Next-event |
|---|---|---|
| Clock advance | by fixed | to next event time |
| Idle intervals | processed (wasteful) | skipped |
| Accuracy | approximate (rounding) | exact event timing |
Explain Markov chains and their application in simulation with an example.
Markov Chains
A Markov chain is a stochastic process that moves among a set of states such that the probability of the next state depends only on the current state, not on the sequence of past states (the Markov / memoryless property):
The one-step transition probabilities form a transition probability matrix , where each row sums to 1. The -step transition probabilities are obtained from , and the long-run (steady-state) distribution satisfies with .
Application in Simulation
Markov chains model systems whose state changes probabilistically over time — e.g. machine up/down status, weather, inventory levels, customer brand switching, and queue states. In simulation they let us generate the next state by drawing a uniform random number against the cumulative transition probabilities of the current state, and to compute steady-state behaviour.
Example: Weather
States: Sunny (S), Rainy (R). Transition matrix:
If today is Sunny, there is an 80% chance tomorrow is Sunny and 20% chance Rainy. Solving gives the long-run fractions of sunny and rainy days: , .
Frequently asked questions
- Where can I find the BSc CSIT (TU) Simulation and Modelling (BSc CSIT, CSC317) question paper 2081?
- The full BSc CSIT (TU) Simulation and Modelling (BSc CSIT, CSC317) 2081 (regular) question paper is available free on Kekkei. You can read every question online and attempt the paper under timed exam conditions.
- Does the Simulation and Modelling (BSc CSIT, CSC317) 2081 paper come with solutions?
- Yes. Every question on this Simulation and Modelling (BSc CSIT, CSC317) past paper includes a step-by-step solution, plus instant AI feedback when you attempt it on Kekkei.
- How many marks is the BSc CSIT (TU) Simulation and Modelling (BSc CSIT, CSC317) 2081 paper?
- The BSc CSIT (TU) Simulation and Modelling (BSc CSIT, CSC317) 2081 paper carries 60 full marks and is meant to be completed in 180 minutes, across 12 questions.
- Is practising this Simulation and Modelling (BSc CSIT, CSC317) past paper free?
- Yes — reading and attempting this Simulation and Modelling (BSc CSIT, CSC317) past paper on Kekkei is completely free.