Re: "Sorting" assignment
- From: "Bartc" <bc@xxxxxxxxxx>
- Date: Mon, 04 Feb 2008 17:01:06 GMT
spinoza1111 wrote:
On Feb 4, 2:28 am, "Ivica" <prljavi_blu...@xxxxxxxxxxx> wrote:
<snip sort code>I am looking at switch case usage and bubblesort?
If you use the bubble sort, your application may be too slow to manage
realistic amounts of news, and it appears you ganged up on your
Yes that's pretty fast, although up to N=1000, I could not detect much
difference between this and bubble sort. At N=10K there was a clear
difference, although bubble sort still took only 0.75secs (at N=100K there's
no contest).
But bubble sort has the huge advantage of being extremely simple. For this
assignment, may be best to get /anything/ working first then worry about
improving the sort speed, although I doubt the test data will be big enough
to show a difference.
--
Bart
.
- Follow-Ups:
- Re: "Sorting" assignment
- From: spinoza1111
- Re: "Sorting" assignment
- From: spinoza1111
- Re: "Sorting" assignment
- References:
- "Sorting" assignment
- From: Ivica
- Re: "Sorting" assignment
- From: spinoza1111
- "Sorting" assignment
- Prev by Date: Re: Message from spinoza1111
- Next by Date: Re: "Sorting" assignment
- Previous by thread: Re: "Sorting" assignment
- Next by thread: Re: "Sorting" assignment
- Index(es):
Relevant Pages
|