simongog / sdsl

Succinct Data Structure Library
Other
105 stars 15 forks source link

Does dac_vector really requires different adjacent values? #38

Closed danielsaad closed 7 years ago

danielsaad commented 7 years ago

Hi Simon and all.

I'm sorry if this is not the right place for this kind of question, but is dac_vector really dependent on its input values? I found this in the documentation, and the pre-requisite is that no two adjacent values should be equal.

 //! Constructor for a Container of unsigned integers.
 /*! \param c A container of unsigned integers.
      \pre No two adjacent values should be equal.
  */
   template<class Container>
   dac_vector(const Container& c);

I thought dac encoded values were independent from each other.

Best Regards.

danielsaad commented 7 years ago

Sorry, wrong repository.