2006-03-31から1日間の記事一覧
String#sum(bits=16)は単純なサムチェックを取るメソッドです。引数はビット数。 疑問:ri sumには「the sum of the binary value of each character in _str_ modulo +2n - 1+」と書いてありますが、modulo $2^{n}$ではないでしょうか?(- 1がいらないとい…
String#sum(bits=16)は単純なサムチェックを取るメソッドです。引数はビット数。 疑問:ri sumには「the sum of the binary value of each character in _str_ modulo +2n - 1+」と書いてありますが、modulo $2^{n}$ではないでしょうか?(- 1がいらないとい…