You are on page 1of 1

GALGOTIAS COLLEGE OF ENGINEERING AND TECHNOLOGY

1, Knowledge Park-II, Greater Noida, U.P.


Odd Semester 2022-23

Subject: Data Structure Subject Code: BCS-301

Branch: CSE Semester: III

Assignment-2-(CO2)
1. Convert infix to postfix and prefix.
a) ((A-(B+C))*D)^(E+F)
b) A*(B+C^D)-E^F*(G/H)
c) (A+B)*(C-D)
2. Write an algorithm to convert Infix to Postfix, and Infix to Prefix conversion.
3. Convert infix to postfix by using stack method.
a. A+B-C/D*E*F*G/H.
b. PQ+S*TU-^
4. Explain the difference between stack and queue. And also explain the advantage and
disadvantage stack and queue.
5. Write a C program to implement a stack using linked list.
6. Write a C Program to insertion and deletion in queue.
7. Write a program to insert and delete in double ended queue (DEQUE).
8. Write an algorithm for finding solution to the Tower’s of Hanoi problem. Explain the working
of your algorithm (with 4 disks) with diagrams.

You might also like