R
ranjeet
Dear All
I want your suggestion on below implementation so that i can have the most
optimised solution for the below
Lets assume I have the data to encode at the transmitter and decode at the
reciver.
suppose we have high range of data varing from -infity to + infinity
what i decide is that i take the certain range of the above and do the
encoding into the 5 bit.
like the below operation :
00000 -12
00001 -4
00010 0
00011 4
00100 8
00101 12
00110 16
00111 18
01000 20
01001 22
01010 24
01011 26
01100 28
01101 30
01110 32
01111 34
10000 36
10001 38
10010 40
10011 42
10100 44
10101 46
10110 48
10111 50
11000 52
11001 54
11010 56
11011 58
11100 60
11101 62
11110 64
11111 66
the value all below -12 will be taken as 000000
the value all belo -4 will be take as 00001
and so on.........
Now my question is that how to implement this in best fashion????
keeping in all the computation and the memory used into the
system.
My approach that I will enocde the data simple by checking the
values (if it lies with in the range then I will take the above
corresponding Index.)
then I will search the same index (at the decoder end) by making the
look up table in which i will search the corresponding index and
get the data from it.
means if i get the index ( 00101) means 5 then i will
decode this index as the 12.
Now Is this the correct way or what are the issue I have to consider
while facing such problem ( that wheather we have to maintain the
table or just put the values into the memeory and make the search)
Which search algo is the best one while searching the above index values
in the above case. ??
Regards
Ranjeet
I want your suggestion on below implementation so that i can have the most
optimised solution for the below
Lets assume I have the data to encode at the transmitter and decode at the
reciver.
suppose we have high range of data varing from -infity to + infinity
what i decide is that i take the certain range of the above and do the
encoding into the 5 bit.
like the below operation :
00000 -12
00001 -4
00010 0
00011 4
00100 8
00101 12
00110 16
00111 18
01000 20
01001 22
01010 24
01011 26
01100 28
01101 30
01110 32
01111 34
10000 36
10001 38
10010 40
10011 42
10100 44
10101 46
10110 48
10111 50
11000 52
11001 54
11010 56
11011 58
11100 60
11101 62
11110 64
11111 66
the value all below -12 will be taken as 000000
the value all belo -4 will be take as 00001
and so on.........
Now my question is that how to implement this in best fashion????
keeping in all the computation and the memory used into the
system.
My approach that I will enocde the data simple by checking the
values (if it lies with in the range then I will take the above
corresponding Index.)
then I will search the same index (at the decoder end) by making the
look up table in which i will search the corresponding index and
get the data from it.
means if i get the index ( 00101) means 5 then i will
decode this index as the 12.
Now Is this the correct way or what are the issue I have to consider
while facing such problem ( that wheather we have to maintain the
table or just put the values into the memeory and make the search)
Which search algo is the best one while searching the above index values
in the above case. ??
Regards
Ranjeet