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!