
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This is assignment for Data Structures course. It was assigned by Sukeshi Dwivedi at Bengal Engineering and Science University. It includes: Data, Structure, Operations, Algorithm, Worst, Cases, Analysis, Prefix, Memory, Storage, Order, Stack, Conversion
Typology: Exercises
1 / 1
This page cannot be seen from the preview
Don't miss anything!

(Units: 1–4)
Note: All questions are compulsory. All questions carry equal marks.
Q. 1 (a) Define data structure. Name and explain different types of data structure. Explain operations that can be performed on these data structures. (b) What is an algorithm? What is time and space analysis of an algorithm? Elaborate the concept of the best, average & worst cases analysis.
Q. 2 (a) What are the principle differences between arrays and structures? How address calculations are performed for the access of an item for each? (b) A dynamically declared array A is defined with row and column subscripts varying from 1 to
Q. 3 (a) Define and explain stack. Give representation of a stack in memory. (b) Write an algorithm and a program for the insertion (push) and deletion (pop) of an element from a stack.
Q. 4 (a) What are infix, postfix and prefix notations? Write an algorithm for the conversion of infix expression to polish or reverse polish expression. (b) Give a trace for the translation of given infix string to polish and reverse polish string. A / B – C * D + A
Q. 5 (a) Define and explain queue and de-queue. Give memory representation of each. (b) Formulate an algorithm and a program for the insertion and deletion of an element from a queue.