打开/关闭菜单
打开/关闭个人菜单
未登录
登录即可进行编辑

Module:Exponential search:修订历史

出自Tardis百科,中文神秘博士维基

差异选择:选中要对比的版本的单选按钮,按Enter键或下方的按钮。
说明:(当前)=与最后版本之间的差异,(之前)=与上一版本之间的差异,=小编辑。

2024年5月26日 (星期日)

  • 当前之前 22:022024年5月26日 (日) 22:02胡大夫 讨论 贡献 1,092字节 0 已保护“Module:Exponential search”([编辑=仅允许管理员](无限期)[移动=仅允许管理员](无限期))
  • 当前之前 21:582024年5月26日 (日) 21:58胡大夫 讨论 贡献 1,092字节 +1,092 创建页面,内容为“-- This module provides a generic exponential search algorithm. requirestrict local checkType = require('libraryUtil').checkType local floor = math.floor local function midPoint(lower, upper) return floor(lower + (upper - lower) / 2) end local function search(testFunc, i, lower, upper) if testFunc(i) then if i + 1 == upper then return i end lower = i if upper then i = midPoint(lower, upper) else i = i * 2 end return search(testFu…”
我们提供服务需要使用Cookie。您使用我们的服务,即表示您同意我们使用Cookie。