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

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

How do you increase the capacity of an arraylist?

926


Suppose in an integer array, there is 1 to 100 number, out of one is duplicate, how to find?

948


Write a program for reversing the Single Linked List?

1085


What are the two traversal strategies used in traversing a graph?

945


where do you use double linked list?

1049


What is a queue in data structure?

986


What is an acyclic graph?

1014


What is bubble sort with example?

915


What is modcount in hashmap?

868


What are all the classes and interfaces that are available in the collections?

845


How does max heap work?

885


What is meant by binary tree?

851


What is the difference between hashset and hashtable?

913


What is Insertion sort, selection sort, bubble sort( basic differences among the functionality of the three sorts and not the exact algorithms)?

962


What is difference between list set and map?

884