首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >CLSR芯片测试问题

CLSR芯片测试问题
EN

Stack Overflow用户
提问于 2011-09-03 02:25:53
回答 1查看 845关注 0票数 0
代码语言:javascript
运行
复制
    Finding ONE good VLSI chip in a population of good and bad ones, by using the
 pair test.      
        Chip A      Chip B      Conclusion  
        -------     -------     ----------  
        B is good   A is good  both are good or both are bad  
        B is good   A is bad    at least one is bad  
        B is bad    A is good   at least one is bad  
        B is bad    A is bad    at least one is bad  


    Assumption : number of goods > number of bads
    We can solve this in O(n) time complexity by splitting the population in half 
    every time and collecting one element of the GOOD, GOOD pair. 
     T(n) = T(n/2) + n/2
    But to collect the pairs we need n/2 memory separately. 
    Can we do this in-place without using extra memory ?? 
EN

回答 1

Stack Overflow用户

发布于 2012-06-06 06:22:09

这个算法是基于这样一个问题:“我们能移除这个芯片吗?”因此,对于每个要移除的芯片,我们只需将其从我们的链表中删除,在适当的位置(或者更确切地说,没有任何位置)。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/7287743

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档