"バケット"の翻訳 英語に:
辞書 日本-英語
例 (レビューされていない外部ソース)
ええ ミスター バケット | Yes, Mr. Burkett. |
新しいhashtable lookupでまずバケットを見つけ | Let's do the same thing to lookup. |
ですが3つ目のバケットを追加したら | It could be the case that with 2 buckets I have a good distribution. |
1つ目の行でバケットを見つけられます | I've changed hashtable_update. |
2つのバケットしかないハッシュテーブルを仮定します | And with a good hash function this is true. |
バケット数とキーワード数間の比率で ハッシュテーブル内のキーワード数の増減に応じて バケット数を増やしながら動いています | Real world implementations of hash tables try to shoot for a ratio between the number of buckets they have and the number of keywords, increasing the number of buckets accordingly as the number of keywords in the hash table decrease and increase. |
ロードファクタは 全要素数をバケット数で割った値です | They do this by looking at the load factor. We actually used this in Unit 4. |
1つ目の理由はバケット数を増減させると | There's really 2 good reasons. |
バケット2には何もないので比較できません | Let's say we search for Irvin and that brings us to bucket 2. |
3つのキーワードすべてが バケット1に入るハッシュテーブルの場合 | We're going to show that by giving an example hash table. |
150万個のバケットが必要です しかし要素が100万個を超える場合は バケットのサイズを倍にしなければなりません | So this means that if you had about a million entries in your hash table, you would expect to have about a million and a half buckets. |
バケットが満杯になるか ロードファクタの値が高くなったら | So we've been talking about the standard way a hash table works. |
とうとう チャーリー バケットは チョコレート工場を手に入れました | In the end, Charlie Bucket won a chocolate factory. |
1つのバケットに2つのキーは 割り当てられません | That means there's one space for each hash value, that if you hashed to a given bucket there's only one space there. |
そしてバケット内でキーを検索します そのエントリが見つけられたら値をアップデートします もしくはキーと値をバケットの末尾にappendします | We find the bucket in the first line, then within the bucket we're searching for the key, and if we find that entry we're going to update the value. |
その場合は 300万個のバケットを持つことになります | But as you increase above that 2 3 threshold, then you'd double the size of the buckets. |
バケット家では 全てが少しずつ 良くなっていきました | Things had never been better for the Bucket family. |
そしてピーターはハッシュテーブルの バケット数を倍にする必要性に気付きました しかしクリンゴン語を知らなかったため バケットが均一に使われていません | After 8 months of explosive growth in business, I hope so, Peter finds that he needs to double the number of buckets in his hash table. |
何千もの空のバケットがあるとしたら 何が起きているのかが見えづらいからです またレッスン5では 各バケットをリストとして実装しました | This is partly to be easier to see what's going on, because if you saw a hash table with thousands of empty buckets, that would be kind of hard to print out. |
別のコンピュータで別プロセスとして より多くのバケットを持った 新たなハッシュテーブルを作るのです その後新たなバケットを持ったハッシュテーブルと 古いものを入れ替えます | One thing to do would be start a new copy, so you keep the search engine going, still responding to queries using the old hash table but you start a separate process of running on a separate computer, something that's making a new copy of the hash table with a larger number of buckets. |
優れたハッシュ関数を持っていれば 各バケットのキーワード数は同じです | Let's say we have a hash table with only 2 buckets. |
Irvinを検索すると仮定しましょう これはバケット2を示します | So that would be 3 string comparisons. |
文3にはハッシュテーブルでバケットを 多く持つのは常によいと書かれています | And with a good hash function the time is going to decrease even more. |
このお話は どこにでもいるような小さな少年 チャーリー バケット の物語です | This is a story of an ordinary little boy named Charlie Bucket. |
つまり各ハッシュ値に1つのスペースがあり 1スペースに1バケットが割り当てられます | The way the Python dictionary is implemented, there's just one flat list. |
バケット内でエントリを検索します エントリがNoneでなければ2つ目の値を返します | In the new hashtable_lookup, we first find the bucket and then within the bucket we search for the entry. |
NをBで割ることでバケット数と要素数の 変化に対する影響が分かりました | We had that question in Unit 5. |
S3ではオブジェクトをバケットに入れられますが それが そのファイルのキー値の保存先となります | S3 is a simple storage service, and it's basically a distributed file storage thing in the cloud. |
キーワードBatmanをlookupする必要があれば バケット1に向かい Batmanが見つかるまで このバケットの各項目にわたって反復します 基本的にこれはハッシュ関数を まったく行うことなく最初から開始する場合の | If I have a hash table where 3 keywords all go in bucket 1, if I want to look up the keyword Batman, I'm going to go to bucket 1 and iterate through each item in this bucket until I find Batman. |
バケットサイズの半分になります もしバケット数を倍にしたら 平均lookup時間は著しく減少します | And so the average number of comparisons is going to be half the size of a bucket in order to look up a keyword in the hash table. |
ここで見えているキー数とバケット数は 平均値であるということに注意してください | The question where it was N divided by B where you're looking at the impact of the change of the number of buckets and the number of entries. |
バケット数が増えると減少すると書かれています 優れたハッシュ関数ではこれは正しいです | Statement 2 says we should expect the time to look up most keywords in the hash table will decrease as we increase the number of buckets. |
好きなだけハッシュテーブルを大きくできます その場合 複数の要素がバケットに ハッシュされることはありません | If memory was free and cheap, and equally fast no matter how much you needed, then you'd want the hash table to be as big as possible, right? |
1つ目の値がキーであるエントリを検索するために バケットを1つ1つ探します 行うことはこのコードを用いて | In both functions, these 2 lines of code go through a given bucket searching for an entry whose first value is the key. |
キーワードがハッシュする場所も変わるということです 2つのバケットで分配を行う場合は当てはまるでしょう | The first reason is because changing the number of buckets, be it more or less, changes where keywords hash to. |
すべてが新しいバケットに入ってしまうでしょう これが起こらないように注意して ハッシュ関数を選びますが | But if I add a third bucket, the hash function is such that everything lands in that new bucket. |
オレンジのバケットから差し出されたドーナッツを買わないと思う と言われ 笑い たしかに そうね それから すべてがアメリカ式でした | And the women said, You know, Jacqueline, who in Nyamirambo is not going to buy doughnuts out of an orange bucket from a tall American woman? And like (Laughter) it's a good point. |
ここに3つのバケットと3つのキーワードのある ディクショナリを例に挙げます この例では値はあまり重要ではないので示しません | In order to show it, we need an example, so let me give you an example dictionary with 3 buckets and 3 keywords in here. |
ハッシュテーブルについて 皆さんからの質問にお答えします 受講生のバラシャさんからの質問です Pythonではバケットのサイズを どう決めるのですか | gt gt So we had a lot of great questions about hash tables on the forums and one example is Student Baracha asks |
バケットの数によって ハッシュ関数の返す結果が変わるからです 新たなハッシュテーブルへの置換作業が必要ですが 探索速度は速くなります | So the table would then be doubled, and that changes the bucket each word would appear in, because we saw that the result of the hash function depends on the number of buckets you have. |
バケット数が非常に少ない一方で 多くの要素がある場合の例でした 何が起きているのか 部分的に分かりやすくしています | We were doing example hash tables, where the number of buckets was very small, and each bucket had many entries in it. |
エントリの検索のためバケットを調べていきます その1つ目の値はキーで全体のエントリを渡します そうすることでupdateとlookupの両方を使用できます | You should see that it's very similar to the code that we have in update and lookup in that we're going to go through the bucket searching for the entry whose first value is the key and then returning the entire entry so that we can use it accordingly in both update and lookup. |
最悪値の場合はバケット数を更に増やすか 何とかしてハッシュ関数を変えなければなりません ハッシュテーブルの実装では ロードファクタを1以下にするのが一般的です | Even if the average size is fairly small, the worst size could be much larger than that, and if the lookup for the worst case entry starts to get very bad, then you want a larger number of buckets or to change your hash function in some way. |
バケットの構造を変更するかもしれないからです これがどう機能するのか検索しアップデートすれば すべてのハッシュ関数を調べる必要もありません | This is desirable, because if we want to change how these 2 lines of code work perhaps we change the structure of the bucket we don't want to look through every hash table function searching for how this works and updating them. |
更に多くのバケットを持った新たなテーブルを作り 今までの要素をコピーする必要があります SearchWithPeter infoのようなサービスの場合は 入れ替え作業のための中断は避けたいですよね | Once the buckets get too full, or the load factor is too high, you want to create a new table with more buckets, and you've got to copy all your entries to it. |