What is tree in computer science?



What is tree in computer science?..

Answer / Ankit Malik

In computer science, a tree is an abstract data type or data structure that models hierarchical tree structures. It consists of nodes where each node has a parent (except for the root), zero or more children, and zero or more siblings. Trees can be used to represent various kinds of hierarchical relationships.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

What is difference between while and do while?

1 Answers  


Why do we need algorithm?

1 Answers  


How many types of arrays are there?

1 Answers  


What is the difference between set and unordered_set?

1 Answers  


What is mean by sorting?

1 Answers  


Is linkedlist thread safe?

1 Answers  


Differentiate between list and map.

1 Answers  


How would you reverse characters of an array without using indexing in the array.

1 Answers  


Tell me why can't constant values be used to define an array's initial size

1 Answers  


How do you sort a map by key?

1 Answers  


Define binary tree insertion.

1 Answers   Tech Mahindra,


What is bubble sort technique?

1 Answers  


Categories