CS614 Handouts by MS S25.pdf

Verified academic study resource for CS614 (Data Warehousing) under the Computer Science at Virtual University of Pakistan. This PDF document (Official Lecture Handouts & Highlighted Notes) covers Complete Course Handouts (Lectures 1 to 45) spanning approximately 450 pages across 8 curriculum modules, and is indexed for student examination review with instant in-browser preview and 100% free direct download.

Course
CS614 – Data Warehousing
Faculty
Computer Science
Format
PDF
Type
Handout
Coverage
Complete Course Handouts (Lectures 1 to 45)
Tags
HANDOUT

Virtual University examiners construct 100% of objective MCQs and subjective marking schemes directly from the official CS614 handouts.

What this file covers — CS614 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 CS614 Handouts by MS S25.pdf for free?

You can preview and download "CS614 Handouts by MS S25.pdf" (CS614 PDF, ~450 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs614-handouts-by-ms-s25-pdf) with 100% free high-speed downloads and zero registration requirements.

What syllabus chapters and lectures are covered in this CS614 file?

This document covers Complete Course Handouts (Lectures 1 to 45) 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 CS614 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 CS614 solved past papers and handouts verified for 2026 exams?

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

Artificial Intelligence (CS607)

Lecture No. 11-13
3 Genetic Algorithms
3.1 Discussion on Problem Solving

In the previous chapter we studied problem solving in general and elaborated on
various search strategies that help us solve problems through searching in
problem trees. We kept the information about the tree traversal in memory (in the
queues), thus we know the links that have to be followed to reach the goal. At
times we don’t really need to remember the links that were followed. In many
problems where the size of search space grows extremely large we often use
techniques in which we don’t need to keep all the history in memory. Similarly, in
problems where requirements are not clearly defined and the problem is ill-
structured, that is, we don’t exactly know the initial state, goal state and operators
etc, we might employ such techniques where our objective is to find the solution
not how we got there.

Another thing we have noticed in the previous chapter is that we perform a
sequential search through the search space. In order to speed up the techniques
we can follow a parallel approach where we start from multiple locations (states)
in the solution space and try to search the space in parallel.

3.2 Hill Climbing in Parallel

Suppose we were to climb up a hill. Our goal is to reach the top irrespective of
how we get there. We apply different operators at a given position, and move in
the direction that gives us improvement (more height). What if instead of starting
from one position we start to climb the hill from different positions as indicated by
the diagram below.

In other words, we start with different independent search instances that start
from different locations to climb up the hill.

Further think that we can improve this using a collaborative approach where
these instances interact and evolve by sharing information in order to solve the
problem. You will soon find out that what we mean by interact and evolve.

However, it is possible to implement parallelism in the sense that the instances
can interact and evolve to solve the solution. Such implementations and

                                                                                   76
                              © Copyright Virtual University of Pakistan

Artificial Intelligence (CS607)

algorithms are motivated from the biological concept of evolution of our genes,
hence the name Genetic Algorithms, commonly terms as GA.

3.3 Comment on Evolution

Before we discuss Genetic Algorithms in detail with examples lets go though
some basic terminology that we will use to explain the technique. The genetic
algorithm technology comes from the concept of human evolution. The following
paragraph gives a brief overview of evolution and introduces some terminologies
to the extent that we will require for further discussion on GA. Individuals (animals
or plants) produce a number of offspring (children) which are almost, but not
entirely, like themselves. Variation may be due to mutation (random changes), or
due to inheritance (offspring/children inherit some characteristics from each
parent). Some of these offspring may survive to produce offspring of their own—
some will not. The “better adapted” individuals are more likely to survive. Over
time, generations become better and better adapted to survive.

3.4 Genetic Algorithm

Genetic Algorithms is a search method in which multiple search paths are
followed in parallel. At each step, current states of different pairs of these paths
are combined to form new paths. This way the search paths don't remain
independent, instead they share information with each other and thus try to
improve the overall performance of the complete search space.

3.5 Basic Genetic Algorithm

A very basic genetic algorithm can be stated as below.

    Start with a population of randomly generated, (attempted) solutions to a
    problem

    Repeatedly do the following:
         Evaluate each of the attempted solutions
         Keep the “best” solutions
         Produce next generation from these                                solutions   (using
         “inheritance” and “mutation”)

    Quit when you have a satisfactory solution (or you run out of time)

The two terms introduced here are inheritance and mutation. Inheritance has the
same notion of having something or some attribute from a parent while mutation
refers to a small random change. We will explain these two terms as we discuss
the solution to a few problems through GA.

3.6 Solution to a Few Problems using GA
3.6.1 Problem 1:

                                                                                          77
                              © Copyright Virtual University of Pakistan

Artificial Intelligence (CS607)

    •   Suppose your “individuals” are 32-bit computer words
    •   You want a string in which all the bits in these words are ones
    •   Here’s how you can do it:
           • Create 100 randomly generated computer words
           • Repeatedly do the following:
                 • Count the 1 bits in each word
                 • Exit if any of the words have all 32 bits set to 1
                 • Keep the ten words that have the most 1s (discard the
                    rest)
                 • From each word, generate 9 new words as follows:
                        • Pick a random bit in the word and toggle (change)
                           it
    •   Note that this procedure does not guarantee that the next
        “generation” will have more 1 bits, but it’s likely

As you can observe, the above solution is totally in accordance with the basic
algorithm you saw in the previous section. The table on the next page shows
which steps correspond to what.

Terms             Basic GA            Problem      1
                                      Solution
Initial           Start     with    a Create     100
Population        population       of randomly
                  randomly            generated
                  generated           computer words
                  attempted solutions

More CS614 files

All CS614 files · Midterm Prep 2026 · MCQs Bank