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 a recursive c function to calculate the height of a binary tree.

0 Answers  


Can sets contain duplicates?

0 Answers  


In which matrix, we can use multilinked structures?

0 Answers  


What are binary search and fibonacci search?

0 Answers  


What are the 3 control structures in programming?

0 Answers  






Does list allow null values?

0 Answers  


What are the major data structures used in the rdbms?

0 Answers  


write a code for Implementation of stack and queues.

0 Answers   InterGraph,


What is meant by ordered and sorted in collections?

0 Answers  


What is a pseudocode example?

0 Answers  


Does treemap allow null keys?

0 Answers  


what is Linked lists?

0 Answers  


Categories