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



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

Answer / 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

More Data Structures Interview Questions

Write the recursive c function to count the number of nodes present in a binary tree.

0 Answers  


What is a data structure?

12 Answers   Keane India Ltd,


Which is better hashmap or hashtable?

0 Answers  


What is a spanning tree?does the minimum spanning tree of a graph give the shortest distance between any 2 specified nodes?

0 Answers  


Why use a tuple instead of a list?

0 Answers  






What is stable sort example?

0 Answers  


What is mergesort and hashtable?

0 Answers  


What is map data structure?

0 Answers  


State the demerits of linked representation of binary trees?

0 Answers  


Define a full binary tree ?

0 Answers  


What is dynamic array with example?

0 Answers  


How many types of searching are there in data structure?

0 Answers  


Categories