



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




L01 : mult $12, $13 # I- mflo $20 # I- add $20, $20, $11 # I- add $14, $11, $13 # I- L02 : lw $15, 0($14) # I- sub $17, $14, $13 # I- srl $16, $15, 6 # I- bne $13, $04, L03 # I- andi $16, $15, 63 # I- L03 : lw $18, 0($17) # I- srl $19, $18, 6 # I- bne $13, $04, L04 # I- andi $19, $18, 63 # I- L04 : slt $02, $16, $19 # I- beq $02, $00, L05 # I- add $02, $17, $13 # I- sw $18, 0($02) # I- sub $17, $17, $13 # I- slt $02, $17, $11 # I- beq $02, $00, L03 # I- L05 : add $02, $17, $13 # I- sw $15, 0($02) # I- add $14, $14, $13 # I- bne $14, $20, L02 # I- jr $31 # I-
#define LINKBLOCKSIZE 16
typedef struct Link { int Key; int Value; struct Link *Next; } Link;
typedef struct { Link **Buckets; int NumBuckets; Link *FreeLinks; int Size; } HashTable;