Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
|
|
@ -4,17 +4,17 @@ hTable = []
|
|||
Qtable = []
|
||||
|
||||
for a in table1
|
||||
h = hashing(a[2])
|
||||
add(htable,[h , a])
|
||||
h = hashing(a[2])
|
||||
add(htable,[h , a])
|
||||
next
|
||||
|
||||
for b in table2
|
||||
h = hashing(b[1])
|
||||
for sh in htable
|
||||
if sh[1] = h
|
||||
add(qtable, sh[2] + b[2])
|
||||
ok
|
||||
next
|
||||
h = hashing(b[1])
|
||||
for sh in htable
|
||||
if sh[1] = h
|
||||
add(qtable, sh[2] + b[2])
|
||||
ok
|
||||
next
|
||||
next
|
||||
|
||||
print(qtable)
|
||||
|
|
@ -23,20 +23,20 @@ print(qtable)
|
|||
|
||||
func print lst
|
||||
see "---------------------------------------------------
|
||||
Age | Name || Name | Nemesis
|
||||
Age | Name || Name | Nemesis
|
||||
---------------------------------------------------
|
||||
"
|
||||
for l in lst
|
||||
see string(l[1]) + char(9) + "| " + l[2] + copy(char(9),2) + "|| " + l[2] + " " + char(9) + "| " + l[3] + nl
|
||||
see string(l[1]) + char(9) + "| " + l[2] + copy(char(9),2) + "|| " + l[2] + " " + char(9) + "| " + l[3] + nl
|
||||
next
|
||||
|
||||
func Hashing str
|
||||
r = 0
|
||||
if len(str) > 4
|
||||
r = (ascii(str[1]) + ascii(str[len(str)]) + ascii(str[ceil(len(str) * 0.25)]) + ascii(str[ceil(len(str) * 0.75)]))
|
||||
r = (ascii(str[1]) + ascii(str[len(str)]) + ascii(str[ceil(len(str) * 0.25)]) + ascii(str[ceil(len(str) * 0.75)]))
|
||||
else
|
||||
for s in str
|
||||
r += ascii(s)
|
||||
next
|
||||
for s in str
|
||||
r += ascii(s)
|
||||
next
|
||||
ok
|
||||
return r
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue