--- Sitha Nhok <[EMAIL PROTECTED]> wrote:
[snip]
> stored into a 2-D array.  Then I want to eliminate duplicates in a
> column or multiple columns.  I came from a C/C++ background, so the only
> method I am really familiar with is traversing thru the column comparing
> one element to the next element.  So, it is not very efficient.
[snip]

Hi Sitha,

To answer this properly, we require an understanding of a couple of things.  

1.  How do you define "duplicates"?  I assume that you mean, for a given column, 
duplicates are a
data item that is repeated more than once.  For example:

 2 3 r s 8 1 a
 2 d u 8 4 1 h
 w w u a 4 1 9

In the first, third, and sixth columns, respectively, '2', 'u', and '1' are 
duplicates.  Or do
you, perhaps, mean something else entirely?

2.  What is done when the data is eliminated?  Do elements get undefined or shifted, 
perhaps?  For
example, in the diagram above, replacing the duplicates with spaces gives us:

   3 r s 8   a
   d   8 4   h
 w w   a 4   9

Is that what you are looking for, or do things get shifted left or up, or some 
combination of
that?

Cheers,
Ovid

=====
Hire me!                   http://users.easystreet.com/ovid/personal/resume.html
Silence is Evil            http://users.easystreet.com/ovid/philosophy/indexdecency.htm
Ovid                       http://www.perlmonks.org/index.pl?node_id=17000
Web Programming with Perl  http://users.easystreet.com/ovid/cgi_course/

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to