BCS 301 - Unit1 - 20questions
BCS 301 - Unit1 - 20questions
5. Linked Lists
14.What is a linked list? Explain the difference between array implementation
and pointer implementation of a singly linked list.
15.Write an algorithm to insert a node at the beginning, end, and middle of a
singly linked list.
16.How do you implement a doubly linked list in C? Describe the operations
for insertion and deletion in a doubly linked list.
17.Explain a circular linked list and its applications. Write an algorithm to
traverse a circular linked list.
6. Polynomial Representation
18.How can polynomials be represented using linked lists? Write a C program
for polynomial addition using singly linked lists.
19.Describe the representation of two-variable polynomials using linked lists.
Write an algorithm for the multiplication of two polynomials.
20.What are the benefits of using linked lists for polynomial operations
compared to using arrays?