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 sequential search? What is the average number of comparisons in a sequential search?
What is the default capacity of hashmap?
An array having 100 elements have numbers from 1 to 99 randomly out of which any number is repeated. Find the repeated number in minimum time and space complexity.
List the types of rotations available in splay tree?
What is a pass in bubble sort?
Tell me real world example of polymorphism and encapsulation .
What are the disadvantages of linked list?
Discuss how to implement queue using stack.
What are the different data structures?
What is a tech stack?
What are the data structures used in RDBMS, Network data model & Hierarchical data model?
Write any two principles of gradation of structures.
0 Answers Mahatma Gandhi University,