SAP智力题 Data transfer

来源: Williamluo 2010-02-04 15:13:55 [] [旧帖] [给我悄悄话] 本文已被阅读: 次 (841 bytes)
Prerequisite knowledge: when transfer data through network, error may happen. Suppose we want to transfer 1001, and the error would happen on only one bit, we may add some parity-check code like this:
-----Co1-Co2-XOR
Ro1---1---0---1
Ro2---0---1---1
XOR---1---1
Then you transfer 10101111 instead of 1001, and the person who receives the data would be able to figure out the original data.

The puzzle is: you want to transfer 1000 bits data over the net work, and the error may happen on only one segment of the data, (e.g. from bit 11 to bit 233), and all the 1 in that segment will turn into 0, 0 will turn into 1. You may add some check code to the data, how many bits at least are enough for you to make a secure transfer?
----Designed by Hansen Chen in 2009( https://www.sdn.sap.com/irj/scn/forum?forumID=410 )

所有跟帖: 

Some incomplete thoughts -endofsuburbia- 给 endofsuburbia 发送悄悄话 endofsuburbia 的博客首页 (525 bytes) () 02/05/2010 postreply 12:25:35

回复:SAP智力题 Data transfer -wowowowowow- 给 wowowowowow 发送悄悄话 (304 bytes) () 02/08/2010 postreply 23:08:13

Nice! -endofsuburbia- 给 endofsuburbia 发送悄悄话 endofsuburbia 的博客首页 (0 bytes) () 02/09/2010 postreply 11:21:27

请您先登陆,再发跟帖!

发现Adblock插件

如要继续浏览
请支持本站 请务必在本站关闭/移除任何Adblock

关闭Adblock后 请点击

请参考如何关闭Adblock/Adblock plus

安装Adblock plus用户请点击浏览器图标
选择“Disable on www.wenxuecity.com”

安装Adblock用户请点击图标
选择“don't run on pages on this domain”