File tree Expand file tree Collapse file tree 5 files changed +17
-4
lines changed Expand file tree Collapse file tree 5 files changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -52,9 +52,22 @@ Dimana:
5252-  ` Capacity `  = kapasitas hash table
5353
5454** Contoh langkah:** 
55- 1 .  Hitung index awal: ` idx = h(k) % m ` 
56- 2 .  Jika ` table[idx] `  kosong → simpan di ` table[idx] ` 
57- 3 .  Jika penuh → coba ` idx = (idx + 1) % m ` 
58- 4 .  Ulangi langkah 3 sampai menemukan slot kosong atau tabel penuh
55+ 1 .  Buat Hash Table
56+ 
57+ ![ step1] ( ../asset/gift/step0.gif ) 
58+ 
59+ 2 .  Hitung index awal: ` idx = h(k) % m ` 
60+ 
61+ ![ step2] ( ../asset/gift/step1.gif ) 
62+ 
63+ 3 .  Jika ` table[idx] `  kosong → simpan di ` table[idx] ` 
64+ 
65+ ![ step4] ( ../asset/gift/step2.gif ) 
66+ 
67+ 4 .  Jika penuh → coba ` idx = (idx + 1) % m ` 
68+ 
69+ ![ step4] ( ../asset/gift/step3.gif ) 
70+ 
71+ 5 .  Ulangi langkah 3 sampai menemukan slot kosong atau tabel penuh
5972
6073Salah satu implementasi Linear Probing dapat digunakan pada hash function: [ division_method.cpp] ( struktur_data/hash_table/hash_table.cpp ) 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments