Sort Array Question...

Posted: 07-16-2003, 06:50 PM
Which would be faster?

1) Bubble sort
2) Join Array remove empty delimaters and then Split.

I am thinking the second would be a faster routine wouldn't it?

-Andrew

* * * Sent via DevBuilder http://www.devbuilder.org * * *
Developer Resources for High End Developers.
Reply With Quote

Responses to "Sort Array Question..."

Andrew Durstewitz
Guest
Posts: n/a
 
Re: Sort Array Question...
Posted: 07-16-2003, 07:10 PM
To return with an array that doesn't have empty items in it. After the
array is populated I reference 2 previously created arrays to insure
proper information. If items aren't needed they are removed (arrItem =
"") from the array.

However, I think this is causing some system degridation when still
having to loop through the empty items later...

-Andrew

* * * Sent via DevBuilder http://www.devbuilder.org * * *
Developer Resources for High End Developers.
Reply With Quote
Aaron Bertrand - MVP
Guest
Posts: n/a
 
Re: Sort Array Question...
Posted: 07-16-2003, 07:31 PM
Maybe you could have a second array, initially unpopulated, whose upper
bound increments as you add elements to it. Then you don't have an array
peppered with meaningless elements consisting of empty strings.

And please learn how to reply to the correct post using devbuilder, or use a
real newsreader that knows how to thread a conversation correctly.




"Andrew Durstewitz" <adurstew@devbuilder.org> wrote in message
news:3f15a308$0$205$75868355@news.frii.net...
> To return with an array that doesn't have empty items in it. After the
> array is populated I reference 2 previously created arrays to insure
> proper information. If items aren't needed they are removed (arrItem =
> "") from the array.
>
> However, I think this is causing some system degridation when still
> having to loop through the empty items later...
>
> -Andrew
>
> * * * Sent via DevBuilder http://www.devbuilder.org * * *
> Developer Resources for High End Developers.

Reply With Quote
Andrew Durstewitz
Guest
Posts: n/a
 
Re: Sort Array Question...
Posted: 07-16-2003, 07:49 PM
>Maybe you could have a second array, initially >unpopulated, whose
upper
>bound increments as you add elements to it. Then >you don't have an
array
>peppered with meaningless elements consisting of >empty strings.
>And please learn how to reply to the correct post >using devbuilder, or
use a
>real newsreader that knows how to thread a >conversation correctly.
I have sent a message to the people who provide my connection to USENET
(I own DevBuilder.org) to add this feature. Sorry for the confusion on
posts.

-Andrew

* * * Sent via DevBuilder http://www.devbuilder.org * * *
Developer Resources for High End Developers.
Reply With Quote
 
LinkBack Thread Tools Search this Thread Display Modes
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Array output question Hydrowizard Coldfusion - Getting Started 3 03-07-2005 12:35 PM
Array question for input fields want-a-be Macromedia ColdFusion 2 02-23-2005 02:00 PM
Array question webhead_1 Coldfusion - Getting Started 31 11-23-2003 03:26 PM
newbie array question Harry Wiens PHP Development 11 11-11-2003 11:08 PM
[ruby-talk] newbie locale/ascii sort question Yukihiro Matsumoto Ruby 0 07-01-2003 04:44 PM