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

Program to remove duplicate elements in an array.

1034


Explain what are the major data structures used in the hierarchical data model?

1010


What is time complexity of bubble sort?

894


Define an algorithm. What are the properties of an algorithm? What are the types of algorithms?

926


Define a set?

954


How do you sort a map by key?

864


Is radix sort stable?

923


What is binary search in data structure?

911


How would you swap the Kth node from beginning with Kth node from end in a Linked List.

933


Can we insert null in hashset?

1080


State the merits of linear representation of binary trees?

1032


Differentiate between an array and an arraylist.

1078


If we add enum constants to a sorted collection ( treemap , treeset ), what will be the order in which they will be maintained?

965


What do you mean by double hashing?

1064


What is range search?

896