How to print out Tree Structure?

Can a node in a tree (data structure) have more than 2 children?

  • In the concept of Trees in data structure, it is defined as a kind of data structure which consists of nodes having hierarchical order. Most images or representation of a tree are nodes having only AT MOST 2 children. Though i'm wondering cause it wasn't part of the definition of the tree to have only AT MOST 2 children. So is it still called a tree when it has a node which have more than 2 children? Like a graph however has the constraint of having only a single parent.

  • Answer:

    Yes look up b trees.

ioLLo at Yahoo! Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.