Re: Efficient Vector Comparison
- From: Pascal Bourguignon <pjb@xxxxxxxxxxxxxxxxx>
- Date: Fri, 29 Jun 2007 00:30:33 +0200
Yao Qi <qiyaoltc@xxxxxxxxx> writes:
"Jim Langston" <tazmaster@xxxxxxxxxxxxxx> writes:
"Yao Qi" <qiyaoltc@xxxxxxxxx> wrote in message
news:m34pks4g7i.fsf@xxxxxxxxxxxx
the
In our program, we will compare every two vectors. In current
implementation, we compare every element of that vector until we get
comparison result. It is not any more efficient way to do this?
b.t.w the length of vector is variable.
Comparing two vectors for what, equality?
Yes, but more than this. We have to compare two vectors to see if they
are equal or one is bigger or smaller than the other one.
What does it mean for a vector to be bigger or smaller than another one?
Is (0 1 1) bigger or smaller than (2 0 0)?
--
__Pascal Bourguignon__ http://www.informatimago.com/
NOTE: The most fundamental particles in this product are held
together by a "gluing" force about which little is currently known
and whose adhesive power can therefore not be permanently
guaranteed.
.
- Follow-Ups:
- Re: Efficient Vector Comparison
- From: Yao Qi
- Re: Efficient Vector Comparison
- From: Ben Pfaff
- Re: Efficient Vector Comparison
- References:
- Efficient Vector Comparison
- From: Yao Qi
- Re: Efficient Vector Comparison
- From: Jim Langston
- Re: Efficient Vector Comparison
- From: Yao Qi
- Efficient Vector Comparison
- Prev by Date: Re: Massive sort among dozens of files
- Next by Date: Re: The software I wish I had
- Previous by thread: Re: Efficient Vector Comparison
- Next by thread: Re: Efficient Vector Comparison
- Index(es):
Relevant Pages
|