Professional Documents
Culture Documents
1. Explain how a linked list can be used to store and add two different polynomial expressions,
with diagram. Write the algorithm to add the following two polynomials:
1. A linked queue Q and an AVAIL list is maintained in form of a linked stack, as shown below.
Trace the contents of the memory after the execution of the operations given below and
show the updated table.
INFO LINK
23 56 NULL
24 8 29
25 12 34
26 5 NULL
27 76 30
28 123 31
29 9 33
30 45 23
23 26
31
56 25
32
78 28
33
123 24
34
i. Insert 546
ii. Delete
iii. Delete
iv. Insert 67