Re: Big oh Notation
From: Moth (not_at_this.address)
Date: 02/23/04
- Next message: Silvio Bierman: "Re: Big oh Notation"
- Previous message: Alex M: "struts javascript validator message problem"
- In reply to: jova: "Big oh Notation"
- Next in thread: Silvio Bierman: "Re: Big oh Notation"
- Reply: Silvio Bierman: "Re: Big oh Notation"
- Reply: Yoyoma_2: "Re: Big oh Notation"
- Reply: Stewart Gordon: "[OT] Re: Big oh Notation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 23 Feb 2004 21:01:01 GMT
Big O is pretty simple. The O stands for "the Order of" and it shows the
general number of comparisons needed in a sort algorithm. For example, the
average number of comparisons for a selection sort is =N^2/2-N/2. In this
case the N^2 dominates and so the big O notation is O(N^2). For a quicksort
I believe it is =N(log2N) which defined as O(log2 N) because the log2N,
against a large number of items, will dictate the amount of time taken.
Hope this helps a bit.
"jova" <Email@nospam.net> wrote in message
news:fL9_b.43099$M8.3955@nwrdny02.gnilink.net...
> Does anyone know of a good site where I can learn of this?
>
>
- Next message: Silvio Bierman: "Re: Big oh Notation"
- Previous message: Alex M: "struts javascript validator message problem"
- In reply to: jova: "Big oh Notation"
- Next in thread: Silvio Bierman: "Re: Big oh Notation"
- Reply: Silvio Bierman: "Re: Big oh Notation"
- Reply: Yoyoma_2: "Re: Big oh Notation"
- Reply: Stewart Gordon: "[OT] Re: Big oh Notation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|