All Questions
Tagged with hash-table hash-function
7 questions
0
votes
1
answer
69
views
Pset5 Speller: every word in text reported as misspelled
Code compiles, dictionary loads and unloads, word count works and hash function seems to work. However, the results show that every word in the text is misspelled. I’ve spent 3 weeks tweaking the code ...
1
vote
2
answers
7k
views
PSET5 Speller hash function
I have been working on the speller problem in pset5 for a while now, and I am not able to figure out the problem in my hash function:
unsigned int hash(const char* word)
{
int M = 1000000001;
...
1
vote
1
answer
447
views
My check function in speller isn't working
I have implemented everything else but this check function when I try to test it it seems like the the check function isn't working, because the no. of misspelled words is the same as the no. in text.....
0
votes
1
answer
74
views
pset5 speller program doesn't display benchmarks
When I ran my code through the compiler, it displays all the misspelled word correctly as per the staff solution. However, the program does not end after displaying all the misspelled words and it ...
0
votes
1
answer
142
views
pset5 load null pointer issue
Working through the load portion of pset5. Everything compiles, but when I run valgrind it looks as if nothing is actually loading in, with the error of "null pointer passed as argument 1, which is ...
0
votes
1
answer
751
views
Segmentation fault occurs if I delete an unused global variable in Pset5
It looks I have broken C while working on Pset5, I mean, I don't understand a bit why this happens.
First, I completed the problem with the simplest of hash functions which just processes the first ...
1
vote
1
answer
1k
views
Pset6: Is it possible implement a 3D Hash table Matrix?
It might be too early on for me to ask questions in this problem set, as I am just getting started with load. I was looking up Hash Functions, and they look a little cryptic to me. Is it possible to ...