Docsity

Data structures Question paper, Exams of Data Structures and Algorithms

Partial preview of the text

Download Data structures Question paper and more Exams Data Structures and Algorithms in PDF only on Docsity!

6, Whatis advantage af an ADT? , ' 7, ‘Defina double ended queus., : - 8, > Liat the applications of a Quowe, 8, What is the time comploxity of binary aoareh? : / 1 10, List sortie algorithm which uses logarithamic time complexity, PART B _ " x 16'S 80 marks), 1. (@) @. Write a C program to find the Unique elements th anatray uaing 4. funetion ‘Unique’, ‘The function takea the array asa parameter and prints the unique slements, : Gi} Write aC program to print the-fibonacol numbers; OF » 4 ‘ . 4 (bh) “Weite-a © program to multiply two matrices that are reprosented, a6 ' ~ pointers. Use a function pointer to the function ‘Multiply’ which taken the, "| dwar matrices ad parameter and prints the reault of the multiplication, ‘ ot 12. (a) @) Write aC program to read the contante of a file “initxt” from last to i" first and write the contonta’te "out txt”. , a) | . : , (ii) Write the fliietioti protetypa and, explain bay. files\ara manipulated Le" , mos in, (8) \ . i ‘ . . Or i ‘ (b) 6) Create a atructure to store a complex number and write function a (for addition). that handle thie new etructura, (8) _ . Gi) Write a program to perform the following operations: for the i ‘customers of a bank woing the coneept oferruccuras: 6 8) (1) Input the customer detilils like name, apeount purer and balance ’ _ (2) When a ‘withdrawal transaction is made the halense must change to Yellect ite (3) Whe a deposit trananction ia mado the balance must change | i teoraflect it. , . t 2 "4 . > $7019 ‘www.studéntsfocus.com