Skip to main content

Questions tagged [speller-hashtable]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
176 views

problems in unload function-pset5

// Implements a dictionary's functionality #include <strings.h> #include <stdlib.h> #include <ctype.h> #include <stdio.h> #include <stdbool.h> #include <string.h> #...
Pragati Chauhan's user avatar
0 votes
1 answer
39 views

Ap cs50(or cs50) hash speller

// Implements a dictionary's functionality #include <ctype.h> #include <stdbool.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include "dictionary.h" //...
Farron Lourens's user avatar
0 votes
1 answer
155 views

Pset 5 Speller Segmentation Fault

Seg-faults seem to be the bane of my existence. I've tried running valgrind and using printf functions to find the line(s) of code that are causing the seg-fault in my implementation of speller, but ...
tahahasan360's user avatar
0 votes
1 answer
54 views

in speller load() struggling to understand if populating dictionary correctly and how to check hashtable

I am building my load() function and I'm wondering if I'm building it so that it is indeed storing the dictionary words correctly. I tried printing both: printf("%s\n", new_node->word); //...
Katie Melosto's user avatar
0 votes
1 answer
159 views

Speller : 56 bytes are not being freed

There are 56 bytes that are not being freed. ==600== 56 bytes in 1 blocks are definitely lost in loss record 1 of 2 ==600== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-...
Chris's user avatar
  • 428
0 votes
1 answer
93 views

Pointer initialization in Load function (pset4 Speller)

When in my load function, I insert a node at the front of a linked list: If I declare and initialize a pointer as the new 'head' node, my code compile but every word in the text is found to be ...
Charlie Sierra 50's user avatar
0 votes
1 answer
50 views

Pset4 speller segmentation fault in check functions when using larger files like holmes.txt

I updated my hash function to make the code faster, it makes a hash table and stores word with the same first three letters in one linked list, i.e words starting with aaa will go together, words ...
Somit Jain's user avatar
0 votes
1 answer
72 views

Segmentation fault - Speller

My code has a segmentation fault and always prints this out: MISSPELLED WORDS dictionary.c:111:19: runtime error: member access within null pointer of type 'node' (aka 'struct node') Segmentation ...
fwoosh's user avatar
  • 201
0 votes
1 answer
146 views

I don't get these errors

Every time I compile speller (hash table) I get these errors: clang -fsanitize=signed-integer-overflow -fsanitize=undefined -ggdb3 -O0 -Qunused-arguments -std=c11 -Wall -Werror -Wextra -Wno-sign-...
fwoosh's user avatar
  • 201