[Cs3] Vector question from class

Mikhail Nesterenko mikhail at cs.kent.edu
Thu Jun 19 00:01:57 EDT 2014


> 
> You wanted me to email you with this question that I asked during class
> because you wanted to research it further.
> 
> Given two vectors of different lengths but the same values held within
> their elements, how do they compare?

Vector comparison is lexicographical (dictionary order). The shorter
vector is considered less.

Here are more details:

   http://www.cplusplus.com/reference/algorithm/lexicographical_compare/

Thanks,
--
Mikhail


More information about the cs3 mailing list