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 |
What is the difference between sorting and classifying?
What are the data structures used in RDBMS, Network data model & Hierarchical data model?
Does treemap sort on key or value?
Which is better hashmap or treemap?
Why do we use stacks?
What is the height of a binary tree?
Define structure property in a heap?
What is garbage collection in data structure?
What are binary search and fibonacci search?
Mention some drawbacks of the linked list.
Mention the data structures which are used in graph implementation.
Explain what are the major data structures used in the rdbms?