Math Is Fun Forum

  Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

You are not logged in.

#1 2011-04-16 04:32:28

survival
Member
Registered: 2011-04-03
Posts: 655

Frequency and percentage-Number sorter from least to greatest

Hello, is there a method to least to greatest sorting of numbers when figuring out frequency and percentage? There has to be a faster way without picking from a big table of numbers.
Thank you.

Offline

#2 2011-04-16 05:23:15

Bob
Administrator
Registered: 2010-06-20
Posts: 10,164

Re: Frequency and percentage-Number sorter from least to greatest

hi survival,

How have you got the numbers?  If they are in a digital format then, yes, a spreadsheet will re-order them and most modern calculators will too.  There are also algorithms that can be used to sort them; the easiest to understand is called a bubble sort, which will probably to the job.

But if all you have is a paper list then  sad  no such method.  You would have to do it the long way I fear.

Bob


Children are not defined by school ...........The Fonz
You cannot teach a man anything;  you can only help him find it within himself..........Galileo Galilei
Sometimes I deliberately make mistakes, just to test you!  …………….Bob smile

Offline

#3 2011-04-16 07:57:38

John E. Franklin
Member
Registered: 2005-08-29
Posts: 3,588

Re: Frequency and percentage-Number sorter from least to greatest

The heapsort is logarithmic.   Bubblesort and Shellsort are Big-O squared.
The quicksort is logarthmic too I think.   The heapsort was fun to program once I did
it in VisualBasic because it was faster than the built-in method provided by the
software collection.


igloo myrtilles fourmis

Offline

#4 2011-04-16 09:29:16

survival
Member
Registered: 2011-04-03
Posts: 655

Re: Frequency and percentage-Number sorter from least to greatest

Thanks, I guess I will go with the method of picking them out. smile

Offline

#5 2011-04-16 09:39:34

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Frequency and percentage-Number sorter from least to greatest

Post them over here and I will sort them for you.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

Board footer

Powered by FluxBB