Anonymous
Anonymous asked in 電腦與網際網路程式設計 · 1 decade ago

資料結構問題(Hash by division)

Use “Hash by division” method to store the following numbers into a space of 13 vacancies. 327, 66, 59, 424, 11, 78, 95. What will it

look like?

1 Answer

Rating
  • 1 decade ago
    Favorite Answer

    Hash by division就是最常用的餘數法

    327 mod 13 = 2

    66 mod 13 = 1

    59 mod 13 = 7

    424 mod 13 = 8

    11 mod 13 = 11

    78 mod 13 = 0

    95 mod 13 = 4

    餘數就是被分配的位置

Still have questions? Get your answers by asking now.