written 3.0 years ago by
modified 15 months ago
Computer Engineering (Semester 3)
TOTAL MARKS: 80
TOTAL TIME: 3 HOURS
(1) Question 1 is compulsory.
(2) Attempt any three from the remaining questions.
(3) Assume data if required.
(4) Figures to the right indicate full marks.
1(a) Define ADT with an example
1(b) What are the advantages of using linked lists over arrays?
1(c) Describe Expression Tree with an example.
1(d) Write a program in C to implement Insertion Sort
2(a) Discuss file I/O in C language with different library functions.
2(b) Explain recursion as an application of stack with examples.
3(a) Write a menu driven program in C to implement QU/EUE ADT. The program should perform the following operations:
(i) Inserting an Element in the Queue
(ii) Deleting Element from the Queue
(iii) Displaying the Queue
(iv) Exiting the program
3(b) Write a function to implement indexed Sequential Search, Explain with an Example
4(a) Write a C program to implement a Doubly Linked List which performs the following operations:
(i) Inserting element in the beginning
(ii) inserting element in the end
(iii) Inserting element after an element
(iv) Deleting a particular element
(v) Displaying the list
4(b) Apply Huffman Coding for the word 'MALAYALAM'. Give the Huffman code for each symbol.
5(a) Explain any one application of linked with an example.
5(b) Write a program in C to delete a node from a Binary Search Tree. The program should consider all the possible cases.
6(a) Write a program in C to implement the BFS traversal of a graph. Explain the code with an example.
6(b) Hash the following in a table of size 11. Use any two collision resolution techniques:
23, 55, 10, 71, 67, 32, 100, 18, 10, 90, 44.