answersLogoWhite

0

Put the first item in the data set into an empty memory location called, say, 'biggest'.

Now compare the second and subsequent items in the data set with 'biggest'. If the item is larger than 'biggest' then put the value of the item in 'biggest', otherwise do nothing.

By the time you have finished looking through the data set you will find that 'biggest' contains the greatest value in the data set.

User Avatar

Wiki User

11y ago

Still curious? Ask our experts.

Chat with our AI personalities

JudyJudy
Simplicity is my specialty.
Chat with Judy
DevinDevin
I've poured enough drinks to know that people don't always want advice—they just want to talk.
Chat with Devin
RafaRafa
There's no fun in playing it safe. Why not try something a little unhinged?
Chat with Rafa

Add your answer:

Earn +20 pts
Q: How do you find the greatest value in a data set?
Write your answer...
Submit
Still have questions?
magnify glass
imp