回复:能否详细说明一下,或者给出伪代码?学习学习

来源: GoldIsGold 2009-05-09 18:28:15 [] [旧帖] [给我悄悄话] 本文已被阅读: 次 (449 bytes)
回答: 回复:第一题说明GoldIsGold2009-05-09 17:52:05
Let's see a simple example. There are only 4 rooms, initilized to 0000 (not cleaned), you print the value after 1 min, you get a number, say 3, 0011, the 1's are the bits (rooms) changed. This test question is simpler than page management in OS because the bit which have been changed to 1 will never changed back to 0 in 24 hours.
Certainly, you have to write a small function to display the 'human readable' output - .

所有跟帖: 

有待仔细考虑。尤其是对"big hotel"的case,有huge number of rooms. -戏雨飞鹰- 给 戏雨飞鹰 发送悄悄话 戏雨飞鹰 的博客首页 (66 bytes) () 05/10/2009 postreply 11:48:07

请您先登陆,再发跟帖!

发现Adblock插件

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

关闭Adblock后 请点击

请参考如何关闭Adblock/Adblock plus

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

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