Jump to content

"Module:Exponential search" གི་བསྐྱར་ཞིབ་སྤྱོད་ཤུལ།

སེལ་འཐུ་སོར་སོ་: ག་བསྡུར་འབད་ནི་དང་ གཤམ་གྱི་བཙུགས་ལྡེ་ ཡང་ན་ ཨེབ་རྟ་ལུ་ཨེབ་ནི་ལུ་ ཐོན་རིམ་གྱི་རེ་ཌིའོ་སྒྲོམ་ལུ་རྟགས་བཀལ།
འབད་ཤུལ་: (ཀཱར་) = ད་ལྟོའི་ཐོན་རིམ་ལས་སོར་སོ་ (མཇུག་) = ཧེ་མའི་ཐོན་རིམ་ལས་སོར་སོ་ M = ཞུན་དག་ཆུང་ཀུ།

༡༠ སྤྱི་ཟླ་བཅུ་པ། ༢༠༢༤

  • ཀཱར།མཇུག། ༠༥:༥༡༠༥:༥༡, ༡༠ སྤྱི་ཟླ་བཅུ་པ། ༢༠༢༤ Doc James བློ། ཕན་འདེབས། ༡,༠༩༢ བའིཊིསི +༡,༠༩༢ Created page with "-- 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(testFunc, i, low..."
"https://dz.wikipedia.org/wiki/Module:Exponential_search" ལས་ སླར་འདྲེན་འབད་ཡོདཔ།