All Questions
6 questions
0
votes
1
answer
143
views
Pset5 with linked list: head node creation
I am having some headaches about pset5.
Before tackling hashtables and tries, I have been trying to solve the problem with a single linked list to make it simpler. To do this I have defined a couple ...
0
votes
1
answer
60
views
Last word of dictionary file replaces all the nodes in node bucket
Currently I am working on the load function using a hash table with singly-linked list. I have tested the create(), insert(), and find() function in a separate file and they work as expected.
...
0
votes
1
answer
768
views
Problem accessing the last element of the array
I've decided to implement the load function using trie, which I've defined as
typdef struct trie
{
struct trie letters[27];
bool isWord;
}trie;
then later, when I try to ...
0
votes
1
answer
91
views
Pset5 Dictionary C Struct Array Call In Load Function Issue
I've defined the struct as following:
// Node struct
typedef struct node
{
// Node value
char word[LENGTH + 1];
// Node Pointer to next value/node
struct node* ...
0
votes
1
answer
103
views
Trouble Interpreting Linked List Sample Code - PSET5
I'm having trouble interpreting the code for a linked list of students passed out as preparation for pset5, and would like to know if someone could explain what I am missing.
The structs are as ...
5
votes
1
answer
984
views
Pset5: Misunderstanding tries and method to assign letter to an array inside a struct
Before posting, I've searched a lot here and there on the Internet to find the answers to my questions myself and I did code something that eventually works.
My issue is that I've re-rewrote some ...