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
Which is faster hashmap or treemap?
What is difference between data type and variable?
Why is arraylist used?
What are the pre-requisite for the collection to perform binary search?
What is Doubly link list?
Write a Program for Delete an element from a doubly linked list.
What is hashing technique?
Tell me about circular linked list?
Write the advantage of separate chaining?
What are stacks? Give some of its applications.
Can you dynamically allocate arrays in expanded memory?
Define a binary tree?
Can arraylist contain duplicates?
When would you use a tuple?
What is modcount in hashmap?