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 / 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 |
Define articulation point?
Explain the most efficient method to reverse a linked list?
What is hashing technique?
What are binary trees?
Why is data structure?
What is dangling pointer and how to avoid it?
What are different methods of collision resolution in hashing.
What is modcount in hashmap?
what is the different between B-tree and B+ tree.
What are the two types of data?
What is the minimum number of nodes that a binary tree can have?
How to sort an Array?