From: NKSW39B@prodigy.com (Matthew Givens)
Subject: Re: Anyone help develop an algorythm?
Date: 1997/04/29
Date: 1997-04-29T00:00:00+00:00 [thread overview]
Message-ID: <5k3fqv$1o9e@newssvr01-int.news.prodigy.com> (raw)
In-Reply-To: dewar.862200384@merv
dewar@merv.cs.nyu.edu (Robert Dewar) wrote:
>
>Matthew said
>
><<>Your problem statement is unclear. Are you saying your linked list
has
>>N nodes, at each node is an array of some number of elements, each
>>element is a string of (equal) length L, and you want to treat is as a
>>great big array of strings of length L and you want to sort that big
>>array?P>>
>
>Yes exactly>>
>
>
>The question is what form do you want the output in? Do you want to
>construct an array of poiners? If so, then it is trivial to sort the
>array of pointers, using any standard sorting algorithm. Or do you want
>to sort in place keeping the linked list structure throughout -- in
>that case a modified mrge sort is the only feasible answer (modified
>to deal with the multi-element nodes).
The structure of the data can't change. The data must be sorted in place,
not merged into a single list. And the only merge sorts I know actually
merge the data into a single list. Just how do you modify a merge sort
to sort the data in place?
-
If at first you don't succeed, destroy all evidence that you ever tried.
<< Iceman >>
next prev parent reply other threads:[~1997-04-29 0:00 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-04-20 0:00 Anyone help develop an algorythm? Matthew Givens
1997-04-20 0:00 ` Tom Moran
1997-04-22 0:00 ` Michael F Brenner
1997-04-20 0:00 ` Tucker Taft
1997-04-20 0:00 ` Robert Dewar
1997-04-23 0:00 ` Matthew Givens
1997-04-23 0:00 ` Robert Dewar
1997-04-20 0:00 ` Joel VanLaven
1997-04-22 0:00 ` Robert Dewar
1997-04-20 0:00 ` Robert A Duff
1997-04-22 0:00 ` Steve Doiel
[not found] ` <e8yijs.fg1.0.-s@inmet.camb.inmet.com>
1997-04-23 0:00 ` Matthew Givens
1997-04-23 0:00 ` Robert Dewar
1997-04-28 0:00 ` Matthew Givens
1997-04-23 0:00 ` Tucker Taft
[not found] ` <335af137.54d7@bix.com>
1997-04-28 0:00 ` Matthew Givens
1997-04-28 0:00 ` Robert Dewar
1997-04-29 0:00 ` Matthew Givens [this message]
-- strict thread matches above, loose matches on Subject: below --
1997-04-24 0:00 Marin David Condic, 561.796.8997, M/S 731-93
1997-04-25 0:00 ` Michael F Brenner
1997-04-28 0:00 ` Matthew Givens
1997-04-28 0:00 ` Matthew Givens
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox