answersLogoWhite

0

Let p and q be the two polynomials represented by the linked list. 1. while p and q are not null, repeat step 2. 2. If powers of the two terms ate equal then if the terms do not cancel then insert the sum of the terms into the sum Polynomial Advance p Advance q Else if the power of the first polynomial> power of second Then insert the term from first polynomial into sum polynomial Advance p Else insert the term from second polynomial into sum polynomial Advance q 3. copy the remaining terms from the non empty polynomial into the sum polynomial.

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

How can we represent polynomials using linked lists?

30


Is there a c program to multiply two polynomials using linked lists?

yes


What has the author Brian Thomas Smith written?

Brian Thomas Smith has written: 'A zero finding algorithm using Laguerre's method' -- subject(s): Algorithms, Polynomials


How do you make working model of maths on polynomials?

Polynomials are the simplest class of mathematical expressions. The expression is constructed from variables and constants, using only the operations of addition, subtraction, multiplication and non-negative integer exponents.


How do you solve Euclidean algorithm?

GCF(437,1247) using Euclidean algorithm


Can you provide a solution to the diamond-square algorithm using Java and recursion?

Yes. It is possible to provide a solution to the diamond-square algorithm using Java and recursion.


An algorithm of deleting linked list?

To delete a linked list walk through the list and delete the memory allocated to each element, remembering the next element address, and then iterating or recursing the process using the next element address, until the next element address is null.


How do you write a Java program to implement weighted queue using circular doubly linked list?

Add weights to the elements of the queue and use an algorithm to sort the queue every time an element is added.


All even numbers from 2-100 using algorithm?

102


Using the Euclid's algorithm find the multiplicative inverse of 1234 mod4321?

Using the extended Euclidean algorithm, find the multiplicative inverse of a) 1234 mod 4321


What is a fast-transpose algorithm for sparse matrices?

A fast-transpose is a computer algorithm that quickly transposes a sparse matrix using a relatively small amount of memory. Using arrays normally to record a sparse matrix uses up a lot of memory since many of the matrix's values are zero. In addition, using the normal transpose algorithm to transpose this matrix will take O(cols*elements) amount of time. The fast-transpose algorithm only uses a little memory to record the matrix and takes only O(cols+elements) amount of time, which is efficient considering the number of elements equals cols*rows.


How do you find common dinomanater in fractions?

Using the Euclidean algorithm