KvanTTT / BaseNcoding

Library for encoding of binary data into strings using base32, base85, base128 and other algorithms.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

inconsistance of "the compress ratio" between the system definition and the data in diagram.xlsx

e-cloud opened this issue · comments

commented

I find out something confusing between the system definition and the data in diagram.xlsx about the equation below.

image

Take a exmpale(as Base64):

a=64
k=4
b=2
n=24

// then, according to the equation, ratio should be
r=64^4 / 2^24 =1

However, in the Diagram.xlsx:
image

Am i misunderstanding something?

@KvanTTT could you explain it? 😄

Anyway, really appreciate your awesome work.

Thank you for remark!

I fixed math justification formula and updated a README. Actually, this Raio is a r_bits ratio in Diagram values table, but not r_values ratio.

For 64 case we got:

a=64
k=1
b=2
n=6

So, r_bits = n/k = 6/1 and r_values = a^k / b^n = 64^1 / 2^6 = 1.

commented

impressive update. However, i have to remind you that the first formula might be misspelled.
image
Shouldn't it be a^k?

Thanks, you are right again! I fixed it too :)