Retrieve String From Sampled Slices

http://bo-yang.github.io/2014/08/09/retrive-string-from-slices/

Given a string, such as 01001010101001101011, we can randomly sliced multiple substrings. Assume that during the slicing, due to some unexpected noises, some characters may flip(0->1 or 1->0). For example:

 
 
  1. Position: 0123456789.........
  2. String: 01001010101001101011
  3.  
  4. slice1: 1001110101000
  5. slice2: 1010111001111
  6. slice3: 10101
  7. slice4: 1101011

In above sample, slice1 starts from position 1(assume that the index of a string begins with 0), slice2 starts from position 4, slice3 starts from 4, and slice4 starts from 13. In slice1, 0 flips to 1 at position 5 and 1 flips to 0 at position 13.

For one specific position in the original string, if it is 1, then the probability of flipping to 0 in a slicing is 0.1; and vice versa(i.e.Prob(0->1)=0.1).

The problem is: if we only have multiple slices(the length of each slice may vary) and their starting positions in the string, and we don’t know the original string, given an arbitrary position in the original string, how can we calculate the probability that position is a 1?

Assume most positions will be covered at least once in slices, and we have following parameters:

 
 
  1. p01=0.1; // Probability a ‘0’ in string but flipped to a ‘1’ in a slice
  2. p10=0.1; // Probability a ‘1’ in string but flipped to a ‘0’ in a slice
  3. p1=0.5; // Prior probability that any given position in string is a ‘1’

We can also assume that the string is a random string of 0s and 1s, and during slicing, each position is sampled independently.

For the above example string and four slices, we already have following probabilities for each position:

 
 
  1. Pos Prob
  2. 0 0.500
  3. 1 0.900
  4. 2 0.100
  5. 3 0.100
  6. 4 0.999
  7. 5 0.100
  8. 6 0.999
  9. 7 0.001
  10. 8 0.999
  11. 9 0.500
  12. 10 0.988
  13. 11 0.012
  14. 12 0.012
  15. 13 0.900
  16. 14 0.988
  17. 15 0.500
  18. 16 0.988
  19. 17 0.100
  20. 18 0.900
  21. 19 0.900
- See more at: http://bo-yang.github.io/2014/08/09/retrive-string-from-slices/#sthash.yq8MpikN.dpuf
1、资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通; 3、本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合; 4、下载使用后,可先查看README.md或论文文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。 5、资源来自互联网采集,如有侵权,私聊博主删除。 6、可私信博主看论文后选择购买源代码。 1、资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通; 3、本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合; 4、下载使用后,可先查看README.md或论文文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。 5、资源来自互联网采集,如有侵权,私聊博主删除。 6、可私信博主看论文后选择购买源代码。 1、资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通; 3、本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合; 4、下载使用后,可先查看README.md或论文文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。 5、资源来自互联网采集,如有侵权,私聊博主删除。 6、可私信博主看论文后选择购买源代码。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值