BSc CSIT (TU) Science Simulation and Modelling (BSc CSIT, CSC317) Question Paper 2077 Nepal
This is the official BSc CSIT (TU) (Science stream) Simulation and Modelling (BSc CSIT, CSC317) question paper for 2077, 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 2077 paper is a great way to practise under real exam conditions.
Section A: Long Answer Questions
Attempt any TWO questions.
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 obtain approximate solutions to problems that may be deterministic in nature but are difficult or impossible to solve analytically. By generating large numbers of random samples and observing the fraction that satisfy some condition, we estimate quantities such as areas, integrals, or probabilities.
Key characteristics:
- Relies on random numbers drawn from a known distribution.
- Accuracy improves as the number of trials increases (error decreases roughly as ).
- Used for integration, risk analysis, queuing, and physical-system modelling.
Simple example: To estimate , sample uniformly in and average: .
Estimating using Monte Carlo
Consider a quarter circle of radius 1 inscribed in a unit square .
- Area of unit square .
- Area of quarter circle .
If we throw points uniformly at random into the square, the probability that a point falls inside the quarter circle equals the ratio of areas:
So if out of random points satisfy , then
Algorithm:
M = 0
for i = 1 to N:
x = random(0,1) // uniform
y = random(0,1)
if (x*x + y*y <= 1):
M = M + 1
pi_estimate = 4.0 * M / N
Illustrative result: with points, suppose fall inside the circle. Then . As , the estimate converges to
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/natural phenomena (thermal noise, radioactive decay, atmospheric noise) | Deterministic mathematical algorithm |
| Reproducibility | Not reproducible | Reproducible (same seed → same sequence) |
| Periodicity | No period | Eventually repeats (finite period) |
| Speed | Slow (needs hardware) | Very fast |
| Use in simulation | Rarely practical | Standard, because reproducibility aids debugging |
Pseudo-random numbers only appear random; they pass statistical tests of randomness (uniformity and independence) but are fully determined by the initial seed.
Linear Congruential Method (LCG)
The LCG generates a sequence using the recurrence:
where:
- = seed (initial value),
- = multiplier, = increment, = modulus
Normalized random numbers in are obtained as .
- If it is a multiplicative congruential generator.
- If it is a mixed congruential generator.
The maximum possible period is ; achieving full period requires conditions (Hull–Dobell theorem) such as .
Example: Let , , , .
Sequence: ; normalized:
Explain discrete-event simulation. Describe the event-scheduling/time-advance algorithm used in simulation with a flowchart.
Discrete-Event Simulation (DES)
Discrete-event simulation models a system as a sequence of events occurring at discrete points in time, where the system state changes only at event instants (e.g., a customer arrival, a service completion). Between consecutive events the state remains unchanged, so the simulation clock can jump from one event time to the next rather than advancing continuously.
Key components:
- System state — variables describing the system (e.g., number in queue, server busy/idle).
- Simulation clock — current value of simulated time.
- Event list (FEL) — a list of future events ordered by their scheduled time.
- Statistical counters — accumulate output data (waiting time, utilization).
- Random number generators — produce inter-arrival and service times.
Event-Scheduling / Time-Advance Algorithm
The next-event time-advance mechanism repeatedly:
- Finds the imminent event (the one with the smallest scheduled time) in the Future Event List.
- Advances the clock to that event's time.
- Executes the event routine, updating state, counters, and scheduling new future events.
- Repeats until a stopping condition is met.
Flowchart (described in steps):
+------------------------------+
| Initialize: clock=0, state, |
| schedule first arrival |
+---------------+--------------+
v
+------------------------------+
| Is event list empty / stop |---- yes --> [ Generate report / End ]
| condition reached? |
+---------------+--------------+
| no
v
+------------------------------+
| Remove imminent event; |
| advance clock to its time |
+---------------+--------------+
v
+------------------------------+
| Execute event routine: |
| - update system state |
| - update statistics |
| - schedule future events |
+---------------+--------------+
|
+----> (loop back to stop check)
This cycle of find imminent event → advance clock → process event → schedule new events drives the entire discrete-event simulation.
Section B: Short Answer Questions
Attempt any EIGHT questions.
Explain Kendall's notation for queuing systems with examples.
Kendall's Notation
Kendall's notation is a standard shorthand for describing and classifying a queuing system, written as:
| Symbol | Meaning |
|---|---|
| A | Arrival process / inter-arrival time distribution |
| B | Service time distribution |
| c | Number of parallel servers |
| K | System capacity (max customers in system; default ) |
| N | Population size (default ) |
| D | Queue/service discipline (default FCFS) |
Common distribution codes for and : M = Markovian/exponential (Poisson arrivals), D = Deterministic, G = General, = Erlang.
Examples:
- M/M/1 — Poisson arrivals, exponential service, single server, infinite capacity, FCFS. The classic single-server queue.
- M/M/c — Poisson arrivals, exponential service, servers (e.g., a bank with tellers).
- M/D/1 — Poisson arrivals, constant (deterministic) service time, one server (e.g., automated car wash).
- M/M/1/K — same as M/M/1 but limited capacity (finite waiting room).
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 time during a simulation run. It does not correspond to real (wall-clock) time; it advances according to the events being modelled and provides the time reference against which events are scheduled and statistics collected.
Fixed-Increment vs Next-Event Time Advance
| Aspect | Fixed-Increment Time Advance | Next-Event Time Advance |
|---|---|---|
| Clock advance | By a fixed step each time | Jumps directly to time of next event |
| Processing | At each tick, check whether any events occurred in | Always processes the imminent (earliest) event |
| Idle periods | Wastes computation stepping through periods with no events | Skips inactive periods efficiently |
| Accuracy | Events approximated to end of interval → timing error | Exact event times preserved |
| Suitability | Continuous systems, time-stepped models | Discrete-event systems (queues, networks) |
Summary: Fixed-increment advances in uniform steps and is simple but can be inaccurate and inefficient; next-event advance moves the clock to each successive event time, giving exact timing and better efficiency, and is the standard mechanism for discrete-event simulation.
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 history of how it was reached. This is the memoryless (Markov) property:
The form a transition probability matrix , where each row sums to 1. The state distribution after steps is , and a steady-state distribution satisfies .
Application in simulation: Markov chains model systems whose future behaviour depends only on present state — weather, machine up/down status, inventory levels, queue lengths, web-page navigation. In simulation we generate the next state by sampling a random number and selecting the destination state according to the current row of .
Example (weather model): States = {Sunny (S), Rainy (R)}.
If today is Sunny, then , . Solving gives the long-run distribution , , i.e., about 67% sunny days in the long run.
Differentiate between physical models and mathematical models with examples.
Physical Models vs Mathematical Models
| Aspect | Physical Model | Mathematical Model |
|---|---|---|
| Form | A tangible, scaled-down (or scaled-up) physical replica of the system | A set of equations, relationships, and logic representing the system |
| Representation | Concrete / material | Abstract / symbolic |
| Manipulation | Changed by physically altering the model | Changed by varying variables/parameters in equations |
| Cost & flexibility | Often expensive, hard to modify | Cheaper, easily modified, suited to computer simulation |
| Types | Static (e.g., a scale model) or dynamic (e.g., wind tunnel) | Static or dynamic; analytical or simulation-based |
Physical model examples: a scaled aircraft tested in a wind tunnel, a globe representing the Earth, a hydraulic model of a river/dam, an architectural building model.
Mathematical model examples: Newton's law , the queuing relation (Little's Law), a system of differential equations describing population growth, or a probability model of customer arrivals. Mathematical models are the basis of computer simulation because they can be programmed and analysed numerically.
Explain the mid-square method and the additive congruential method of generating random numbers.
Mid-Square Method
Proposed by von Neumann, the mid-square method generates pseudo-random numbers as follows:
- Start with an -digit seed .
- Square it to get a -digit number (pad with leading zeros if needed).
- Extract the middle digits — this is the next number .
- Repeat using as the new seed; normalize by dividing by for a value in .
Example (4-digit seed ):
Drawback: can degenerate quickly (numbers may collapse to zero or fall into short cycles), so it is rarely used in practice.
Additive Congruential Method
The additive congruential method generates the next number by adding previous terms in the sequence rather than multiplying. A general form uses the recurrence:
It requires initial seed values . A common (lagged-Fibonacci) special case is:
Example: with and seeds , :
It is fast and can produce very long periods, but the choice of lags and modulus must be made carefully for good statistical quality.
Define entity, attribute, activity, event and state of a system in the context of simulation.
Basic Simulation Terminology
-
Entity — An object of interest in the system whose behaviour we model. Entities may be dynamic (move through the system, e.g., a customer, a part on a conveyor) or permanent (resources, e.g., a server, a machine).
-
Attribute — A property or characteristic of an entity. It distinguishes one entity from another and may hold a value. Example: a customer's arrival time, priority level, or account balance; a machine's speed.
-
Activity — A duration of time of specified length during which something happens, representing a time-consuming process between two events. Example: the service of a customer (lasts a service time), or machining a part.
-
Event — An instantaneous occurrence that may change the state of the system. It marks the start or end of an activity. Example: a customer arrival, a service completion, a machine breakdown.
-
State of the system — The collection of state variables needed to describe the system at any instant relative to the objectives of the study. Example: the number of customers in the queue, whether the server is busy or idle, and the number waiting.
Relationship: Entities (with their attributes) engage in activities; activities are bounded by events; and the values of state variables together define the system state at any point in simulated time.
Explain the importance of output analysis in simulation. Differentiate between terminating and steady-state simulation.
Importance of Output Analysis
Simulation outputs are random because they are driven by random number inputs; a single run gives only one sample observation. Output analysis is the statistical treatment of simulation results to draw valid, reliable conclusions. Its importance:
- Estimates performance measures (mean waiting time, utilization, throughput) with confidence intervals rather than single point values.
- Quantifies the variability/precision of estimates and determines the number of replications/run length needed.
- Avoids misleading conclusions from a single, possibly atypical, run.
- Enables valid comparison of alternative system designs.
Terminating vs Steady-State Simulation
| Aspect | Terminating Simulation | Steady-State Simulation |
|---|---|---|
| Run length | Determined by a natural terminating event (e.g., bank closes at 5 pm) | Runs (theoretically) indefinitely / very long |
| Interest | Behaviour over a finite, specific period | Long-run steady-state behaviour, independent of initial conditions |
| Initial conditions | Important and part of the model | Cause initial transient (warm-up) bias that must be removed |
| Analysis method | Replicate the run multiple times; average across replications | Deletion of warm-up data, batch means, or long single run |
| Example | One day of a shop, a single mission | Continuously running production line, telephone exchange |
Summary: A terminating simulation studies a system over a bounded interval ending in a defined event and is analysed by independent replications; a steady-state simulation studies long-run behaviour and must handle warm-up bias using methods such as batch means.
Explain the Poisson and exponential distributions and their role in queuing simulation.
Poisson Distribution
The Poisson distribution is a discrete distribution that models the number of events occurring in a fixed interval of time when events happen independently at a constant average rate :
Its mean and variance both equal . In queuing it models the number of arrivals per unit time.
Exponential Distribution
The exponential distribution is a continuous distribution modelling the time between successive events (inter-arrival or service time) for a process with rate :
Its mean is . It is memoryless: .
Role in Queuing Simulation
These two distributions are intimately linked: if arrivals occur as a Poisson process with rate (number of arrivals in any interval is Poisson), then the inter-arrival times are exponentially distributed with mean . This pairing underlies the M/M/1 and M/M/c queuing models, where:
- Arrivals follow a Poisson process (the first M),
- Service times are exponential (the second M).
The memoryless property makes such systems analytically tractable (Markovian). In simulation, exponential inter-arrival and service times are generated by inverse transform: where is a uniform random number in .
Explain the features of a general-purpose simulation language (e.g., GPSS).
General-Purpose Simulation Language (GPSS)
A general-purpose simulation language (GPSL) such as GPSS (General Purpose Simulation System) is a special-purpose programming language designed specifically for building discrete-event simulation models, especially queuing systems. Rather than coding clock management and event lists by hand, the modeller describes the system using high-level blocks.
Key features:
- Transaction-flow (process) orientation — Dynamic entities called transactions (e.g., customers, jobs) flow through a sequence of blocks that represent operations on them.
- Built-in block statements — Ready-made blocks such as
GENERATE(create transactions),QUEUE/DEPART(collect queue statistics),SEIZE/RELEASE(capture/free a facility),ADVANCE(consume service time), andTERMINATE(remove transactions). - Automatic simulation control — The language automatically maintains the simulation clock, the future event list, and time advance; the user need not program these.
- Built-in random number and distribution generators — Functions for uniform, exponential, and other distributions for arrivals and service.
- Automatic statistics collection — Queue lengths, waiting times, facility utilization, and throughput are gathered and reported automatically.
- Facilities, storages and queues — Predefined entities to model single-capacity servers (facilities), multi-capacity resources (storages), and waiting lines (queues).
- Standard output reports — Produces summary reports of performance measures at the end of a run.
Advantages: rapid model development, less coding effort, fewer programming errors, and reusable, readable models — at some cost in flexibility compared with a general-purpose language like C.
Frequently asked questions
- Where can I find the BSc CSIT (TU) Simulation and Modelling (BSc CSIT, CSC317) question paper 2077?
- The full BSc CSIT (TU) Simulation and Modelling (BSc CSIT, CSC317) 2077 (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) 2077 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) 2077 paper?
- The BSc CSIT (TU) Simulation and Modelling (BSc CSIT, CSC317) 2077 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.