J
Jean Charbonneau
Hello,
We are doing a project which focuses on making a graphical kind of
phone-book.
For that, we have as input data a text file. We need to convert that file
from text to binary form, but more than that, we must provide an efficient
data structure so that search through the file is fast.
For that we are going to use a binary-tree and chained-lists. We must use
those anyways, it's a prerequisite for our project.
I guess we shouldn't use the Java implementations of chainedlists, and use
our own implementation instead.
What I am planning to do, is to create the binary file as follow :
Fields of the file :
hashcode << should I use the .hashCode() method, or do my own one ?
datas-used-for-the-phonebook
left-tree-index << used for fast browsing through a binary-tree
right-tree-index << same as before
chained-index << used for the chained-list
What do you think of this ? Is my idea any good in the concept ? I have an
idea on how to make the tree, but it's a bit hard I think without some kind
of background about it, do you got any websites which could help for such
project ?
I post this question in a java newsgroup, since I need opinion from Java
programmers, who know the mecanism of Java and who can tell me if something
would be a hasle or if there is easiest ways of making such thing.
Thank you in advance
Jean
We are doing a project which focuses on making a graphical kind of
phone-book.
For that, we have as input data a text file. We need to convert that file
from text to binary form, but more than that, we must provide an efficient
data structure so that search through the file is fast.
For that we are going to use a binary-tree and chained-lists. We must use
those anyways, it's a prerequisite for our project.
I guess we shouldn't use the Java implementations of chainedlists, and use
our own implementation instead.
What I am planning to do, is to create the binary file as follow :
Fields of the file :
hashcode << should I use the .hashCode() method, or do my own one ?
datas-used-for-the-phonebook
left-tree-index << used for fast browsing through a binary-tree
right-tree-index << same as before
chained-index << used for the chained-list
What do you think of this ? Is my idea any good in the concept ? I have an
idea on how to make the tree, but it's a bit hard I think without some kind
of background about it, do you got any websites which could help for such
project ?
I post this question in a java newsgroup, since I need opinion from Java
programmers, who know the mecanism of Java and who can tell me if something
would be a hasle or if there is easiest ways of making such thing.
Thank you in advance
Jean