Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Implementation of Arithmetic Encoding..??
Old 10-08-2010, 06:09 AM Implementation of Arithmetic Encoding..??
Average Talker

Posts: 17
Name: Philips Tel
Trades: 0
Hi everyone...
i'm currently writing code about implementation of arithemetic coding algorithm. But, i don't know exactly its concept.
This is my problem (i hope someone that reading this topic have had experience for this stuff).

I have seen the implementation of arithmetic coding with integer and it always uses the value.

Low = $0000 (00000)
High = $FFFF (65535)

Which means every symbol in the input stream will be encoded with an unique code in fraction 00000 - 65535, right?

Is it enough to encode every symbol using an unique code from interval 00000 - 65535...????

This is my example:
We assume "file1" consists of "100 000" words and the encoding process like this:

Symbol Shiftout High Low CR
h 00000 65535
e 30000 35000
l 45000 50000
l 50 000 65535
o 55.000 70000 <- ???
..
...
....
n (100,000 [th] word) ?? ??

as we can see from above encoding, there aren't enough codes in 00000 - 65535 to encode 100.000 symbols.
How to solve this problem...??

Could i redefine my interval like:

Low = 0000 (00000)
High = 1 000 000 000 (1 billion)

If i could. Why implementer of arithmetic coding always use the fraction $0000 and $FFFF.

I'm still confuse about this fraction ...??? I really hope your explanation about it.

(oooppps,,,,, i also don't understand yet what is mean implementation of arithmetic coding using 16-bits integer...))

Thank in Advance.

Last edited by philips; 10-08-2010 at 06:15 AM..
philips is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to Implementation of Arithmetic Encoding..??
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.40917 seconds with 12 queries