Originally Posted by navedmohd
i have to write a program in c or most likely java.
the program should consider a tree or graph and it should be shown via program.
then we have to find fan out of every node by which we have to calculate structural and data complexity
plz plz help me out
give the complete source code by today or tomorrow its urgent
Sounds like homework... we don't do homework for people. If you have a specific question on it, we can attempt to help, but we're not going to do the assignment for you.
Sounds like a binary tree to me; just Google for "binary tree in C" or whatever language you're going to use (you sure it's not C++?) and you should get some results..