(DMCS01) Assignment-1 M.Sc. Degree Examination, May - 2017 First Year Computer Science Data Structures Maximum Marks: 30 Answer ALL Questions
(DMCS01) Assignment-1 M.Sc. Degree Examination, May - 2017 First Year Computer Science Data Structures Maximum Marks: 30 Answer ALL Questions
Assignment-1
M.Sc. DEGREE EXAMINATION, MAY - 2017
First Year
COMPUTER SCIENCE
Data Structures
MAXIMUM MARKS: 30
Answer ALL Questions
Q1) What is a linked list? Explain its types and write a program to create and
display the contents of a SLL.
Q2) What is a stack? Write a simple program to implement stack using arrays.
Q3) Explain Kruskal’s and Prim’s algorithms with the help of an example.
Q4) What is DQUEUE? Write pseudocode for implementing all its operations.
Q5) Explain the properties of Binary Trees and illustrate the Tree Traversal
algorithms with a suitable example.
Q8) Construct a binary search tree using the following data: 10,7,14,6,8,12,
15,4,5,9,18,16,11.
Q3) Explain Quick sort with the help of the following data : 38,81,22,48,13,69,93,
14,45,58,79,72.
(DMCS02)
Assignment-1
M.Sc. DEGREE EXAMINATION, MAY - 2017
(First Year)
COMPUTER SCIENCE
Object Oriented Programming
MAXIMUM MARKS: 30
Answer ALL Questions
Q1) Explain decision control structures along with suitable programs for each.
Q2) Write a short note on : Reference operator and scope resolution operator.
Q2) Write a program to read and display the contents of an existing file.
Q6) Polymorphism.
Q8) Namespaces.
(DMCS03)
Assignment-1
M.SC. DEGREE EXAMINATION, MAY – 2017
First Years
COMPUTER SCIENCE
Computer organization
MAXIMUM MARKS: 30
Answer ALL Questions
Q5)What is decoder.
(DMCS04)
Assignment-1
M.SC. DEGREE EXAMINATION, MAY – 2017
First Year
COMPUTER SCIENCE
Discrete Mathematical Structures
MAXIMUM MARKS: 30
Answer ALL Questions
C ∨ D, (C ∨ D) → ¬ H, ¬ H → (A ∧ ¬ B), and (A ∧ ¬ B) → R ∨ S.
Q2) a) Define Primitive Recursive function and Show that the function f (x, y) = x +
y is a Primitive recursive function.
a * b b * c c * a a b * b c * c a for any a, b c ∈ L.
b) State and Prove, De Morgan Law’s in a Boolean Algebra.
Q4) a) State and Prove, Euler’s formula in Planar graphs.
Q5) a) Let g be a homomorphism from a group (G, *) to a group (H, ∆) and Let K be
the Kernel of g and H1 ⊆ H be the image set of g in H. Then the quotient
1
group G/K is Isomorphic to H .
Q7) Define POSET and Draw the Hasse Diagram of a poset (D100, ≤)
where a ≤ b iff a divides b and D100 is the collection of all divisors of 100.
Q8) Obtain the product of sums canonical forms of the Boolean expression F
(x, y, z) = x + y.
Q9) Prove that, in any non directed graph there is an even number of vertices of odd
degree.
(DMCS04)
Assignment-2
M.SC. DEGREE EXAMINATION, MAY – 2017
First Year
COMPUTER SCIENCE
Discrete Mathematical Structures
MAXIMUM MARKS: 30
Answer ALL Questions
Q1) Let R = { (1, 2), (3, 4), (4, 1)} and S = {(1, 5), (3, 3), (2, 1), (1, 3)}.
Q2) Define the terms, Group Homomorphism, Kernal of a function, Quotient Group.
Q3) Define the terms, Cyclic graph, Chromatic number and Cut set.
a * b a * c and a ⨁ b = a ⨁ c implies b = c.
(DMCS05)
Assignment-1
M.SC. DEGREE EXAMINATION, MAY – 2017
First Year
COMPUTER SCIENCE
Software Engineering
MAXIMUM MARKS: 30
Answer ALL Questions
Q2) What are requirements engineering tools? Explain the process of initiating the
requirements engineering.
Q3) Discuss about software reviews and formal technical reviews in connection with
SQA.
Q5) Describe the architectural design metrics and MOOD metrics suit for design model.
Q8) Develop different levels of DFD for safe home security function.
(DMCS06)
Assignment-1
M.SC. DEGREE EXAMINATION, MAY – 2017
First Years
COMPUTER SCIENCE
Distributed Operating Systems
MAXIMUM MARKS: 30
Answer ALL Questions
Q2) Define thread? Explain the types of threads with a neat diagram.
EEE
(DMCS08)
Assignment-1
M.SC. DEGREE EXAMINATION, MAY – 2017
First Year
COMPUTER SCIENCE
Theory of Automata And Formal Languages
MAXIMUM MARKS: 30
Answer ALL Questions
Q1) Prove that if L be a set accepted by NFA, then there exists a DFA that
accepts L?
Q3) Define PDA and prove that if L is a context free language, then there exists a PDA
M such that L=N(M).
Q4) Explain the term Chomsky Normal Form and convert the following grammar to
CNF?
Q5) Define Turing machine and discuss different types of Turing machines?
Q6) Differentiate between Mealy Machine and Moore Machine with suitable example?
Q9) Design NFA for the language having strings ending with 00 over input= {0, 1} and
convert into DFA?
(DMCS08)
Assignment-2
M.SC. DEGREE EXAMINATION, MAY – 2017
First Year
COMPUTER SCIENCE
Theory of Automata And Formal Languages
MAXIMUM MARKS: 30
Answer ALL Questions
Q4) Draw a transition diagram for a Turing machine accepting the following
language? {aibj |i<j}.
(DMCS 09)
Assignment-1
M.Sc. DEGREE EXAMINATION, MAY – 2017
First Year
COMPUTER SCIENCE
Paper – IX : Computer Networks
MAXIMUM MARKS: 30
Answer ALL Questions
Q1) Explain in detail the protocol layers and their service models.
Q5)What is internet?
(DMCS10)
Assignment-1
M.SC. DEGREE EXAMINATION, MAY – 2017
First Year
COMPUTER SCIENCE
Design & Analysis of Algorithms
MAXIMUM MARKS: 30
Answer ALL Questions
Q1) Read the sequence of integers as input, terminated by -1? Write an algorithm to
find the length of longest increasing consecutive subsequence? [NO use of
arrays]?
Q2) Explain the control abstraction of divide and conquer, dynamic programming
strategy?
Q4) Solve the 4 queen’s problems with an algorithm and calculate its complexity?
b) b) 6*2n+n2 = O(2n)
c) c) 10n2+4n+2 = Ώ(n2)
Q7) Explain the quick sort sorting procedure with an algorithm and calculate its best
and worst case time complexity?
Q8) Explain the merge sort sorting procedure with an algorithm and calculate its best
and worst case time complexity?
Q9) What is the solution generated by job sequencing with deadlines when n=7 and (p1,
p2, …..,p7) =(3, 5, 20, 18, 1, 6, 30) and (d1, d2,….., d7)= (1, 3, 4, 3, 2, 1, 2)?
(DMCS10)
Assignment-2
M.SC. DEGREE EXAMINATION, MAY – 2017
First Year
COMPUTER SCIENCE
Design & Analysis of Algorithms
MAXIMUM MARKS: 30
Answer ALL Questions
Q1) Use function OBST to compute w(i, j), r(i, j) and c(i, j), 0≤ i < j ≤ 4 for the
identifier set (a1, a2, a3, a4) =(cout, float, if while) with p(1) = 1/20, p(2)=1/5,
p(3)=1/10 and p(4)=1/20, q(0) 1/5, q(1) =1/10, q(2) = 1/5, q(3)=1/20 and
q(4)=1/20. Using the r(i, j)’s construct the optimal binary search tree?
Q2) Write the BFS and DFS algorithm? Solve the algorithm with an example graph?
Q3) Explain back tracking technique for solving Hamiltonian cycle problem on a
graph?
20 30 10 11
15 16 4 2
3 5 2 4
19 6 18 3
16 4 7 16