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 looks.
ڕێگایەک بۆ دۆزینەوەی بەهایەک لە لیستێکی ڕیزکراودا: سەیری دانەی ناوەڕاست دەکەیت، ئەو نیوەیەی کە بەهاکەی تێدا نییە فڕێ دەدەیت و هەمان کار دووبارە دەکەیتەوە. لیستێکی n دانەیی لانیزۆر سەیرکردنی پێویستە.
Exampleنموونە
One million sorted names: at most 20 looks, because . Python's bisect module uses this idea.
ملیۆنێک ناوی ڕیزکراو: لانیزۆر 20 سەیرکردن، چونکە . 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ڤیدیۆکان
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.
لەسەر ڕیزکراو: سەیری ناوەڕاست بکە، نیوەیەک بهێڵەرەوە و دووبارەی بکەرەوە؛ لە کۆددا و بۆچی نزیکەی هەنگاوی پێویستە.
Learn more inزیاتر فێربە لە
- Logarithms and Their Rulesلۆگاریتمەکان و یاساکانیان
- Binary Search and Hashingگەڕانی دووانی و هاشکردن
- Adding to a List and Finding Itemsزیادکردن بۆ لیستێک و دۆزینەوەی دانەکان
- Bubble Sort, Insertion Sort and How Fast Sorting Isڕیزکردنی بڵقی، ڕیزکردن بە تێخستن و خێرایی ڕیزکردن
- Exponential Functions and the Number eنەخشە توانییەکان و ژمارەی e
- Python Next to JavaPython لە تەنیشت Javaـەوە
- Project: Finding Roots Numericallyپڕۆژە: دۆزینەوەی ڕەگ بە ڕێگە ژمارەییەکان