[Tremor] _make_words functionality

Ravi Lakkundi ravilakkundi at yahoo.co.in
Sun Oct 16 21:50:40 PDT 2005


Hi,

Well thanks, but this information is given in spec
also,..what i wanted to know is, does that mean that
i'll be getting 0,4,5,6,7,2,6,7 in the work array,..
definetly not i know ... but i want to know what
numbers i'll be getting in work array and how to
interpret them?

> 00
> 0100
> 0101
> 0110
> 0111
> 10
> 110
> 111

Ravi


> > Can somebody explain me the _make_words function
> in
> > Tremor.
> >
> > Say: for the example given in spec, i.e. for a
> length
> > list of 2,4,4,4,4,2,3,3 what will be the values
> for
> > work array and how they are computed?
> >
> > _make_words(lengthlist,s->entries,work
> > ,quantvals,s,opb,maptype)
> >
> > _make_words(lengthlist,8,work,
> > 0,s,opb,0)
> 
> It uses a "first fit" algorithm, so your example
> would
> give the codewords
> 
> 00
> 0100
> 0101
> 0110
> 0111
> 10
> 110
> 111
> 
> in sequence.
> 
> Another example:
> 
> 3,1,2,3
> 
> gives
> 
> 000
> 1
> 01
> 001
> 
> 
> Segher
> 
> 



		
__________________________________________________________ 
Yahoo! India Matrimony: Find your partner now. Go to http://yahoo.shaadi.com


More information about the Tremor mailing list