Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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



how a polynomial such as 6x^6+4x^3-2x+10 can be represnted by linked list?write an algorithm that r..

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

Post New Answer

More Data Structures Interview Questions

Can we create a null as a key for a map collection?

0 Answers  


Which sorting technique is faster?

0 Answers  


Why do we use dynamic arrays?

0 Answers  


Differentiate between compilers and interpreters.

0 Answers   Tech Mahindra,


A list is ordered from smaller to largest when a sort is called. Which sort would take the longest time to execute?

12 Answers  


What will happen if an array goes out of bounds?

0 Answers   Amdocs, HAL,


How much time does it take to learn data structures?

0 Answers  


Why do we need to use computers to help us sort lists?

0 Answers  


Which sorting algorithm is the slowest?

0 Answers  


How will inorder, preorder and postorder traversals print the elements of a tree?

11 Answers  


What is the height of a binary tree?

0 Answers  


Can a tree be empty?

0 Answers  


Categories