512

来源: 继往开来 2009-12-17 21:34:38 [] [旧帖] [给我悄悄话] 本文已被阅读: 0 次 (429 bytes)
本文内容已被 [ 继往开来 ] 在 2009-12-23 04:04:50 编辑过。如有问题,请报告版主或论坛管理删除.
you need to find a subset of positive numbers from 1 to 1023 such that

let's denote the set as S

if A, B in S then A^B is not in the S.

pick any element A from S, S and S^A are two distinct set between 0 and 1023

So the size of S <= 1024/2 = 512

Note that the integers between 1 and 1023 with odd number of bits set satisfy the above conditions. The number of such integers is 512.


所有跟帖: 

513? Plus 0 -康MM- 给 康MM 发送悄悄话 康MM 的博客首页 (0 bytes) () 12/23/2009 postreply 04:04:27

you are right -继往开来- 给 继往开来 发送悄悄话 (0 bytes) () 12/25/2009 postreply 20:30:19

请您先登陆,再发跟帖!

发现Adblock插件

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

关闭Adblock后 请点击

请参考如何关闭Adblock/Adblock plus

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

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