Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Algorithms
  4. Random functions family

Random functions family

Scheduled Pinned Locked Moved Algorithms
tutorialquestionlounge
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    Quake2Player
    wrote on last edited by
    #1

    Hi, Would you give me an example of FAMILIES of functions that I could use in a Hashtable? Notice that I need a FAMILY of functions (that means it should depend on some random constants previously defined) It should go from {0, K} to {0, m} Im trying f(x) = (a*x + b) % prime % m where prime is larger than x, a is between 1 and prime-1, and b is between 0 and prime-1 But its not good enough.. Dunno why though

    N 1 Reply Last reply
    0
    • Q Quake2Player

      Hi, Would you give me an example of FAMILIES of functions that I could use in a Hashtable? Notice that I need a FAMILY of functions (that means it should depend on some random constants previously defined) It should go from {0, K} to {0, m} Im trying f(x) = (a*x + b) % prime % m where prime is larger than x, a is between 1 and prime-1, and b is between 0 and prime-1 But its not good enough.. Dunno why though

      N Offline
      N Offline
      Nuri Ismail
      wrote on last edited by
      #2

      Quake2Player wrote:

      Would you give me an example of FAMILIES of functions that I could use in a Hashtable?

      Example: SHA family[^]. This family and additional hash function implementations can be found here[^]. Also you can find some different hash function implementations here[^]. Regards, Nuri Ismail

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups