answersLogoWhite

0

Assume the first element is the largest and store its value. Then traverse the remainder of the list, one element at a time. If the current element's value is larger than the stored value, overwrite the stored value with the current element's value. Once you've traversed the list, the stored value will hold the largest value.

User Avatar

Wiki User

10y ago

What else can I help you with?

Related Questions

Design an algorithm to show the different operations on a stack?

Design an algorithm to show the different operations on a stack?


Design an algorithm to show the different operations on degree?

Design an algorithm to show the different operation on the degree.


Design an algorithm for finding integer solutions for equations of the form x2 y2 n where n is some given positive integer Determine the time complexity of your algorithm?

yea me too dude. Mahleko :(


What are the advantages of problem analysis and algorithm design?

Before execution a project should be planned. Problem analysis is a way of determining the foundation of a problem, so that the problem is better resolved. Algorithm design is very similar in that it uses mathematical process to determine and resolve computer Engineering issues.


Design step by steps algorithm on how to write the letter A and display the result?

Design step by steps algorithm on how to write the letter A and display the result


Design an algorithm for finding all the factors of positive integerfor example in the case of the integer 12your algorithm should report 12346 and 12?

design an algorithm for finding all the factors of a positive integer


What is the design technique that programer use to breakdown algorithm into modules?

top-down design


How does size determine structure in organizational design?

how does size determine structure in organizational design?


Divide and conquer what does it mean?

Divide and conquer is computer science. It is an important algorithm design.


Is algorithm design part of the description of a dsp engineering job?

It appears that algorithm design is a part of having a DSP engineering job. To find out what exactly a DSP engineer may have to do, visit http://www.careerbuilder.com/jobs/keyword/dsp+engineer


Design and analysis of algorithm question bank?

hai this web site very useful senthil


Design recursive algorithm for computing 2n for any non negative integer n which is based on the formula2n2n-1 2n-1?

The formula, as far as I can see, is not appropriate for the algorithm.