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 |
Give one example of right rotation.
What is difference between data type and data structure?
State the difference between stacks and linked lists?
What is the difference between dictionary and hashtable?
Explain merge sort algorithms.
What is linked hash set?
Mention the advantages of representing stacks using linked lists than arrays?
Evaluate the following prefix expression " ++ 26 + - 1324"
24 Answers College School Exams Tests, Patni,
What are the benefits of using arrays?
Write an algorithm to check if there is a loop in a doubly linked list.
What are trees in data structures?
How to get the index of an array element?