Pages

Tuesday, July 7, 2015

Old Paper Virtual University CS-702 Advanced Algorithms Mid Term 2015



    Old Paper Virtual University CS-702 Advanced Algorithms Mid Term 2015

1.   Consider the problem of a chain < A1, A2, A3> of three matrices. Suppose the dimensions of the matrices are 10×100, 100×5 and 5×50. For the sequence of matrices, given above, compute the order of the product, A1.A2.A3, in such a way that minimizes the total number of scalar multiplications.

2.    Write the pseudo code of n-line assembly: dynamic programming algorithm for print stations.

3.    Show that the sum of cubes of any three consecutive positive integers is divisible by 9.
That is, for any integer n, n3 + (n + 1)3 + (n + 2)3 is divisible by 9.
The sum of the cubes of 1, 2, 3 is 1+8+27=36 which is divisible by 9.

Now suppose that for some k: C(k)=k^3+(k+1)^3+(k+2)^3 is divisible by 9.

Then:

C(k+1)=C(k) - k^3 + (k+3)^3 = C(k) + 3 (k^2*3) + 3 (k*3^2) + 3^3

..............=C(k) + 9 [k^2 + 3k + 3]

hence as by assumption C(k) is divisible by 9 so is C(k+1), and as we have
established that C(1) is divisible by 9, we have established by mathematical
induction that C(n) is divisible by 9 for all positive integers n.

This proves (as it is the same thing in different words) that the sum of the
cubes of three consecutive positive integers is divisible by 9.
Verify S(1): .1³ + 2³ + 3³ .= .36 . . . divisible by 9.


Assume S(k): .k³ + (k+1)³ + (k+2)³ .= .9a . for some integer a.


Add (k+3)³ - k³ to both sides:

. . k³ + (k+1)³ + (k+2)³ + (k+3)³ - k³ .= . 9a + (k+3)³ - k³

. . (k+1)³ + (k+2)³ + (k+3)³ .= .9a + k³ - 9k² + 27k - 27 - k³

. . (k+1)³ + (k+2)³ + (k+3)³ .= .9a - 9k² + 27k - 27

. . (k+1)³ + (k+2)³ + (k+3)³ .= .9(a - k² + 3k - 3)


The left side is the left side of S(k+1); the right side is a multiple of 9.
. . The inductive proof is complete.
4.   Solve the recurrence relation given below
 
5.    We have to compute the set of maximal points from following points, using Brute Force Approach,
(2, 8), (6, 16), (8, 8), (10, 20), (12, 6), (16, 14), (18, 18), (20, 2), (24, 8)




6.    Write the pseudo code of assembly line scheduling algorithm using dynamic programming.

7.    Write the pseudo code of complete knapsack dynamic programming algorithm for 0-1 knapsack problem.

Old Paper Virtual University CS-716 Advanced Computer Networks Mid Term 2015

OLD PAPER VIRTUAL UNIVERSITY CS-716 ADVANCED COMPUTER NETWORKS MID TERM 2015 
 
PAPER-I
 
Q1). Which assumptions are followed by sliding window protocol that makes sure in-order delivery of all frames? (5 Marks)

Q2). Differentiate between contention and congestion with help of diagram.(5 Marks)

Q3). Write a short note on physical layers of ATM. (5 Marks)

Q4). In Clock based framing, there is a problem of simultaneous synchronization of many distributed clocks. How this problem is solve.?. Explain with help of diagram.  (10 Marks)

Q5). Discuss Asynchronous Transfer Mode (ATM) Cell Format in details. (10 Marks)

Q6). How Bellman-Ford Algorithm works? Discuss it with example.?  (10 Marks)

Q7). Discuss the concept of Mobile IP . Design a Mobile IP diagram that shows all key elements . Discuss Mobile IP Challanges.(15 Marks)
 
PAPER-II
1.       
      Write a note on Analog Errors.
2.      Differentiate between contention and congestion with help of diagram.
3.      Discuss the virtual paths with ATM.
4.      Differentiate between immediate release and delayed release of Token in Token Ring with the help of diagram.
5.      Elaborate the Asynchronous Transfer Mode (ATM) Layers in details.
6.      Discuss the Address Resolution Protocol (ARP) Packet format with all its components.
7.      Discuss the Virtual Private Networks (VPNs) in details. How IP Tunnel works in VPNs? Explain it with the help of a diagram.

Sunday, December 7, 2014

Online Computer Training Courses

Computer Science is a vast field and it revolves around a variety of topics. In this age, when everything is going to be online and someone can access at home whatever he wants to, it is too possible to learn and acquire computer related knowledge through online computer courses. Although nothing is priceless in the world yet the gain and impart of knowledge is beyond such kind of values. So we have decided to serve with free online computer courses of some important topics at early stage of this idea. This is our first step towards free online computer training courses, in future we aim to expand the number of topics regarding online computer programming courses and computer training courses. Here are some significant links to online computer training courses as well as online computer programming courses. In addition to that, ICS(Intermediate with Computer Science) i.e. ics computer science is also part of this series of online computer courses.

C++ Part 10 type casting C+