CS702 - Advanced Algorithms Analysis and Design: Instructions To Solve Assignments
CS702 - Advanced Algorithms Analysis and Design: Instructions To Solve Assignments
Spring 2018
Assignment 1
The purpose of the assignments is to give students hands on practice. It is expected that
students will solve assignments themselves.The Following rules that will apply during
the evaluation of the assignment.
Cheating from any source will result in zero marks in the assignment.
Any student found cheating in any two of the assignments submitted during the
course will be awarded "F" grade in the course.
No assignment after the due date will be accepted.
1
Virtual University of Pakistan
Spring 2018
Answer the following questions in your own words. Plagiarism will be checked for
each question. Marks will be awarded on the basis of the answer and plagiarism
report.
Question 1
(15 Marks)
Prove with the help of logical equivalence that the given proposition is a tautology.
r p (r q) r p q
Start with some special kind of pair of rabbits, one male and one female born on January
1. Assume all months are of equal length and that rabbits begin to produce after five
months of their own birth. After reaching age of five months, each pair produces 3 mixed
pairs- three males and three females, and then other three mixed pairs each month, and no
rabbit dies.
1. Develop a model using a tree diagram for 9 months of the given scenario
2. Describe a recursive mathematical model of the above scenario
3. Compute the number of rabbits in one year
Find the required recurrence sequence which satisfies the above condition.