CS702 Current Papersfrom 27 Feb 1 Marchupdated
CS702 Current Papersfrom 27 Feb 1 Marchupdated
Question 2: (Marks: 5)
Give a counterexample to the conjecture that if there is a path from u to v in a directed graph G, then any
depth-first search must result in d[v] f[u]?
Question 3: (Marks: 5)
Prove that if a|b, a|c then a | (b - c) a, b, c Z.
Question 4: (Marks: 5)
Write the pseudocode of Naive String Matching Algorithm.
i 1 2 3 4 5 6 7 8 9 10
si 2 4 1 6 4 6 7 9 9 3
fi 5 6 7 8 9 10 11 12 13 14
1.Use the Backtracking algorithm for the 0-1 Knapsack problem to maximize the profit for the following
problem instance. Show actions step by steps.
Maximum Capacity = 8
I =1,2,3,4
vi=3,5,6,10
wi=2,3,4,5
2.Prove that for all integers n, if n2 is even then n is also even.
3.Write down the pseudo code of Huffman algorithm.
4.Decrypt 0981 0461 if encrypted using RSA Public key = (e, n) = (13, 43.59 = 2537)
5.Algorithm for print screen BFS
6. Prove that if a|b, b|c then a|c, a, b, c Z
7.Huffman optimal coding given frequencies and we find the solution by drawing tree
From Email:
CS702 - Current Most Important Questions
1. How to print path in BFS algorithm
2. Write down pseudo code of longest common subsequence?
3. Write down pseudo code of Naive String Matching problem?
4. Write down pseudo code of optimal BST?
5. Write down pseudo code of transition function?
MY PAPER 702
CS-702 FINAL TERM (28-02-2016) Total Marks:60 Time : 2 hrs.
1. Prove that in a graph there are even number of vertices of odd degree.(5)
2. Prove that every connected graph has a spanning tree (5)
3. Write the pseudo code of DIJKSTRA’S algorithm. (5)
4. Write the pseudo code of Naïve String Matching Algorithm. (5)
5. Write the pseudo code of Optimal Binary Search Tree (10)
6. Write the Prim’s algorithm of minimum spanning tree.(10)
7. Prove that for all prime p and all integers a,b if p|ab then p|a or p|b (or provides both a and b).(10)
8. Write the pseudo code of Fast Fourier Transform (FFT) recursive algorithm.(10)
CS-702
Today Paper 1-03-2016 8am to 10am
AoA guyz..!!!!
today's cs702 final term paper
CS-702 FINAL TERM (03-03-2016) Total Marks:60 Time : 2 hrs.
Q1: Prove that if a|b and a|c then a|(b-c) for all integers . 5 marks
Q2: Prove that for all integers n, if n2 is divisible by 7 then n is divisible by 7. 10 marks
Q3: Write down pseudo code of longest common subsequence? 5 marks
Q4: Write down pseudo code of Naive String Matching problem? 5 marks
Q5: Use the Backtracking algorithm for the 0-1 Knapsack problem to maximize the profit for the
following problem instance. Show actions step by steps. 10 marks
Maximum Capacity = 8
i1234
vi 3 5 6 10
wi 2 3 4 5
Q6: Write down pseudo code of Rabin-Karp Algorithm? 10 marks
Q7: Show that If k is a positive integer and T is a full binary tree with k internal vertices, the T has a total
of 2k + 1 vertices and has k + 1 terminal vertices. 10 marks
Q8: What is running time of implementing BFS using adjacency matrix and the algorithm is adjusted for
that? 5 marks
QUESTION
(Final, 2015, Fall, Marks = 10, Lesson No. 41)
Prove that if p is prime, a is positive integer not divisible by p,
ap-1 = 1 mod p OR ap = a mod p
QUESTION
(Final, 2015, Fall, Marks = 5, Lesson No. 41)
Decrypt 0981 0461 if encrypted using RSA
public key = (e, n) = (13, 43.59 = 2537)
QUESTION
(Final, 2015, Fall, Marks = 5, Lesson No. 40)
Prove taht if gcd(a, m) = 1 and m > 1, then a has a unique inverse a' (modulo m).
QUESTION
(Final, 2015, Fall, Marks = 10, Lesson No. 39)
If a and b are integers, not both zero then gcd(a,b) is the smallest positive element of the set {ax + by : x,
y ε Z} of linear combination of a nad b.
QUESTION
(Final, 2015, Fall, Marks = 5, Lesson No. 38)
Prove that if a|b, a|c then a|(b + c) ∀ a, b, c ε Z