1. Glossaryفەرهەنگی زاراوەکان
Binary search
گەڕانی دووانی
Proposed Kurdish term — under reviewزاراوەی پێشنیارکراو — لە ژێر پێداچوونەوەدایە

Definitionپێناسە

A way to find a value in a sorted list: look at the middle item, throw away the half that cannot contain the value, and repeat. A list of n items needs at most ⌊log⁡2n⌋+1\lfloor\log_2 n\rfloor+1 looks.

ڕێگایەک بۆ دۆزینەوەی بەهایەک لە لیستێکی ڕیزکراودا: سەیری دانەی ناوەڕاست دەکەیت، ئەو نیوەیەی کە بەهاکەی تێدا نییە فڕێ دەدەیت و هەمان کار دووبارە دەکەیتەوە. لیستێکی n دانەیی لانیزۆر ⌊log⁡2n⌋+1\lfloor\log_2 n\rfloor+1 سەیرکردنی پێویستە.

Exampleنموونە

One million sorted names: at most 20 looks, because log⁡21 000 000≈19.93\log_2 1\,000\,000\approx19.93. Python's bisect module uses this idea.

ملیۆنێک ناوی ڕیزکراو: لانیزۆر ⁦20⁩ سەیرکردن، چونکە log⁡21 000 000≈19.93\log_2 1\,000\,000\approx19.93. bisectـی Python ئەم بیرۆکەیە بەکار دەهێنێت.

Other Kurdish renderings in useوەرگێڕانە کوردییەکانی تر

گەڕان بە نیوەکردن، گەڕانە دووانییەکە، گەڕانی دووانیی، گەڕانێکی دووانی

Note on the Kurdish termتێبینی دەربارەی زاراوە کوردییەکە

Follows the registry's binary = دووانی and binary-tree = داری دووانی, with search = گەڕان (search-algorithm = ئەلگۆریزمی گەڕان). The alternative describes the method (search by halving). Proposed by the calc-logarithmic-functions writer; needs review by an IT teacher.

Related termsزاراوە پەیوەندیدارەکان

Videosڤیدیۆکان

How Binary Search Makes Computers Much, Much FasterTom Scott · Englishئینگلیزی · 1.6M viewsبینین · 79K likesلایک · Partبەشی 1:43–6:51 (ofلە 6:51)
Binary search in 4 minutesMichael Sambol · Englishئینگلیزی · 254K viewsبینین · 4.8K likesلایک

Binary search on a sorted list: look in the middle, keep one half, repeat; the loop in code and why it needs about log n steps.

لەسەر ڕیزکراو: سەیری ناوەڕاست بکە، نیوەیەک بهێڵەرەوە و دووبارەی بکەرەوە؛ لە کۆددا و بۆچی نزیکەی log⁡n\log n هەنگاوی پێویستە.

Learn more inزیاتر فێربە لە