BSc CSIT (TU) Science Simulation and Modelling (BSc CSIT, CSC317) Question Paper 2075 Nepal
This is the official BSc CSIT (TU) (Science stream) Simulation and Modelling (BSc CSIT, CSC317) question paper for 2075, 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 2075 paper is a great way to practise under real exam conditions.
Section A: Long Answer Questions
Attempt any TWO questions.
Explain the characteristics and structure of a basic queuing system. Discuss the various performance measures of a single-server (M/M/1) queuing system.
Basic Queuing System
A queuing system describes the behaviour of customers (entities) arriving at a service facility, possibly waiting in a queue, receiving service, and then departing.
Characteristics / Structure
- Arrival (input) process — how customers arrive, described by the inter-arrival time distribution (e.g. Poisson arrivals with rate ).
- Queue (waiting line) — the buffer where customers wait. Characterised by capacity (finite/infinite) and population (finite/infinite).
- Queue discipline — order of service: FIFO, LIFO, SIRO, or priority.
- Service mechanism — number of servers and the service-time distribution (e.g. exponential with rate ).
- Departure — served customers leave the system.
Structure (in words): Arrivals → Queue → Server(s) → Departures.
Single-Server M/M/1 System
For M/M/1: Poisson arrivals (rate ), exponential service (rate ), one server, infinite queue, FIFO.
Let the traffic intensity (utilization) be:
Performance measures:
| Measure | Formula |
|---|---|
| Server utilization | |
| Probability system is empty | |
| Prob. of customers | |
| Avg. number in system | |
| Avg. number in queue | |
| Avg. time in system | |
| Avg. waiting time in queue |
These satisfy Little's law: and .
Example: If /hr and /hr, then , customers, , hr, hr.
Explain the Monte Carlo simulation method with a suitable example. Use Monte Carlo simulation to estimate the value of pi.
Monte Carlo Simulation
Monte Carlo simulation is a numerical technique that uses repeated random sampling to estimate the value of an unknown quantity (often an integral, probability, or expected value). It is especially useful for problems that are deterministic but hard to solve analytically.
General Steps
- Define a domain of possible inputs.
- Generate random inputs from a probability distribution over the domain.
- Perform a deterministic computation on the inputs.
- Aggregate the results (average / count successes).
- The estimate improves as the number of samples (error decreases as ).
Estimating
Consider a quarter circle of radius 1 inscribed in the unit square . The area of the quarter circle is and the area of the square is 1.
If we throw random points uniformly in the square and count points that fall inside the circle (i.e. ), then:
Algorithm:
import random
M = 0
N = 1000000
for _ in range(N):
x = random.random() # uniform in [0,1]
y = random.random()
if x*x + y*y <= 1.0:
M += 1
pi_estimate = 4.0 * M / N
print(pi_estimate) # ~3.1416 for large N
For example, if and , then . Larger gives a more accurate estimate.
Differentiate between true and pseudo-random numbers. Explain the linear congruential method of generating pseudo-random numbers with an example.
True vs Pseudo-Random Numbers
| Aspect | True random numbers | Pseudo-random numbers |
|---|---|---|
| Source | Physical phenomena (radioactive decay, thermal/atmospheric noise) | Deterministic mathematical algorithm |
| Reproducibility | Not reproducible | Reproducible (same seed → same sequence) |
| Periodicity | No period | Eventually repeats (finite period) |
| Speed/cost | Slow, needs hardware | Fast, software-only |
| Predictability | Unpredictable | Predictable if seed/algorithm known |
| Use | Cryptography, lotteries | Simulation, modelling, games |
Pseudo-random numbers are preferred in simulation because they are fast and reproducible (essential for debugging and comparing experiments), even though they are not truly random.
Linear Congruential Method (LCG)
The LCG generates a sequence using the recurrence:
where = seed, = multiplier, = increment, = modulus. Random numbers in are obtained as .
- If it is a multiplicative LCG; if , a mixed LCG.
- Good parameters give a full period of .
Example
Let , , , .
Sequence: ; normalized:
Section B: Short Answer Questions
Attempt any EIGHT questions.
Explain the basic properties of random numbers: uniformity and independence.
Random numbers used in simulation must satisfy two statistical properties:
1. Uniformity: The numbers should be uniformly distributed over the interval . If the interval is divided into equal sub-intervals, each sub-interval should contain (on average) the same fraction of the numbers. Formally, for the pdf is for , giving mean and variance . Uniformity is tested using the frequency (chi-square / Kolmogorov–Smirnov) test.
2. Independence: Each generated number must be statistically independent of the others — the value of one number should give no information about the next, and there should be no correlation or pattern in the sequence. Independence is checked using autocorrelation, runs, and gap tests.
Together, uniformity and independence ensure the numbers behave like a genuine i.i.d. sample, which is the foundation for generating other random variates in simulation.
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 with cdf from a uniform random number using .
Derivation for Exponential
The exponential distribution with rate (mean ) has:
Step 1 — Set :
Step 2 — Solve for :
Since is also , this is commonly simplified to:
Example
If and :
Repeating with different values yields exponential inter-arrival/service times for simulation.
Explain Kendall's notation for queuing systems with examples.
Kendall's Notation
Kendall's notation describes a queuing system in the compact form:
where:
- A — inter-arrival time distribution
- B — service time distribution
- c — number of parallel servers
- K — system capacity (max customers in system; default )
- N — calling population size (default )
- D — queue discipline (default FIFO)
The last three are often omitted, giving the short form .
Common symbols for A and B:
- M — Markovian / exponential (Poisson process)
- D — Deterministic (constant)
- G — General distribution
- E — Erlang-
Examples
- M/M/1 — Poisson arrivals, exponential service, single server, infinite capacity, FIFO.
- M/M/c — Poisson arrivals, exponential service, servers (e.g. a bank with tellers).
- M/D/1 — Poisson arrivals, constant (deterministic) service, single server (e.g. an automated car wash).
- M/M/1/K — single server with finite capacity .
- G/G/1 — general arrival and service distributions, one server.
What is a simulation clock? Differentiate between fixed-increment and next-event time-advance mechanisms.
Simulation Clock
A simulation clock is a variable that holds the current value of simulated (virtual) time in a discrete-event simulation. It does not correspond to real wall-clock time; it advances according to the events of the model and is used to schedule and order events.
Time-Advance Mechanisms
| Aspect | Fixed-increment time advance | Next-event time advance |
|---|---|---|
| How clock moves | Advances by a fixed step each cycle | Jumps directly to the time of the next event |
| Event handling | At each step, check which events occurred in | Process exactly one (next) imminent event |
| Idle periods | Wastes computation when no event occurs in a step | Skips over inactive periods, efficient |
| Accuracy | Events forced to boundaries → timing error | Events processed at exact times → accurate |
| Usage | Continuous / time-stepped models | Most discrete-event simulations |
Summary: In fixed-increment, the clock ticks by equal intervals regardless of events; in next-event, the clock advances to the timestamp of the most imminent scheduled event, making it more efficient and accurate for discrete-event simulation.
Explain Markov chains and their application in simulation with an example.
Markov Chains
A Markov chain is a stochastic process over a set of states that satisfies the Markov (memoryless) property: the probability of the next state depends only on the current state, not on the history of past states.
The form the transition probability matrix , where each row sums to 1. The state distribution evolves as , and a steady-state distribution satisfies .
Application in Simulation
Markov chains model systems whose future depends only on the present state — e.g. weather, machine up/down status, queue lengths, inventory levels, web-page navigation. In simulation, the next state is generated by sampling a uniform random number and selecting the state according to the cumulative transition probabilities of the current row.
Example (Weather)
States: Sunny (S), Rainy (R).
If today is Sunny, then , . Starting Sunny, after one step the distribution is ; iterating converges to the steady-state , i.e. in the long run about 2/3 of days are sunny.
Differentiate between physical models and mathematical models with examples.
Physical vs Mathematical Models
Physical model: A tangible, scaled-down (or scaled-up) physical representation of a system. It looks like the real system and its behaviour is studied directly by observation or experiment.
- Static physical model: scale model of a building, a globe, an architectural mock-up.
- Dynamic physical model: wind-tunnel model of an aircraft, a hydraulic analog of a water-distribution network.
Mathematical model: An abstract representation of the system using symbols, equations, and logical/quantitative relationships among variables. The system is studied by solving or simulating these equations rather than by physical observation.
- Static mathematical model: a regression equation, Monte Carlo estimate of an integral.
- Dynamic mathematical model: differential/difference equations describing population growth, M/M/1 queue formulas.
| Aspect | Physical model | Mathematical model |
|---|---|---|
| Form | Tangible/physical object | Symbols & equations |
| Study method | Direct observation/experiment | Analytical/numerical solution or simulation |
| Cost & flexibility | Expensive, hard to change | Cheap, easy to modify parameters |
| Example | Wind-tunnel aircraft model | for a queue |
Most computer simulations use mathematical models because they are flexible and inexpensive to experiment with.
Explain the mid-square method and the additive congruential method of generating random numbers.
Mid-Square Method
Proposed by von Neumann, this method generates pseudo-random numbers by repeatedly squaring a number and extracting the middle digits.
Steps:
- Choose an -digit seed .
- Square it: (pad with leading zeros to digits).
- Take the middle digits as the next number .
- Repeat. Normalize by dividing by to get in .
Example (4-digit seed ):
Drawbacks: short period; may degenerate to zero or get stuck in a cycle.
Additive Congruential Method
This generates the next number by adding previous terms modulo instead of multiplying. A general form uses the last values:
The simplest two-term (Fibonacci-type) version is:
Example: , seeds :
Normalized: It is fast and can achieve long periods but has weaker statistical independence.
Define entity, attribute, activity, event and state of a system in the context of simulation.
In simulation a system is described in terms of the following components:
-
Entity: An object of interest in the system whose behaviour is being studied. Example: a customer in a bank, a machine in a factory.
-
Attribute: A property or characteristic of an entity. Example: a customer's arrival time or priority; a machine's status (busy/idle).
-
Activity: A time-consuming process or operation that changes the state of the system over a period. Example: serving a customer, machining a part.
-
Event: An instantaneous occurrence that may change the state of the system. Example: arrival of a customer, completion of a service. (Events are classified as endogenous — internal — or exogenous — from the environment.)
-
State of the system: The collection of variables (state variables) needed to describe the system at any instant for the purpose of study. Example: the number of customers in the queue and whether the server is busy or idle.
Together these define the model: entities possessing attributes engage in activities, bounded by events, which together determine the system state over time.
Explain the importance of output analysis in simulation. Differentiate between terminating and steady-state simulation.
Importance of Output Analysis
Simulation output is random (it depends on the random numbers used), so a single run gives only one sample observation of system performance. Output analysis applies statistical methods to simulation results so that valid conclusions can be drawn. Its importance:
- Estimates performance measures (e.g. mean waiting time) with confidence intervals, not just point values.
- Quantifies the statistical error / variability of estimates.
- Determines the required number of runs / run length for desired precision.
- Enables fair comparison of alternative system designs.
- Avoids misleading conclusions from a single, noisy run.
Terminating vs Steady-State Simulation
| Aspect | Terminating simulation | Steady-state (non-terminating) simulation |
|---|---|---|
| End condition | Natural event/time ends the run (e.g. bank closes at 5 PM) | Runs indefinitely; interested in long-run behaviour |
| Goal | Performance over a specific finite period | Performance after transient effects die out |
| Initial conditions | Important and affect results | Must remove/ignore initial transient (warm-up) |
| Replications | Multiple independent short runs | One long run (batch means) or many long runs |
| Example | Daily operation of a shop | Long-run utilization of a 24×7 server/network |
Summary: A terminating simulation has a well-defined event that ends each run, and we analyze a fixed interval; a steady-state simulation studies the long-run equilibrium behaviour and requires handling the initial transient via a warm-up period.
Frequently asked questions
- Where can I find the BSc CSIT (TU) Simulation and Modelling (BSc CSIT, CSC317) question paper 2075?
- The full BSc CSIT (TU) Simulation and Modelling (BSc CSIT, CSC317) 2075 (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) 2075 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) 2075 paper?
- The BSc CSIT (TU) Simulation and Modelling (BSc CSIT, CSC317) 2075 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.