MathGroup Archive 2002

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Irritating Little Problem

  • To: mathgroup at
  • Subject: [mg32958] Re: Irritating Little Problem
  • From: Richard Palmer <dickp at>
  • Date: Thu, 21 Feb 2002 02:07:16 -0500 (EST)
  • Sender: owner-wri-mathgroup at

> In a message dated 2/19/02 3:25:04 AM, micweij at writes:
>> I have a simple vector
>> and I want to find the position of elements that are equal.
>> I.e I want to test the vector and find all cases of similar elements.
>> Brute force is not what I want, it can be a long vector.

If this is a really big industrial size problem, use hash tables.  You can
find a discussion of hash tables in any good computer science text.  If you
can read al the elements of the list into memory easily, then many of the
solutions given should work.

Richard Palmer

  • Prev by Date: mathgl3d
  • Next by Date: Mathematica 4.1 startup problem
  • Previous by thread: Re: irritating little problem
  • Next by thread: RE: Re: irritating little problem