Click to See Complete Forum and Search --> : Help on Data Structures


beekay123
04-26-2005, 10:55 AM
I need help on data structures,there is my whole code.My insert from the avl tree does not work at times and its printTree method does not print all the elements in it at times.I guess its the insert method that does not work.

Again i need help with my delete method from the avl tree it gives a null pointer when i run the Soundex class. How the code works is like this:

Generate Soundex keys by entering a word in the gui and pressing search,that key should be inserted in the Hash-table and that word in the Avl tree.All words with similar keys should be inserted in same hash entry referenced to the Avl trees.Now thats my problem.Sometimes it works,but at tomes it does not.And again my delete does not work,it gives a null pointer like i said from pressing delete in the gui.I cant get it to work.I have been doing this for almost 2 weeks please anyone help me.Thank u

Khalid Ali
04-26-2005, 01:20 PM
I downloaded the files to see if I can help u out, it seems like there are allots of files that are missing from the zip file, may be they are library files etc.
make sure that evry resource is in the zip file

beekay123
04-26-2005, 01:38 PM
Thanks a lot in advance.All the files are in there.Just In case i will try to zip it again.Thanks a lot.

Khalid Ali
04-26-2005, 02:10 PM
nope..I still get errors like
QuadraticProbingHashTable these files are not found..and there are severla of them.
Which version of JDK you are using or is there a lib/jar file that is required

Khalid Ali
04-26-2005, 02:21 PM
nevermind the above, now I am missing this file

SoundexGui

beekay123
04-26-2005, 02:23 PM
Im using j2sdk1.4.2_04\jre.Im using the blue J editor/compiler

beekay123
04-26-2005, 02:25 PM
I didnt get the Soundex Gui code.But you can decompile it and get it.But im not supposed to edit it.

beekay123
04-26-2005, 02:28 PM
Its weird because i zipped the very code i working on right now.What should i do?Send them one by one?I could do that if thats fine

Khalid Ali
04-26-2005, 03:14 PM
nope...don't send them one by one, thats what I meant, I guess you are using some classes that are precompiled for u.

beekay123
04-26-2005, 03:26 PM
Ok,i will be patiently waiting for your help.I really appreciate your help.I was getting stressed

Khalid Ali
04-26-2005, 04:08 PM
afraid won't be able to spend any more time on it, if you have soundexgui file (source file) then send it to me and I will take a look at it tonight.(and any other file for that matter, send me the sorce files)

beekay123
04-26-2005, 05:12 PM
But we are not supposed to modify the SoundexGui.java class thoug.I hope it works now.Thanks once more

beekay123
04-26-2005, 05:29 PM
dont forget to make a text file and put it that directory so that u can load the soundex words in the gui

Khalid Ali
04-26-2005, 05:56 PM
ok now I found some time t look at the code, there are allots of problems. There is no main method at all. How are you running your app.
And post a wordfile.txt as well, then explain what I need to do so that I can understand what is you want to do and what is not happening..

beekay123
04-26-2005, 06:14 PM
ok,the gui generates keys, say you enter "sunday " the key "B530" will be generated.The keys are supposed to be stored in the hash table and all words with same key should be stored in the AVL trees.And im supposed to add more words to the wordfile by update in the gui.

Now my printTree() method in the classes i dont know which ones does not do the right job be cause it prints only say 5 out of 8 words with say key.All the words in the text file im sending you,the ones that start with letter S are supposed be returned when one of the words is searched in the gui.But it does not do that at the moment.Most of what im supposed to do can also be found as comments in the SoundexInteface class.

Again my delete also does not work i dont know where i also went wrong.I need help there also.

The MySoundex class in sort of a wrapper class, because i should not call the methods from either the hash table or AVL tree directly in the SoundexInterface class thats why i did that implementation.I am a beginner programmer so please when you fix it make comments so that i kno where i went wrong,how and why?Thank you so much Khalid.

beekay123
04-26-2005, 06:17 PM
the environment i use does not need main method to run.You can just run it.Its called blue j.Its a nice environment for a beginner like me i guess.The main is in the SoundexGui class if you want to run the program.Cheers

beekay123
04-27-2005, 07:14 PM
Khalid how is it going? I hope its going well because you are my last hope!!

beekay123
05-02-2005, 02:07 PM
Is there any progress?Its been quiet a while now.Please reply or say something so that I know whats up.