Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8663309
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T16:57:23+00:00 2026-06-12T16:57:23+00:00

Here is a quote from some lecture on teh topic. I do not understand

  • 0

Here is a quote from some lecture on teh topic. I do not understand this part h : {1,...,M} -> {0,...,m-1} (the notation). Could someone please explain what it means? E.g. “a hash function h selected from M hash function, which returns values between 1 and m-1”??

Thanks.

Hashing

We assume that all the basics about hash tables have been covered in 61B.

We will make the simplifying assumption that the keys that we want to hash have been
encoded as integers, and that such integers are in the range {1,...,M}. We also assume that
collisions are handled using linked lists.

Suppose that we are using a table of size m, that we have selected a hash function
h : {1,...,M} -> {0,...,m-1} and that, at some point, the keys Y1,...,Yn have been
inserted in the data structure, and that we want to find, or insert, or delete, the key x.
The running time of such operation will be a big-Oh of the number of elements Yi such that
h(yi) = h(x).

………..

………..

Source: http://www.cs.berkeley.edu/~luca/cs170/notes/lecture9.pdf

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T16:57:24+00:00Added an answer on June 12, 2026 at 4:57 pm

    It says: h is a function from the input set {1,…,M} to the target set {0,…,m-1}
    More specifically it doesn’t say how the function is formed.
    It simply says that it deals with certain range of inputs and some other range of outputs and that it exists.

    EDIT: it’s a function, not a relation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here's the code, I don't quite understand, how does it work. Could anyone tell,
I'm watching some great lectures from David Malan ( here ) that is going
From here , I am trying to get data from stock quote for every
Here is the implementation of the dictionary without any compaction support. This quote is
This is example of my XML file <head> <cat>some title here... <info>some info here
Here's the line from App.Config: <add key=CheckFileFormatString value=P{0}\t&quot;{1}, {2}&quot;\t{3}\t{4}\t{5}\t{6}\t{7}\t{8}\t{9}\t{10}/> Here's the code that puts
Here's a question that I don't quite understand: The command, system(pause); is taught to
(ANSWER) How to export some Geography data from a Microsoft Sql Server 2008. You'll
Currently I'm trying to get the stock quote and change of a commodity from
After reading the tips from this great Nettuts+ article I've come up with a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.