answersLogoWhite

0


Best Answer

DATA STRUCTURES AS ITS NAME IMPLIES DATA MEANS "VALUE' AND STRUCTURE MEANS THE WAY IT IS ORGANISED AND THE WAY IT IS ARRANGED INTO MATHEMATICAL AND LOGICAL WAY.

Just like array...array helps you to store elements without declaring multiples variable

eg: num[100] can store 100 variables which are integers. Here if you are not using array and want to store data in 100 variables then you must declare 100 unique variables names. This can be done effectively using data structures.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

6y ago

A tree is a nonlinear data structure, compared to arrays, linked lists, stacks and queues which are linear data structures. A tree can be empty with no nodes or a tree is a structure consisting of one node called the root and zero or one or more subtrees. A tree has following general properties:

  • One node is distinguished as a root;
  • Every node (exclude a root) is connected by a directed edge from exactly one other node; A direction is: parent -> children

A is a parent of B, C, D,

B is called a child of A.

on the other hand, B is a parent of E, F, K

In the above picture, the root has 3 subtrees.

Each node can have arbitrary number of children. Nodes with no children are called leaves, or externalnodes. In the above picture, C, E, F, L, G are leaves. Nodes, which are not leaves, are called internal nodes. Internal nodes have at least one child.

Nodes with the same parent are called siblings. In the picture, B, C, D are called siblings. The depth of a node is the number of edges from the root to the node. The depth of K is 2. The height of a node is the number of edges from the node to the deepest leaf. The height of B is 2. The height of a treeis a height of a root.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is a tree data structure as used in programming?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What data structure is used to represent graphs in c language?

A tree.


Which data structures used in T9 dictionary?

Tries, it is a kind of tree data structure that can be used.


What is trie indexing?

Trie tree is tree data structure which is used to store the string over an alphabet


What is the data structure used by google for gmail contacts storage?

It a radix tree.


What is the first no for sialkot?

Data structure is related to the algorithm, ie solution of the requirements.whereas Data Type is component of a programming language, which can be used to implement the required data structure (organization of data and format).For example if the requirement say that a LIST is required, and in C programming language , there is not LIST data type BUT LIST CAN BE REALISED(IMPLEMENTED ) in C.


In programming data read by programming is called?

Pascal language is used to read the programming data.


What is the data structure used to predict the next move in chess?

A decision tree or a weighted graph.


Difference between B-tree and Binomial search tree?

A B-tree is a kind of tree data structure which is a generalization of a binary search tree where each node can have more than two children and contain more than 1 value. A Binominal search tree I am not sure of. If you mean Binary search tree, then it is an abstract data structure. Binominal is a term usually used with distributions while Binary is usually used with data. Hope this helps.


Can a data type be called a data structure?

Yes, they can be used interchangeably, but they usually mean separate things. A type of data is something like an integer, or string. While a data structure usually refers to a linked list or tree of integers or strings.


What is Parse tree?

A syntax tree is a tree representation of the syntactic structure of the source code where the node denotes a construct. For more information, visit the link below:


Which data structure used in database?

You create your own data structure in database.


What is a paper data base used for?

it is a structured programming