V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Higurashi
V2EX  ›  问与答

2-sum 问题的下界

  •  
  •   Higurashi · Feb 17, 2022 · 738 views
    This topic created in 1542 days ago, the information mentioned may be changed or developed.

    在算法 4 的 1.4.5.3 节中,对 2-sum 有这样的一段说明:

    是否存在解决 2-sum 问题的线性级别的算法,3-sum 问题的线性对数级别的算法?对于 2-sum ,这个问题的回答是没有(成本模型仅允许使用并计算这些整数的线性或是平方级别的函数中的比较操作)...
    Is there a linear algorithm for 2-sum or a linearithmic algorithm for 3-sum? The answer to this question is no for 2-sum (under a model that counts and allows only comparisons of linear or quadratic functions of the numbers)...
    

    简单来说,我不懂 2-sum 的下界是如何确定的。2-sum 的成本模型是访问数组的次数,文中是如何由 2-sum 的成本模型确定了 2-sum 的下界?

    任何提示或想法都可能有帮助。谢谢。

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3016 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 07:15 · PVG 15:15 · LAX 00:15 · JFK 03:15
    ♥ Do have faith in what you're doing.