CS502 BY S KHAN ACADEMY.pdf

Verified academic study resource for CS502 (Fundamentals of Algorithms) 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
CS502 – Fundamentals of Algorithms
Faculty
Computer Science
Format
PDF
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 — CS502 syllabus roadmap

  1. Core Architecture, Syntax & Primitive Data Structures — Lectures 1 to 6 (Pages 1 to 65). 15% Objective Marks (8–10 MCQs)
  2. Conditional Branching, Loops & Logical Control Flow — Lectures 7 to 12 (Pages 66 to 140). 18% Exam Marks (MCQs + 2-Mark Short Questions)
  3. Memory Management, Pointers, Arrays & Functions — Lectures 13 to 18 (Pages 141 to 215). 22% Exam Marks (High Yield for Midterms)
  4. Midterm Consolidation, Strings & Algorithm Synthesis — Lectures 19 to 22 (Pages 216 to 280). Midterm Exam Culmination (Lectures 1–22 Scope)
  5. Object-Oriented Paradigms: Classes & Data Abstraction — Lectures 23 to 29 (Pages 281 to 360). 16% Final-Term Marks (Core OO Concepts)
  6. Inheritance Hierarchies & Dynamic Polymorphism — Lectures 30 to 36 (Pages 361 to 435). 20% Final-Term Marks (Virtual Functions & V-Tables)
  7. Templates, Standard Library & Persistent File I/O — Lectures 37 to 41 (Pages 436 to 510). 14% Final-Term Marks (Generic Code & Streams)
  8. 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 CS502 BY S KHAN ACADEMY.pdf for free?

You can preview and download "CS502 BY S KHAN ACADEMY.pdf" (CS502 PDF, ~280 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs502-by-s-khan-academy-pdf-2) with 100% free high-speed downloads and zero registration requirements.

What syllabus chapters and lectures are covered in this CS502 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 CS502 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 CS502 solved past papers and handouts verified for 2026 exams?

Yes. All CS502 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

 YOUTUBE CHANNEL: S KHAN ACADEMY

                              CS502 QUIZ FILE
             SOLVED BY SANAULLAH KHAN
                             CONTACT NO:03066793776

 Subject Enrolment                                               Email:
                                                                 Sanaullahkhan03066793@gmail.com
     1. Online classes are available (Mathematics)
     2. Solved graded activities                                 Facebook:
           • Assignment’s                                                     Sanaullah Khan
           • Quizzes
           • GDB’s                                               Instagram:
     3. Solved quiz files                                                      Mr.khan.1431
     4. Past papers
     5. Any info about virtual university of                     YouTube:
        Pakistan                                                          S KHAN ACADEMY

 Final project (MTH620)

  SUBSCRIBE MY CHANNEL
  CLICK HERE:
  https://youtube.com/channel/UCcicgZ0tjL8Nc_P_KB2YNVg

1) The sieve technique works where we have to find ---------- item(s) from a large input. Single page 34

                                                                                        SANAULLAH KHAN
                                                                                        MSc. MATHEMATICS
                                                                                        FOR QUIZ CONTECT
                                                                                               (03066793776)

  YOUTUBE CHANNEL: S KHAN ACADEMY
2) The only way to convert an empty string into a string of j characters is by doing j insertions, represented as
E(0 , j)=j page 78

3) In Selection problem, the Sieve technique works in ------------ Phases page 34

4) Algorithm is a sequence of computational steps that --------- the input into output. Transform page 7

5) In max heap (for Heap Sort algorithm), when every time maximum element is removed from top we replace
it with ---------- in the leaf tree. Last page 41

6) If pj dominates pi and pi dominates ph then pj also dominates ph. It means dominance relation is Transitive
page 18

7) To find maximal points in brute-force algorithm, each point of space is compared against --------- of the
space. All other points page 13

8) In the following code the statement “cout<<j;” executes ------------ times
For(j=1;j<=5;j=j+2)
Cout<<j; 3 times (conceptual)

9) For average-case time analysis of Quick sort algorithm, Pivot selection is on average basis from --------------.
All possible random values page 50

10) In the statement, “output P[i].x,P[i].y”, the number of times elements of P are accessed is -------------. 2
page 14

11) Identify the TRUE statement. The Knapsack problem belongs to the domain of optimization problems
Page 91

12) Matrix multiplication is a(n) ------------ operation. Associative page 85

13) ------------ provides us more accurate result when input values are not closer to each other. Median page
34(conceptual)

14) In merge sort algorithm, we split the array around the ------------ index q. Mid page 28

15) In the analysis of Selection algorithm, we get the convergent ------------ series. Geometric page 37

16) In Selection problem, the Sieve technique -----------. Eliminate undesired data items each time page 35

                                                                                            SANAULLAH KHAN
                                                                                             MSc. MATHEMATICS
                                                                                             FOR QUIZ CONTECT
                                                                                                    (03066793776)

  YOUTUBE CHANNEL: S KHAN ACADEMY
17) If matrix A of dimension p x q is multiplied with matrix B of dimension q x r, then each entry in resultant
matrix takes ---------- time. O(q) page 84

18) In Sorting the key value or attribute ---------- form an ordered domain. Not always page 39

19) In Heap Sort algorithm, the total running time for Heapify procedure is -------------. Theta (log n) page 43

20) Pseudo code of algorithm are to be read by --------------. People page 12

21) In Dynamic Programming based solution of Knapsack Problem, if we decide to take an object ‘i’, then we
gain -------------. Vi(value of object i)

22) The worst-case running time of Quick sort algorithm --------------. Is quadratic (google)

23) The only way to convert a string of i characters into the empty string is with i deletions, represented as
• E(i , 0)=i page 78

24) In Selection problem, the rank of an element will be its ------------ position if we sort the input data. Final
page 34

25) Which one is not passed as parameter in Quick sort algorithm? Array (containing input elements) (cs301)

26) While Sorting, the ordered domain means for any two input elements x and y --------- satisfies only. All of
the above page 39

27) Which of the following is calculated with Big O notation? Upper bounds page 25

28) For solving Selection problem, we introduced Sieve technique due to --------- Eliminating Rank of an
element page 35

29) The worst-case running time of merge sort is ----------- in order to sort an array of n elements. O(n log n)
page 30

30) Quick sort is a recursive algorithm. True page 49

31) While analyzing Selection algorithm, we make a number of passes, in fact it could be as many as -----------.
log(n) page 37

                                                                                            SANAULLAH KHAN
                                                                                             MSc. MATHEMATICS
                                                                                             FOR QUIZ CONTECT
                                                                                                    (03066793776)

 YOUTUBE CHANNEL: S KHAN ACADEMY

More CS502 files

All CS502 files · Midterm Prep 2026 · MCQs Bank