猛擊這裡進行測試:http://pi.nersc.gov/
iveney的ASCII value是:
0x69,0x76,0x65,0x6e,0x65,0x79
測試結果為:
search string = "iveney"
30-bit binary equivalent = 010011011000101011100010111001
search string found at binary index = 3558297688
binary pi : 1100100001001101100010101110001011100111000101000100111101010110
binary string: 010011011000101011100010111001
character pi : vm,vcg-bwzo,vhrnhiveneyxti.kifr.,udmm-
character string: iveney
也就是,把iveney用30位binary表示后,在pi裡面搜索它的第一次出現,得到結果的index為:3,558,297,688
在35億左右……
No comments:
Post a Comment