X
xyz
It's not clear at all what he does if he don't find the element.
(At one point, he says something about a "new" vector, but I'm
not sure what he's doing with it.)
I'm afraid I don't understand. The hash table contains the
elements he's comparing against. Depending on what he's doing
he may want to insert the element he didn't find into the hash
table, or he may not. There's been no indication of having to
keep any sort of order (or at least, I didn't see it).
--
James Kanze (GABI Software) email:[email protected]
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34
I already cleared about this point in the post...
I check every incoming element the vector1...if it matches in one of
the element in the vector1 I collect the statistics...
after certain timeout the entreis get deleted...in vector1...the
timeout for every entry in the vector veries.
suppose if my entry doesnt match any of the entreis in vector1 i store
it in other vector for eg namely vector2
and these entreis i export to other module...and it does something
with those entries
as i get high timeouts my vectors are very large...so the incoming
element needs to check all those entries whether it is matched in the
vector or not..so i asked whether it is better to use vectors or
maps...
thats all...thanks everyone...
hope everyone understand....