CS420.pdf
Verified academic study resource for CS420 (Game Design and Development) under the Computer Science at Virtual University of Pakistan. This PDF document (Verified Study Resource) covers Full Course Curriculum spanning approximately 280 pages across 8 curriculum modules, and is indexed for student examination review with instant in-browser preview and 100% free direct download.
- Course
- CS420 – Game Design and Development
- Faculty
- Computer Science
- Format
- Type
- Study Resource
- Coverage
- Full Course Curriculum
Review this document alongside the official handouts and test your retention in the Interactive MCQs Studio.
What this file covers — CS420 syllabus roadmap
- Core Architecture, Syntax & Primitive Data Structures — Lectures 1 to 6 (Pages 1 to 65). 15% Objective Marks (8–10 MCQs)
- Conditional Branching, Loops & Logical Control Flow — Lectures 7 to 12 (Pages 66 to 140). 18% Exam Marks (MCQs + 2-Mark Short Questions)
- Memory Management, Pointers, Arrays & Functions — Lectures 13 to 18 (Pages 141 to 215). 22% Exam Marks (High Yield for Midterms)
- Midterm Consolidation, Strings & Algorithm Synthesis — Lectures 19 to 22 (Pages 216 to 280). Midterm Exam Culmination (Lectures 1–22 Scope)
- Object-Oriented Paradigms: Classes & Data Abstraction — Lectures 23 to 29 (Pages 281 to 360). 16% Final-Term Marks (Core OO Concepts)
- Inheritance Hierarchies & Dynamic Polymorphism — Lectures 30 to 36 (Pages 361 to 435). 20% Final-Term Marks (Virtual Functions & V-Tables)
- Templates, Standard Library & Persistent File I/O — Lectures 37 to 41 (Pages 436 to 510). 14% Final-Term Marks (Generic Code & Streams)
- Final-Term Examination Dossier & Capstone Synthesis — Lectures 42 to 45 (Pages 511 to 585). Final-Term Exam Synthesis (Lectures 23–45 Scope)
Frequently asked questions
Where can I download CS420.pdf for free?
You can preview and download "CS420.pdf" (CS420 PDF, ~280 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs420-pdf) with 100% free high-speed downloads and zero registration requirements.
What syllabus chapters and lectures are covered in this CS420 file?
This document covers Full Course Curriculum across 8 distinct lecture units (Lectures 1 to 6, Lectures 7 to 12, Lectures 13 to 18, Lectures 19 to 22, Lectures 23 to 29, Lectures 30 to 36, Lectures 37 to 41, Lectures 42 to 45), featuring comprehensive definitions, solved objective questions, and examiner marking rubrics.
What is the passing criteria for CS420 under the VU 20% Two-Half Rule?
Under official Virtual University regulations, students must score at least 20% in the First Half (Quizzes, Assignments, GDBs, and Midterm combined) AND independently at least 20% in the Final-Term examination paper. Scoring under 20% in the final exam results in an automatic F grade regardless of earlier marks.
Are CS420 solved past papers and handouts verified for 2026 exams?
Yes. All CS420 materials on MIHORA VU—including Moaaz, Waqar Siddhu, and team archives—are reviewed against the current VU syllabus to help students prepare for 2026 Midterm, Final-Term, and online quiz examinations.
Inside this file
CS 420
Design of Algorithms
Analytical Models of Parallel
Algorithms
Analytical Models of Parallel
Algoritms
⚫ Remember: minimize parallel overhead
Sources of Overhead
⚫ Interprocess interactions
⚫ Almost any nontrivial (non-embarrassingly)
parallel algorithm will require interprocess
interaction.
⚫ This is overhead with respect to the serial
algorithm to achieve the same solution
⚫ Remember: decomposition and mapping
Sources of Overhead
⚫ Idling
⚫ Idling processes in an algorithm = net loss in
aggregate computational performance.
⚫ i.e. not squeezing as much performance out of
the paraallel algorithms as (maybe) possible
⚫ = overhead
Sources of Overhead
⚫ Excess Computation
⚫ The best existing serial algorithm may not be
readily or efficiently parallelizable
⚫ -perhaps, can’t just evenly divide serial algorithm
into p parallel pieces.
⚫ Each parallel task may require addition
computation (relative to the corresponding work in
the serial algorithm) – recall: redundant
computation
⚫ = Excess computation = overhead
Performance Metrics
⚫ Execution Time
⚫ Serial Runtime = total lapsed time (wall time) from
the beginning to the end of execution for the serial
program on a single PE.
⚫ Parallel Runtime = total lapsed time (wall time)
from the beginning of the parallel computation to
the end of the parallel computation.
⚫ Ts = Serial Runtime
⚫ Tp = Parallel Runtime
Performance Metrics
⚫ Execution time—
⚫ As a baseline….from a theoretical perspective
⚫ Ts is often based on the best available serial algorithm to
solution a given problem
⚫ … not necessarily based on the serial version of the
parallel algorithm.
⚫ From a practical perspective…
⚫ Sometimes the serial and parallel algorithms are based on
the same algorithm
⚫ Sometimes you want to know the parallel algorithm
compares to it serial couterpart.
Performance Metrics
⚫ Total Parallel Overhead
⚫ Need to represent the Total Parallel Overhead as
an overhead function
⚫ Will be a function of things like work size (w) and
number of PEs (p)
⚫ Total Parallel Overhead = total parallel runtime
(Tp) * the number of PEs (p) minus the serial
runtime (Ts) for the best available serial algorithm
for the same problem
⚫ To = pTp - Ts
Performance Metrics
⚫ Speedup
⚫ Usually we parallelize an algorithm to speed
things up..
⚫ … therefore, the obvious question is “how much
did it speed things up?”
⚫ Speed up = runtime of the serial algorithm (Ts) to
the runtime of the parallel algorithm (Tp), or…
⚫ S = Ts/Tp , or
⚫ S= (Ts/Tp)
⚫ For a given number of PEs (p) and given size
problem
Performance Metrics
⚫ Speedup – for example..
⚫ Adding up n numbers with n PEs
⚫ Serial algorithm requires n steps –
⚫ Communicate a number, add, communicate
summ, add,…
⚫ Parallel algorithm – even PE communicates
its number to lower even neighbor, neighbor
adds the numbers and passes sum …
⚫ … binary tree
Performance Metrics
⚫ Example adding n numbers with n PEs
⚫ Ts = n
⚫ Tp = log n
⚫ So..
⚫ S = n/log n, or
⚫ S = (n/log n)
⚫ If n = 16, then
⚫ Ts = 16, and Tp = log 16 = 4
⚫ S = 16/4 = 4
Performance Metrics
⚫ Speedup
⚫ In theory S can not be greater than the
number of PEs (p)
⚫ But this does occur…
⚫ When it does in is called Superlinear
speedup
Performance Metrics
⚫ Superlinear Speedup
⚫ Why does this happen?
⚫ Poor serial algorithm design
⚫ Maybe parallelization removed bottlenecks in the
serial program
⚫ IO contention, for example
Performance Metrics
⚫ Superlinear Speedup
⚫ Cache Effects
⚫ Distributing a problem in smaller pieces may
improve the cache hit rate and, therefore, improve
the overall performance of the algorithm, more so
than in proportion to the number PEs.
⚫ For example,….
Performance Metrics
⚫ Superlinear Speedup – Cache effects
⚫ From A. Grama, et.al 2003
⚫ Suppose your serial algorithm has a cache hit rate
of 80%, and you have
⚫ Cache latency of 2ns
⚫ Memory latency of 100ns
⚫ Then, effective memory access time is
⚫ 2 * 0.8 + 100 * 0.2 = 21.6ns
⚫ If algorithm is memory bound, one FLOP per memory
access then algorithm runs at 43.6 MFLOPS
Performance Metrics
⚫ Superlinear Speedup – Cache effects
⚫ Now suppose you parallelize this problem on
two PEs, so Wp = W/2
⚫ Now you have remote data access to deal
with, assume each remote memory access
requires 400ns (much slower than direct
memory and cache)
⚫ …continued…
Performance Metrics
⚫ Superlinear Speedup – Cache effects
⚫ This algorithm only requires remote memory access
20% of the time
⚫ Since Wp is smaller cache hit rate goes to 90%...
⚫ … and local memory access is 8%
⚫ Average memory access time =
⚫ 2 * 0.9 + 100 * 0.08 + 400 * 0.02 = 17.8ns
⚫ Each PE processing rate 56.18
⚫ Total execution rate (2 PEs) = 112.36 MFLOPS
⚫ So…
⚫ S = 112.36/46.3 = 2.43 (superlinear speedup)
Performance Metrics
⚫ Superlinear Speedup from Exploratory
Decomposition.
⚫ Recall that Exploratory decomposition is
useful for findings solutions where the
problem space is defined as a tree of
alternatives… and the solution is find the
correct node in the tree.
Performance Metrics
⚫ Superlinear Speedup from Exploratory
Decomposition
Blue node = solution
Use Depth-first search algorithm
Assume time to visit a node and
test for solutioin = x
Serial Algorithm Ts = 12x
Parallel Algorithm – p=2
Parallel Algorithm Tp = 3x
S = 12/3 = 4
If
More CS420 files
- Cs420 Week 1-6.pdf (PDF · Study Resource)
- Cs420 Week 1-6.pdf (PDF · Study Resource)
- Cs420 Week 7-14.pdf (PDF · Study Resource)
- Cs420 Week 7-14.pdf (PDF · Study Resource)
- Cs420 merge pdf.pdf (PDF · Study Resource)
- Cs420 week 1 to 14 By Pin✌️ pdf.pdf (PDF · Study Resource)
- All Subjects Mid & Final 25000 Pdf Files.pdf (PDF · Final-Term)
- CS420 Slides by MS S26.pdf (PDF · Handout)