简体   繁体   English

统一伯努利序列解释为非均匀的算法

[英]Algorithm for Interpreting For Uniform Bernoulli Sequence as Non-Uniform

I have a large, uniformly distributed sequence of binary digits (P(1) = P(0)) and I need to interpret this sequence of random bits as an EQUAL sized sequence of binary digits whose distribution is not uniform (ie P(1) != P(0)). 我有一个大的,均匀分布的二进制数字序列(P(1)= P(0)),我需要将这个随机比特序列解释为一个大小均衡的二进制数字序列,其分布不均匀(即P(1) )!= P(0))。

Specifically, I am looking for either of the following: 具体来说,我正在寻找以下任何一种:

1.) an INVERTIBLE function F whose domain is equal to its range = the set of N bit binary sequences (ie a function whose domain = range = {0,1}^N for some fixed N) AND with the property that the function maps sequences of high entropy to ones of low entropy and vice versa as well as possible 1.)一个INVERTIBLE函数F,其域等于其范围= N位二进制序列的集合(即一个函数,其域=范围= {0,1} ^ N对于某些固定的N) 并且具有该函数的属性将高熵的序列映射到低熵的序列,反之亦然

Ideas? 想法?

It is for compression; 它用于压缩; I will post more about this later 我稍后会发布更多相关信息

Shannon proved that it's impossible to compress a uniform random binary string. Shannon证明压缩均匀的随机二进制字符串是不可能的。 Compression algorithms exploit non-uniformity in the input distribution. 压缩算法利用输入分布中的非均匀性。

There are a whole lot more high entropy sequences than low ones. 熵序列比低序列高很多。 If the function is both invertible and has domain equal to range, there's no way to do that mapping. 如果函数是可逆的并且域等于范围,则无法进行该映射。

edit for your comment: 编辑您的评论:

A = YourLargeSequence

f(0^N) = A
f(A) = 0^N
otherwise, f(x) = x

has all the properties you've asked for. 拥有您要求的所有属性。 Domain = Range = {0,1}^N, it's inverse is itself, 0 has low entropy. Domain = Range = {0,1} ^ N,它本身是逆的,0具有低熵。 I'm guessing you've left out a requirement? 我猜你已经遗漏了一项要求?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM