GIFT UNIVERSITY
G
U
J
R
A
N
W
A
L
A
EXA-115
(Chartered by the Govt. of the Punjab, Recognized by HEC)
14th December 2015
Department of Computer Science
BS Computer Science
BS Software Engineering
Discrete Mathematics (CS 107)
Discrete Structures (CS 116)
Quiz 1-a (Math 13): Negations and Quantifiers.
1. (2 pts.)
Compute the negation of: a Zn , p(a) (q1 (a) q2 (a).
2. (6 pts.) Let G = cfw_1, 9, 12, and H = cfw_0, 2, 4.
For each of the following statements, determine whether it is true (T) or false (F):
(a)
Assignment 3: Counting
Due: Tuesday, 12th January, Before 12:00 Noon
This assignment is to be done individually.
Usage of Calculators is not allowed
A closed form is a mathematical expression without summation notation, product notation, or the
symbol. F
GIFT UNIVERSITY
G
U
J
R
A
N
W
A
L
A
EXA-115
(Chartered by the Govt. of the Punjab, Recognized by HEC)
27th February 2016
Department of Computer Science
BS Computer Science
BS Software Engineering
Discrete Mathematics (CS 107)
Discrete Structures (CS 116)
Assignment 2: Sequences and Induction
Due: Tuesday, 15th December, Before 12:00 Noon
This assignment is to be done individually. For any help and clarification refer to the book DISCRETE
MATHEMATICS WITH APPLICATIONS by SUSANNA S. EPP. Seeking any other f
Assignment 1: Sets, Relations, Functions
Due: Tuesday, 10th November, Before 9:15 AM
This assignment is to be done individually. For any help and clarification refer to the book DISCRETE
MATHEMATICS WITH APPLICATIONS by SUSANNA S. EPP. Seeking any other f
/*
a. Complete the design and implementation of the class customerType defined in
the Program Video Store (attached zip folder).
b. Design and implement the class customerListType to create and maintain a list
of customers for the video store.
*/
/ includ
/
/
/
/
/
/
/
main.cpp
Q2
Created by Adnan Shafique on 18/01/2016.
Copyright 2016 Adnan Shafique. All rights reserved.
/ L4 Q5.cpp : Defines the entry point for the console application.
#include <iostream>
#include <iomanip>
#include <string>
using namesp
/*
Adnan Shafique
January 20 2011
Description: Write a program that allows the user to enter the last
names of five candidates in a local election and the number of votes
received by each candidate. The program should then output each
candidate's name, th
/*
Q12
(Circular Linked List)
a. Write the definitions of the class CircularLinkedList and its member
functions.
(You may assume that the elements of the circular linked list are in ascending
order.)
b. Write a program to test various operations of the cl
/*
Q 15
Write a recursive function to implement the recursive algorithm of Exercise 13
(see below). Also, write a program to test your function.
Exercise 13:
Write a recursive algorithm to multiply two positive integers m and n using
repeated addition. Sp
/*
Write a program that allows the user to enter the last names of five candidates
in a local election and the number of votes received by each candidate.
The program should then output each candidate's name, the number of votes
received, and the percenta
Circular Linked List
EENG212
Algorithms
and
Data Structures
Circular Linked Lists
In linear linked lists if a list is traversed (all
the elements visited) an external pointer to
the list must be preserved in order to be able
to reference the list again.
C