answersLogoWhite

0


Best Answer

Take the first number in the set and compare it against the second.

If the second is higher, take that number otherwise keep the first

Repeat with all the numbers in the set, comparing the highest found so far with the next number in the set, taking the higher of the two until all the numbers in the set have been checked. The number with which you remain will be the highest.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you find the maximum in a set of numbers?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you find the maximum of a set of numbers?

The maximum of a set of numbers is the largest number in the set.


Find the range of the set of numbers?

Find the minimum and maximum values from the given data. Then range is the difference between maximum and minimum values.


What does maximum describe in mathematics?

The word maximum in mathematics describes the biggest number in a set of numbers or data. For example 10,8,5,2,60,9,3,1. The maximum set of numbers is 60.


What is the definition of maximum in regards to math?

The definition of maximum in regards of math is the biggest number in the set of numbers / data.Example:If you have the numbers 10,5,8,2,60,9,3,and 1 the maximum in this set of numbers/data is 60. How? It is 60 because in the set of numbers/data it is the highest number in the set.The word maximum in maths means the most or limit.


What is the largest whole number in the set of whole numbers?

It is the maximum of that set.


What are the places of all landmark?

the landmarks are mean, median, maximum, minimum and range. you could find any set of numbers and find these landmarks in them. answered by Lucy Cetifag Lousiana


What is the difference between minimum and maximum numbers?

the rang ( of the rang ) the difference between the maximum and minimum values in a data set.


How do you find a mean of a set of numbers?

to find the mean of a set of numbers you have to find the total sum of the data divided by the number of addends in the data.


What is a set of numbers to find the sum of the numbers and then divide by the number in the set?

It is the mean average


How do find the midrange of a set of numbers?

find the mean in a set of frequency distribution


How do i find mean of a set numbers?

Add up the numbers, and then divide by the number of numbers in the set. This will give you the mean.


Design an algorithm for finding the maximum in a set and position?

First, let's assume that this is a set of integers that you want to find the maximum of:Set setOfInts; // also assume that this set is full of some intsIterator it = setOfInts.iterator();int max;if(it.hasNext()) {max = it.next();while(it.hasNext()) {int current = it.next();if(current > max) {max = current;}}// max is now the largest number in the set}The problem comes when trying to find the position of the maximum number in the Set. By definition, a Set is an unordered group of numbers. So any order that the Set returns (say, by the Set's iterator) will be arbitrary.