Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hey friends,
could anyone please suggest me how to code in constructing a tree with weighted edges in binary form and the nodes can have any no of children not binary in particular.and the node value particularly indicating the index so there is mere use of the node value but what is important is the weights of the edges as...
if a node has two children then their weights must be "0","1"...
if a node has three children then their weights must be "00","01","10"... and so on.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900