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


Please Help Members By Posting Answers For Below Questions

What is time complexity of quick sort?

469


Is data structures and algorithms important?

484


Define the tree data structure.

504


Does hashmap preserve insertion order?

471


Can arraylist contain duplicates?

484






What is ds tree?

509


write a program to accept name & sort them?

507


What is reduction to sorting method?

502


What are linear and non linear data structures?

472


What do you mean by secondary clustering?

519


Is quicksort greedy algorithm?

497


How many types of data structure are there?

446


Which data structure is used in arraylist?

467


What is integer max_value?

474


What are different types of sorting algorithms?

471