Re: Efficient Vector Comparison



"Jim Langston" <tazmaster@xxxxxxxxxxxxxx> writes:

"Yao Qi" <qiyaoltc@xxxxxxxxx> wrote in message
news:m34pks4g7i.fsf@xxxxxxxxxxxx

In our program, we will compare every two vectors. In current
implementation, we compare every element of that vector until we get
the
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.


Best Regards

--
Yao Qi <qiyaoltc@xxxxxxxxx> GNU/Linux Developer
http://duewayqi.googlepages.com/

.



Relevant Pages

  • Re: Re : Re : Re : Re : [PATCH] Compressed ia32 ELF file generation for loading by Gujin 1/3
    ... It is only that much bigger if you compare to 16 bits integer compilers, ... For romcc I had a 3x code bloat over had crafted assembler, ...
    (Linux-Kernel)
  • Re: 715
    ... compare the lack of interest in Bond's ... chasing Ruth and Aaron to the frenzy when Aaron was was approaching 715 ... Steve ... The steroid controversy will only make it bigger. ...
    (rec.music.gdead)
  • Re: Efficient Vector Comparison
    ... we compare every element of that vector until we get ... what I want is to sort the vectors. ... Yao Qi GNU/Linux Developer ...
    (comp.programming)
  • how to get Datagrid column header width
    ... I need to retrieve the column header width to compare it with the column ... width (and set the column width to the one which is bigger) ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Re: Efficient Vector Comparison
    ... Yao Qi writes: ... we will compare every two vectors. ... What does it mean for a vector to be bigger or smaller than another one? ... and whose adhesive power can therefore not be permanently ...
    (comp.programming)