Professional Documents
Culture Documents
3 Ia QP - 18CS652
3 Ia QP - 18CS652
3 Ia QP - 18CS652
5. Explain the working of Circular queue with the help of neat diagram. What is the objective of
implementing a queue in circular fashion?
OR
6. Write a C program to insert and delete an element in a circular queue.
7. What is a Priority queue? How it is different from an ordinary queue? Write a C function to insert an
element into a priority queue.
OR
8. What are double ended queues? Explain with C function how to insert and delete an element using front
end of double ended queue.
9. What is a graph? Explain the terms: i) Degree ii) Path iii) Cycle iv) Loop V) Complete graph
OR
10. Explain how a graph is implemented using adjacency matrix by taking any simple graph as example.