Link to home
Start Free TrialLog in
Avatar of darentan
darentan

asked on

adjacency matrix or 2-d array

Hi all,

if writing in pas, would 2d array or adjacency matrix be better or easier.

i am preparing to write a program on subjects, objects and directed edges (like a b-tree) with checking for cycle.

and also is there any way we could write program to show the tree rather than sentences - eg.

                     a
                    / \
                   b   c
                  /\   /\
                 /  \ /  \
                /    \/   \
               d      e    f

Avatar of svik
svik

Hi,

Pascal is, on my opinion, the best choice for your project. But it is up to you what language to use. You can solve your project using C++, or for example Eiffel.

With regard to Pascal You can find lots of sources in the internet. Below I you can see some of them.

http://www.geocities.com/SiliconValley/Park/3230/pas/pasl1006.html
http://www.nist.gov/dads/HTML/btree.html

I hope it could be helpfull.

Regards,
SVik
Avatar of darentan

ASKER

i thinking of gui interface as in java as pas are bad in it. it is my assignment and only two choice - java or pas. but java i not so sure :(

the tricky part is the displaying of the adjacency maxtrix into tree figure rather than table .
ASKER CERTIFIED SOLUTION
Avatar of svik
svik

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
darentan:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.