how a polynomial such as 6x^6+4x^3-2x+10 can be represnted
by linked list?write an algorithm that reads such an polynomial

Answer Posted / poojithap2

the polynomial contained in the coefficiant&exponant of x
6.0 4.0 -2.0 10.0
....... .....
6 3 1 0
...... ..... ..... ......
---> ---> ------> --->
...... ..... ..... .......
alg:
if empty list
if polynomial=NULL
then
when('zero polynamial')
return
[traverse list]
reepeat while polynomial!=NULL
set result=derivative of polynomial
write result
set polynomial=next node of polynomial
end loop
return

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by linked list?

474


How to create your own data structure in java?

505


What is binary tree and its properties?

458


Explain Queue

642


Is treemap thread safe?

509






Explain what is a spanning tree?

568


How to traverse data in a linked list in forward and backward direction, write the algorithm?

528


Define forest?

548


What is binary search in data structure?

453


What is the difference between array sort () and array sort t >()?

454


Can we modify final arraylist?

518


Describe the complexity of Binary search

545


What are the complexity of binary search?

447


Can we add heterogeneous elements into treemap?

556


How do you define a set?

473