The basic idea behind the hash table implementation of associative arr dịch - The basic idea behind the hash table implementation of associative arr Việt làm thế nào để nói

The basic idea behind the hash tabl

The basic idea behind the hash table implementation of associative arrays is sim-
ple. We use a so-called hash function h to map the set Key of potential array in-
dices to a small range [0..m − 1] of integers. We also have an array t with index set
[0..m − 1], the so-called hash table. In order to keep the space requirement low, we
want m to be about the number of elements in S. The hash function associates with
each element e a hash value h(key(e)). In order to simplify notation, we write h(e)
instead of h(key(e)) for the hash value of e. In the library example, h maps each
library card number to its last two digits. Ideally, we would like to store element e
in table entry t[h(e)]. If this works, we obtain constant execution time1 for our three
operations insert, remove, and find .
Unfortunately, storing e in t[h(e)] will not always work as several elements might
collide, i.e., map to the same table entry. The library examples suggests a fix: Al-
low several book orders to go to the same shelf. Then the entire shelf has to be
searched to find a particular order. The generalization of this fix leads to hashing
with chaining. We store a set of elements in each table entry and implement the set
using singly linked lists. Section 4.1 analyzes hashing with chaining using rather op-
timistic (and hence unrealistic) assumptions about the properties of the hash function.
In this model, we achieve constant expected time for all three dictionary operations.
In Section 4.2 we drop the unrealistic assumptions and construct hash functions
that come with (probabilistic) performance guarantees. Already our simple examples
show that finding good hash functions is non-trivial. For example, if we apply the
0/5000
Từ: -
Sang: -
Kết quả (Việt) 1: [Sao chép]
Sao chép!
Ý tưởng cơ bản đằng sau việc thực hiện bảng băm của mảng kết hợp là sim-
ple. Chúng tôi sử dụng một cái gọi là hash chức năng h để chìa khóa đặt của mảng tiềm năng tại - ánh xạ
dices để một phạm vi nhỏ [0..m − 1] số nguyên. Chúng tôi cũng có một mảng t với chỉ số
[0..m − 1], bảng băm cái gọi là. Để giữ cho không gian yêu cầu thấp, chúng tôi
muốn m để về số lượng các yếu tố trong S. Hàm băm kết hợp với
mỗi yếu tố e một băm giá trị h(key(e)). Để đơn giản hóa các ký hiệu, chúng tôi viết h (e)
thay vì h(key(e)) cho giá trị băm của e. Trong ví dụ thư viện, h bản đồ mỗi
số thẻ thư viện để của nó cuối hai chữ số. Lý tưởng nhất, chúng tôi muốn lưu trữ nguyên tố e
trong bảng mục t[h(e)]. Nếu công trình này, chúng tôi có được thực hiện liên tục time1 cho chúng tôi ba
hoạt động chèn, loại bỏ, và nhiều.
thật không may, lưu trữ điện tử trong t[h(e)] sẽ không luôn luôn làm việc như một số yếu tố có thể
va chạm, nghĩa là, bản đồ với cụm từ cùng một bảng. Ví dụ về thư viện cho thấy một fix: Al-
thấp một số đặt đơn đặt hàng để đi đến cùng một kệ. Sau đó toàn bộ kệ có thể
tìm kiếm để nhiều một thứ tự cụ thể. Tổng quát của fix này dẫn đến băm
với loạt. Chúng tôi lưu trữ một tập các phần tử trong mỗi mục bảng và thực hiện các thiết lập
bằng cách sử dụng đơn lẻ liên kết danh sách. Phần 4.1 phân tích băm với loạt bằng cách sử dụng thay vì op-
timistic (và do đó không thực tế) giả định về các tính chất của chức năng băm.
trong mô hình này, chúng tôi đạt được thời gian dự kiến liên tục cho tất cả các từ điển ba hoạt động.
trong phần 4.2 chúng tôi thả các giả định không thực tế và xây dựng băm chức năng
mà đi kèm với đảm bảo hiệu suất (xác suất). Đã có chúng tôi ví dụ đơn giản
Hiển thị finding băm tốt chức năng là không nhỏ. Ví dụ, nếu chúng tôi áp dụng các
đang được dịch, vui lòng đợi..
Kết quả (Việt) 2:[Sao chép]
Sao chép!
The basic idea behind the hash table implementation of associative arrays is sim-
ple. We use a so-called hash function h to map the set Key of potential array in-
dices to a small range [0..m − 1] of integers. We also have an array t with index set
[0..m − 1], the so-called hash table. In order to keep the space requirement low, we
want m to be about the number of elements in S. The hash function associates with
each element e a hash value h(key(e)). In order to simplify notation, we write h(e)
instead of h(key(e)) for the hash value of e. In the library example, h maps each
library card number to its last two digits. Ideally, we would like to store element e
in table entry t[h(e)]. If this works, we obtain constant execution time1 for our three
operations insert, remove, and find .
Unfortunately, storing e in t[h(e)] will not always work as several elements might
collide, i.e., map to the same table entry. The library examples suggests a fix: Al-
low several book orders to go to the same shelf. Then the entire shelf has to be
searched to find a particular order. The generalization of this fix leads to hashing
with chaining. We store a set of elements in each table entry and implement the set
using singly linked lists. Section 4.1 analyzes hashing with chaining using rather op-
timistic (and hence unrealistic) assumptions about the properties of the hash function.
In this model, we achieve constant expected time for all three dictionary operations.
In Section 4.2 we drop the unrealistic assumptions and construct hash functions
that come with (probabilistic) performance guarantees. Already our simple examples
show that finding good hash functions is non-trivial. For example, if we apply the
đang được dịch, vui lòng đợi..
 
Các ngôn ngữ khác
Hỗ trợ công cụ dịch thuật: Albania, Amharic, Anh, Armenia, Azerbaijan, Ba Lan, Ba Tư, Bantu, Basque, Belarus, Bengal, Bosnia, Bulgaria, Bồ Đào Nha, Catalan, Cebuano, Chichewa, Corsi, Creole (Haiti), Croatia, Do Thái, Estonia, Filipino, Frisia, Gael Scotland, Galicia, George, Gujarat, Hausa, Hawaii, Hindi, Hmong, Hungary, Hy Lạp, Hà Lan, Hà Lan (Nam Phi), Hàn, Iceland, Igbo, Ireland, Java, Kannada, Kazakh, Khmer, Kinyarwanda, Klingon, Kurd, Kyrgyz, Latinh, Latvia, Litva, Luxembourg, Lào, Macedonia, Malagasy, Malayalam, Malta, Maori, Marathi, Myanmar, Mã Lai, Mông Cổ, Na Uy, Nepal, Nga, Nhật, Odia (Oriya), Pashto, Pháp, Phát hiện ngôn ngữ, Phần Lan, Punjab, Quốc tế ngữ, Rumani, Samoa, Serbia, Sesotho, Shona, Sindhi, Sinhala, Slovak, Slovenia, Somali, Sunda, Swahili, Séc, Tajik, Tamil, Tatar, Telugu, Thái, Thổ Nhĩ Kỳ, Thụy Điển, Tiếng Indonesia, Tiếng Ý, Trung, Trung (Phồn thể), Turkmen, Tây Ban Nha, Ukraina, Urdu, Uyghur, Uzbek, Việt, Xứ Wales, Yiddish, Yoruba, Zulu, Đan Mạch, Đức, Ả Rập, dịch ngôn ngữ.

Copyright ©2025 I Love Translation. All reserved.

E-mail: