Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leaves - Bri #40

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Leaves - Bri #40

wants to merge 1 commit into from

Conversation

brilatimer
Copy link

Anagram and top k element

Hash Table Practice

Congratulations! You're submitting your assignment!

Comprehension Questions

Question Answer
Why is a good Hash Function Important? Fast lookup ability, avoid collisions
How can you judge if a hash function is good or not? Use of constant time
Is there a perfect hash function? If so what is it? Not possible to have a perfect hash function due to the chance of key collision
Describe a strategy to handle collisions in a hash table Possibly by using a chaining method (by storing a linked list for each value for a particular key)
Describe a situation where a hash table wouldn't be as useful as a binary search tree BST is o(logn) time and has a faster lookup time for finding a value. (Hash table is o(n)).
What is one thing that is more clear to you on hash tables now Hash tables seem like the optimal way to count frequencies, compared to other algorithms.

Anagram and top k element
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant