I really need your help because I'm stuck on pset5 for so many days:(
- I don't know for what reason but my program always sees one extra
word in the dictionary! I mean even in the example with
austinpowers.txt my program has found 143092 words instead of
- And it's also seen from my cs50 check(https://sandbox.cs50.net/checks/1a48913b86fa49278c8b50813f7141ee) But the point is that when I use my own small dictionary, my program shows real number of words in the dictionary. But when I'm working with bigger ones, it always +1 Could anyone help me to figure out what's the problem???
How can I reduce the time needed for checking. Cause mine takes 0.78 comparing to staff's 0.00 in the example with austinpowers.txt
Has anyone tried to put the words in the dictionary in alphabetical order(using hash tables)? How have you managed to do this?? Because I've tried to do it(actually it worked properly) but the running time of my program was about 15 secs O_O When I got rid of that order, it worked much faster
my code: speller.c http://paste.ubuntu.com/23051675/
dictionary.c http://paste.ubuntu.com/23051677/
dictionary.h http://paste.ubuntu.com/23051678/