EC243 Programming and Data Structures Nov Dec 2006
EC243 Programming and Data Structures Nov Dec 2006
Distinguish between function and procedure. List out the various algorithmic techniques. What is knapsack problem?
List any four escapesequences with their uses. What is recursion? Give an example.
11.
(a)
ww
(i) (ii)
w.
What is deque?
aa na
va
N.
co m
(8) (8)
Explain about top down design approachin programming. Give the need of modularity and explain it. Or
(b)
(i) (ii)
What is structured programming and give its structure explain it.(8) What is a function and explain how the function calling is done in a (8) program with example.
L2. (a)
(i) (ii)
Explain about Big Oh and Theta notations. Explain about greedy algorithm with example. Or
(6) (10)
(b)
(i)
Write a merge sort algorithm. And trace the algorithm and conclude (10) how the divide and conquer is used? Explain about the 8-queens problem. Explain about various control statements with example'
(6) (8)
What is function? Explain about the categories of function and (8) write a C program to merging of two arrays using functions. Or
(b)
(i) (ii)
What is FSEEK? and write a C program to copy a file. How the Tower of Hanoi problem is solved?Explain.
14.
(a)
(i) (ii)
(b)
(i)
What is list? Give its types and explain doubly linked list deletion (8) with example.
aa na
va
Or
Write algorithm for circular queue insertion and deletion and (10) explain.
N.
co m
ww
w.
(b)
(i) (ii)
Write a algorithm to binary search and explain it. Discuss in detail about storagemanagement.
(6) (10)
s 9119