| 10.14489/vkit.2026.08.pp.043-050 |
|
DOI: 10.14489/vkit.2026.08.pp.043-050 Беляев А. А. Аннотация. Структура хеш-таблицы определяется количеством используемых хеш-функций (подтаблиц) и числом ячеек хранения, соответствующих каждому индексу хеш-функции (т.е. числом сегментов в подтаблице). Структура хеш-таблицы, как и алгоритм заполнения, напрямую влияет на достигаемый уровень заполнения хеш-таблицы. В отличие от большинства публикаций, посвященных организации хеш-таблиц, в которых основное внимание уделяется повышению заполняемости хеш-таблиц путем итеративного перераспределения элементов в таблице «по принципу кукушки» (Cuckoo Hashing), в данной работе рассматривается проблема заполняемости хеш-таблиц с первой попытки и без вытеснения ранее размещенных элементов. Такой подход дает важное преимущество в скорости обработки данных. Получены аналитические зависимости характеристик заполнения хеш-таблиц от количества вставляемых элементов при различных структурных параметрах. Показано, что количество используемых хеш-функций оказывает большее влияние на заполняемость, чем количество сегментов. Проведено компьютерное моделирование, подтвердившее высокую точность предложенных теоретических моделей. Ключевые слова: ассоциативный массив; хеширование; хеш-функция; хеш-таблица.
Abstract. The hash table structure is determined by the number of hash functions used (i.e., the number of sub-tables) and the number of storage cells corresponding to each hash function index (i.e., the number of segments in each sub-table). The structure of the hash table, as well as the filling algorithm, has a direct impact on the achieved level of the hash table filling. Unlike most publications on the hash tables optimizations, which focus on increasing the hash tables filling level by iteratively redistributing elements in the table according to the Cuckoo Hashing method, this paper examines the problem of hash tables filling "on the first attempt", without displacing previously inserted elements. Such approach provides an advantage in data processing speed in many practically important cases. Based on the theoretical analysis in which the hash tables filling is considered as a pseudorandom process, the analytical formulas for the hash tables filling characteristics dependences on the number of inserted elements for various structural parameters under consideration are obtained. It is shown that the number of hash functions used has a greater impact on hash table filling level than that of the number of sub-tables segments. For example, the hash table configuration (k = 4, b = 1) provide greater filling level compared to configuration parameters (k = 1, b = 4) by about % of the total volume of the hash table. Computer modeling was performed and its results confirmed the high accuracy of the obtained theoretical models. The discrepancy between the analytical models and the experimental results for the considered cases does not exceed about 0.2 %. The proposed analytical models for the hash table filling characteristics can be effectively used in practical design. Keywords: Associative array; Hashing; Hash function; Hash table.
РусА. А. Беляев (Национальный исследовательский университет «Московский институт электронной техники», Москва, Россия) E-mail: Этот e-mail адрес защищен от спам-ботов, для его просмотра у Вас должен быть включен Javascript EngA. A. Belyaev (National Research University of Electronic Technology – MIET, Moscow, Russia) E-mail: Этот e-mail адрес защищен от спам-ботов, для его просмотра у Вас должен быть включен Javascript Этот e-mail адрес защищен от спам-ботов, для его просмотра у Вас должен быть включен Javascript
Рус1. Knuth D. The Art of Computer Programming. Vol. 3: Sorting and Searching. Reading, Massachusetts: Addison-Wesley, 1998. 780 pp. Eng1. Knuth, D. E. (1998). The art of computer programming (Vol. 3: Sorting and searching). Addison Wesley.
РусСтатью можно приобрести в электронном виде (PDF формат). Стоимость статьи 700 руб. (в том числе НДС 20%). После оформления заказа, в течение нескольких дней, на указанный вами e-mail придут счет и квитанция для оплаты в банке. После поступления денег на счет издательства, вам будет выслан электронный вариант статьи. Для заказа скопируйте doi статьи: 10.14489/vkit.2026.08.pp.043-050 Отправляя форму вы даете согласие на обработку персональных данных. .
EngThis article is available in electronic format (PDF). The cost of a single article is 700 rubles. (including VAT 20%). After you place an order within a few days, you will receive following documents to your specified e-mail: account on payment and receipt to pay in the bank. After depositing your payment on our bank account we send you file of the article by e-mail. To order articles please copy the article doi: 10.14489/vkit.2026.08.pp.043-050 and fill out the
.
|
Текущий номер
Разработка концепции и создание сайта - ООО «Издательский дом «СПЕКТР»