how can i write the MATLAB CODE for hash function & hashtble not in c++/jave only matlab code.please give me suggestion/clue.
古いコメントを表示
回答 (2 件)
Jan
2013 年 3 月 18 日
0 投票
Before we could suggest a "hash function", you had to define which kind of hash you are searching for: http://en.wikipedia.org/wiki/List_of_hash_functions
8 件のコメント
SAURABH
2013 年 3 月 18 日
Walter Roberson
2013 年 3 月 18 日
What properties is that hash function required to have?
SAURABH
2013 年 3 月 18 日
SAURABH
2013 年 4 月 19 日
Walter Roberson
2013 年 4 月 22 日
Saying you have the SHA algorithm does not tell us anything about what properties you need your hash function to have.
Analogy:
Your stated task: "create a picture of a scene"
Your proposal: "How about if I Paint-By-Number in Crayon?"
Our response: "What kind of picture do you need to create?"
You say back: "I have to create a picture of a scene"
We reply: "What properties does your picture need to have?"
You reply: "How about if I Paint-By-Number in Crayon?"
We reply: "AGGGGH!" (Photograph? Oil painting? Lithograph? Copper Etching? Pen-and-Ink? Mural? Engrave in a single grain of rice?"
Cedric
2013 年 4 月 22 日
The picture has to specifically represent something indeed; more precisely, it cannot be empty.
;-)
Walter Roberson
2013 年 4 月 22 日
"Create a picture of the empty scene". "Okay, here is my empty picture of the empty scene."
The NULL set is a subset of all sets :)
Walter Roberson
2013 年 3 月 18 日
編集済み: Walter Roberson
2013 年 3 月 18 日
0 投票
4 件のコメント
SAURABH
2013 年 3 月 20 日
Walter Roberson
2013 年 3 月 20 日
Why can you not do it with that? You call it with a hash key and it gives you the hash. It gives you some control over the size of the hash result. It is pure MATLAB code, with no C, C++, or Java.
SAURABH
2013 年 4 月 19 日
Jan
2013 年 4 月 22 日
@SAURABH: It would be more efficient, if you explain which error occurs.
カテゴリ
ヘルプ センター および File Exchange で Descriptive Statistics and Insights についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!