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

JordanJordan
Looking for a career mentor? I've seen my fair share of shake-ups.
Chat with Jordan
BeauBeau
You're doing better than you think!
Chat with Beau
CoachCoach
Success isn't just about winning—it's about vision, patience, and playing the long game.
Chat with Coach

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