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 |
Is arraylist faster than array?
What is the prerequisite for binary searching?
Is selection sort greedy?
What do you mean by disjoint set adt?
What do you mean by secondary clustering?
Write a program for Sorting an Array. Which sorting will you prefer?
Is a list an array?
What is the logic to reverse the array?
What is bubble sort and selection sort?
What is difference between concurrenthashmap and hashtable?
Explain in brief a linked list.
What is m way tree in data structure?