encoding a vector
- From: muede73 <muede73@xxxxxx>
- Date: Mon, 28 Jan 2008 11:29:43 +0100
Hi,
i need to encode a integer vector as some integer.
v := [ a_1,...,a_n ] , a_i \in {0,n-1}
There is a condition v holds :
a_1+...+a_n <= n^2/4 (1)
I could do it with a base-n-code, but I am looking
for something more efficient, maybe by exploiting (1).
By efficient I mean, that it should fit in a 64bit word for n <= ~20.
A constraint is, that it has to be incremental updateable.
Any ideas or keywords are well appreciated.
muede
.
- Follow-Ups:
- Re: encoding a vector
- From: Harri Haanpaa
- Re: encoding a vector
- Prev by Date: Workshop "Medical Imaging Systems" within EUROMEDIA 2008 - Last Call for Papers
- Next by Date: Re: Huge database
- Previous by thread: Workshop "Medical Imaging Systems" within EUROMEDIA 2008 - Last Call for Papers
- Next by thread: Re: encoding a vector
- Index(es):