Forum discussion on Binary Tree(Week-8)

Answer the question and discuss if you have any confusion

Answer the question and discuss if you have any confusion

by Md Assaduzzaman -
Number of replies: 57

1. Define binary tree.

2. What is the difference between full binary tree and complete binary tree

In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by Nujhat Tabassum(201-15-3363) -
1. A tree whose elements have at most two children is called a binary tree. Since each elements in binary tree can have only two children , we typically name them the left and the right child.

2. A full binary tree (sometimes proper binary tree or 2-tree) is a tree in which every node other than the leaves has two children.
A complete binary tree is a binary tree in which every level, except possibly the last, is completely filled, and all nodes are as far left as possible.
In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by Mafujul Haque Plabon -
Answer to the question no(1)

A binary tree is a tree data structure made up of nodes, each with at least two children, known as the left and right nodes. The tree starts with a single node known as the root. The tree data structure made up of nodes, each with at least two children or even one child, is called a binary tree and except for the root node, each node will have only one parent.

Binary
Tree : 1
/ \
2 3
/ \ / \
4 5 6 7

Or
1
/ \
2 3
/ \ /
4 5 6 Answer to the question no(2)

Full Binary tree: 1. In a full binary tree all nodes have either 0 or 2 children. Both types of nodes can appear at all levels in the tree. An example is given in the following figure.

2. In a full binary tree, each node has two children.

3. In a full binary tree, no node has only one child.

4. A perfect binary tree is a full binary tree with all leaves at the same depth.
Full Binary
tree :
1
/ \
2 3
/ \
4 5
/ \
6 7

Complete Binary tree :
1
/ \
2 3
/ \ / \
4 5 6 7
/
8
Complete Binary tree:
1. In a complete binary tree all levels except the last are completely filled, and in the last level all nodes are to the left as much as possible.

2. A complete binary tree can have one or two children in a node but the children will fill the left side first and then sit on the right.

3. A complete binary tree is like a perfect binary tree, but with the rightmost so-many leaves removed.

4. The attractive feature of a complete binary tree is that it can be represented in an array very efficiently.
In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by Mafujul Haque Plabon -
Answer to the question no(1)

A binary tree is a tree data structure made up of nodes, each with at least two children, known as the left and right nodes. The tree starts with a single node known as the root. The tree data structure made up of nodes, each with at least two children or even one child, is called a binary tree and except for the root node, each node will have only one parent.

Answer to the question no(2)

Full Binary tree:
1. In a full binary tree all nodes have either 0 or 2 children. Both types of nodes can appear at all levels in the tree. An example is given in the following figure.

2. In a full binary tree, each node has two children.

3. In a full binary tree, no node has only one child.

4. A perfect binary tree is a full binary tree with all leaves at the same depth.

Complete Binary tree:
1. In a complete binary tree all levels except the last are completely filled, and in the last level all nodes are to the left as much as possible.

2. A complete binary tree can have one or two children in a node but the children will fill the left side first and then sit on the right.

3. A complete binary tree is like a perfect binary tree, but with the rightmost so-many leaves removed.

4. The attractive feature of a complete binary tree is that it can be represented in an array very efficiently.
In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by Ismotara Dipty -

Answer to the question  no 1: 

A binary tree is a tree data structure in which each node has at most two children, which are referred to as the left child and the right child. 

Answer to the question no 2: 

In a full binary tree all nodes have either 0 or 2 children.

A complete binary tree is a binary tree in which every level, except possibly the last, is completely filled, and all nodes are as far left as possible.This means that all nodes have two children except the nodes at the lowest two levels. At the lowest level the nodes have (by definition) zero children, and at the level above that nodes can have 0, 1 or 2 children.  


In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by Tania Ahmed Nipa (201-15-3282) -
1. A binary tree consists of a finite set of nodes that is either empty, or consists of one specially designated node called the root of the binary tree, and the elements of two disjoint binary trees called the left subtree and right subtree of the root.

2. Full Binary- A full binary tree (sometimes proper binary tree or 2-tree) is a tree in which every node other than the leaves has two children.
Complete Binary- A complete binary tree is a binary tree in which every level, except possibly the last, is completely filled, and all nodes are as far left as possible.
In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by Arifa Rahman Tony -
1:ans:
A tree whose element have at most two children which are referred to as the left child and right child is called binary tree.thats means binary tree can have only two children.
2:ans:
In a full binary tree no node has only one child,each node has two children and full binary tree is a perfect binary tree with all leaves at the same depth.
on the other hand In a complete binary tree is like a perfect binary tree but with rightmost so many leaves removed.the attractive feature of a complete binary tree is that it can be represented in an array very efficiently.the binary heap data structure used a complete binary tree stored in an array.
In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by Janatul Naeem (201-15-3605) -
Answer to the question no 1:

A binary tree is a tree data structure in which each node has at most two children, which are referred to as the left child and the right child.

Answer to the question no 2:

In a full binary tree all nodes have either 0 or 2 children.

A complete binary tree is a binary tree in which every level, except possibly the last, is completely filled, and all nodes are as far left as possible.This means that all nodes have two children except the nodes at the lowest two levels. At the lowest level the nodes have (by definition) zero children, and at the level above that nodes can have 0, 1 or 2 children
In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by Maherunnesa Mim -
Answer to the question no 1:

A binary tree is a tree data structure in which each node has at most two children, which are referred to as the left child and the right child.
Answer to the question no 2:


A full binary tree (sometimes proper binary tree or 2-tree) is a tree in which every node other than the leaves has two children.
A complete binary tree is a binary tree in which every level, except possibly the last, is completely filled, and all nodes are as far left as possible.
In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by 201-15-3293 Abdur Razzak -
1:ans:
A tree whose element have at most two children which are referred to as the left child and right child is called binary tree.thats means binary tree can have only two children.
2:ans:
In a full binary tree no node has only one child,each node has two children and full binary tree is a perfect binary tree with all leaves at the same depth.
on the other hand In a complete binary tree is like a perfect binary tree but with rightmost so many leaves removed.the attractive feature of a complete binary tree is that it can be represented in an array very efficiently.the binary heap data structure used a complete binary tree stored in an array.
In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by Fiaj Rahman(201-15-3077) -
1:ans:
A tree whose element have at most two children which are referred to as the left child and right child is called binary tree.thats means binary tree can have only two children.
2:ans:
In a full binary tree no node has only one child,each node has two children and full binary tree is a perfect binary tree with all leaves at the same depth.
on the other hand In a complete binary tree is like a perfect binary tree but with rightmost so many leaves removed.the attractive feature of a complete binary tree is that it can be represented in an array very efficiently.the binary heap data structure used a complete binary tree stored in an array.
In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by Khatuna Jannat Sarnali -

1 no:

Binary tree is a tree data structure where each of it's node has at most two (Minimum 0 and Maximum 2) children named Left child and Right child.

2 no:

A full Binary tree is a special type of binary tree in which every parent node/internal node has either two or no children. It is also known as a proper binary tree.

A complete binary tree is a binary tree in which all the levels are completely filled except possibly the lowest one, which is filled from the left.

A complete binary tree is just like a full binary tree, but with two major differences

  1. All the leaf elements must lean towards the left.
  2. The last leaf element might not have a right sibling i.e. a complete binary tree doesn't have to be a full binary tree.


In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by Sanjida Zaman Toma 201-15-3102 -
1.A binary tree is a tree data structure in which each parent node can have at most two children.

2. A full binary tree (sometimes proper binary tree or 2-tree) is a tree in which every node other than the leaves has two children.
A complete binary tree is a binary tree in which every level, except possibly the last, is completely filled, and all nodes are as far left as possible.
In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by Avishek Das (201-15-3452) -

Answer to the Q. No 1

Binary tree is a tree data structure where each of it's node has at most two (Minimum 0 and Maximum 2) children named Left child and Right child.

Answer to the Q. No 2

A full Binary tree is a special type of binary tree in which every parent node/internal node has either two or no children. It is also known as a proper binary tree.

A complete binary tree is a binary tree in which all the levels are completely filled except possibly the lowest one, which is filled from the left.

A complete binary tree is just like a full binary tree, but with two major differences

  1. All the leaf elements must lean towards the left.
  2. The last leaf element might not have a right sibling i.e. a complete binary tree doesn't have to be a full binary tree.


In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by Md. Sakibuzzaman Alif -
1.Answer : A tree which have a root and most 2 numbers of child node .
2.Answer: Full binary tree is proper binary tree which have 2 child node . But in complete binary tree either the parent have 2 node or 0.
In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by Ordha Nafiz Akbar -
Answer to the question no 1:

A binary tree is a tree data structure in which each node has at most two children, which are referred to as the left child and the right child.

Answer to the question no 2:

In a full binary tree all nodes have either 0 or 2 children.

A complete binary tree is a binary tree in which every level, except possibly the last, is completely filled, and all nodes are as far left as possible. This means that all nodes have two children except the nodes at the lowest two levels. At the lowest level the nodes have  zero children, and at the level above that nodes can have 0, 1 or 2 children.
In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by Prayma Bishshash 201-15-3168 -
1.
Answer:
A tree whose element have at most two children which are referred to as the left child and right child is called binary tree.thats means binary tree can have only two children.


2.
Answer:
In a full binary tree no node has only one child, each node has two children and full binary tree is a perfect binary tree with all leaves at the same depth.
on the other hand In a complete binary tree is like a perfect binary tree but with rightmost so many leaves removed. the attractive feature of a complete binary tree is that it can be represented in an array very efficiently. the binary heap data structure used a complete binary tree stored in an array.
In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by Sajib Bormon 201-15-3773 -
Answer to question no: 1
A tree whose elements have at most two children is called a binary tree.

Answer to the question no:2
1. A complete binary tree where a parent node can have one child node but in full binary tree a parent node has either two child node or none.
2. A complete binary tree have to enter node from left to right but in full binary tree it can be start from both sides.
In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by Md. Atikur Rahman -
Answer to the question no 1:

A binary tree is a tree data structure in which each node has at most two children, which are referred to as the left child and the right child.

Answer to the question no 2:

In a full binary tree all nodes have either 0 or 2 children.

A complete binary tree is a binary tree in which every level, except possibly the last, is completely filled, and all nodes are as far left as possible.This means that all nodes have two children except the nodes at the lowest two levels. At the lowest level the nodes have (by definition) zero children, and at the level above that nodes can have 0, 1 or 2 children
In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by Mst Naima Sultana -

Answer to the question no:01

  
A tree whose element have at most two children which are referred to as the left child and right child is called binary tree.thats means binary tree can have only two children.

Answer to the question no:02  


In a full binary tree no node has only one child,each node has two children and full binary tree is a perfect binary tree with all leaves at the same depth.
on the other hand In a complete binary tree is like a perfect binary tree but with rightmost so many leaves removed.the attractive feature of a complete binary tree is that it can be represented in an array very efficiently.the binary heap data structure used a complete binary tree stored in an array.

In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by Sabbir Hossain Antar -
Answer to the Question no : 01

A binary tree is a tree data structure made up of nodes, each with at least two children, known as the left and right nodes. The tree starts with a single node known as the root. The tree data structure made up of nodes, each with at least two children or even one child, is called a binary tree and except for the root node, each node will have only one parent.






Answer to the Question no : 02
In a full binary tree no node has only one child,each node has two children and full binary tree is a perfect binary tree with all leaves at the same depth.
on the other hand In a complete binary tree is like a perfect binary tree but with rightmost so many leaves removed.the attractive feature of a complete binary tree is that it can be represented in an array very efficiently.the binary heap data structure used a complete binary tree stored in an array.

Thank you
In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by Sumia Sarower Trisha 201-15-3474 -

Answer to the question no 1: 

A binary tree is a tree data structure in which each node has at most two children, which are referred to as the left child and the right child. 


Answer to the question no 2: 

In a full binary tree all nodes have either 0 or 2 children.


A complete binary tree is a binary tree in which every level, except possibly the last, is completely filled, and all nodes are as far left as possible.This means that all nodes have two children except the nodes at the lowest two levels. At the lowest level the nodes have (by definition) zero children, and at the level above that nodes can have 0, 1 or 2 children.  



In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by 201-15-3417 Arpita Basak -
1. A tree whose elements have at most two children is called a binary tree. Since each elements in binary tree can have only two children , we typically name them the left and the right child.

2. A full binary tree (sometimes proper binary tree or 2-tree) is a tree in which every node other than the leaves has two children.
A complete binary tree is a binary tree in which every level, except possibly the last, is completely filled, and all nodes are as far left as possible.
In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by Shohanur Rahman 201-15-3401 -

#Answer for question-01

A binary tree is a method of placing and identifying files in a database, especially when all data is known as random access memory. The algorithm searches for data by repeatedly dividing the number of ultimately accessible records until there is only one.

#Answer for question-02

There is a clear difference between a complete binary tree and a complete binary tree. A complete binary tree is a binary tree where each node has zero or two children, a complete binary tree is a binary tree where each layer of the binary tree is completely full except the last layer. Ponds like some special data structures need to have full binary trees while they do not need full binary trees. In a complete binary tree, if you know the total number of nodes or LOVs or the number of internal nodes, you can easily find the other two. However, there are no special features related to the three characteristics of a complete binary tree.

In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by Jannatul Ferdous Moon -
Ans to the question no : 1

A tree which have a root and most 2 numbers of child node .


Ans to the question no : 2

A full Binary tree is a special type of binary tree in which every parent node/internal node has either two or no children. It is also known as a proper binary tree. A complete binary tree is a binary tree in which all the levels are completely filled except possibly the lowest one, which is filled from the left. A complete binary tree is just like a full binary tree, but with two major differences

a) All the leaf elements must lean towards the left.
b) The last leaf element might not have a right sibling i.e. a complete binary tree doesn't have to be a full binary tree.
In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by 201-15-3255 Al Imran Alvy -
1. A tree whose elements have at most two children is called a binary tree. Since each elements in binary tree can have only two children , we typically name them the left and the right child.
2. A full binary tree (sometimes proper binary tree or 2-tree) is a tree in which every node other than the leaves has two children.
A complete binary tree is a binary tree in which every level, except possibly the last, is completely filled, and all nodes are as far left as possible.
In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by Md. Farhatul Haider -
Answer to the question no 1:

A binary tree is a tree data structure in which each node has at most two children, which are referred to as the left child and the right child.

Answer to the question no 2:

A full binary tree (sometimes proper binary tree or 2-tree) is a tree in which every node other than the leaves has two children.
A complete binary tree is a binary tree in which every level, except possibly the last, is completely filled, and all nodes are as far left as possible.
In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by Arnab Saha -
Answer No 1:
A binary tree is a tree data structure made up of nodes, each with at least two children, known as the left and right nodes. The tree starts with a single node known as the root. The tree data structure made up of nodes, each with at least two children or even one child, is called a binary tree and except for the root node, each node will have only one parent.
Answer No 2:
Full v.s. Complete Binary Trees. A full binary tree (sometimes proper binary tree or 2-tree) is a tree in which every node other than the leaves has two children. A complete binary tree is a binary tree in which every level, except possibly the last, is completely filled, and all nodes are as far left as possible.
In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by Nabid Anjum Ome 201-15-3308 -
Answer to the Question no : 01



A binary tree is a tree data structure made up of nodes, each with at least two children, known as the left and right nodes. The tree starts with a single node known as the root. The tree data structure made up of nodes, each with at least two children or even one child, is called a binary tree and except for the root node, each node will have only one parent.



Answer to the Question no : 02

In a full binary tree no node has only one child,each node has two children and full binary tree is a perfect binary tree with all leaves at the same depth.

on the other hand In a complete binary tree is like a perfect binary tree but with rightmost so many leaves removed.the attractive feature of a complete binary tree is that it can be represented in an array very efficiently.the binary heap data structure used a complete binary tree stored in an array.
In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by ABU BAKAR SIDDIQUE 201-15-3352 -
1)ANS:
A binary tree is a tree data structure where each node has up to two child nodes, creating the branches of the tree. The two children are usually called the left and right nodes. Parent nodes are nodes with children, while child nodes may include references to their parents.

2)ANS:
In a complete binary tree all levels except the last are completely filled, and in the last level all nodes are to the left as much as possible. This means that all nodes have two children except the nodes at the lowest two levels. At the lowest level the nodes have (by definition) zero children, and at the level above that nodes can have 0, 1 or 2 children.

When comparing the two types of binary trees, we can make the following observations:

Not every full binary tree is a complete binary tree. This is illustrated by the first example. The two reasons for this is that in a full binary tree leafs can appear at any level, not just the lowest two, and the lowest level does not need to be filled from left to right without leaving gaps.
Not every complete binary tree is a full binary tree. This is illustrated by the second example. The reason is that there is a node with just one child. However, in a complete binary tree there will always be at most one node that violates the requirement for full binary trees. So in that sense complete binary trees are either full or nearly full binary trees.
When binary trees are used as search trees, it becomes important if they are balanced or not, since the depth of a node determines how many steps are needed to find the associated value. From that perspective, the complete binary tree is preferable, since it is more balanced. However, for sets of values that change a lot it may be cumbersome since it may require a lot of restructuring when values are removed or added. Therefore many popular data structures for searching in dynamic sets of values, such as red-black trees, are in fact full binary trees with additional constraints to ensure some form of balancedness.
In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by Md.Yeasin Chowdhury 201-15-3443 -
Ans :to:q:no:01

A tree whose elements have at most two children is called a binary tree. Since each elements in binary tree can have only two children , we typically name them the left and the right child.

Ans :to:q:no:02

 A full binary tree (sometimes proper binary tree or 2-tree) is a tree in which every node other than the leaves has two children.
A complete binary tree is a binary tree in which every level, except possibly the last, is completely filled, and all nodes are as far left as possible.
In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by Atikur Mithun -

Answer to the question number :1

A binary tree is a tree data structure in which each node has at most two children, which are referred to as the left child and the right child. 

Answer to the question number :2 

In a full binary tree no node has only one child,each node has two children and full binary tree is a perfect binary tree with all leaves at the same depth.
on the other hand In a complete binary tree is like a perfect binary tree but with rightmost so many leaves removed.the attractive feature of a complete binary tree is that it can be represented in an array very efficiently.the binary heap data structure used a complete binary tree stored in an array.

In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by Md.Majedul Haque Tanin -
Answer to the question no 1:

A binary tree is a tree data structure in which each node has at most two children, which are referred to as the left child and the right child.

Answer to the question no 2:

In a full binary tree all nodes have either 0 or 2 children.

A complete binary tree is a binary tree in which every level, except possibly the last, is completely filled, and all nodes are as far left as possible.This means that all nodes have two children except the nodes at the lowest two levels. At the lowest level the nodes have (by definition) zero children, and at the level above that nodes can have 0, 1 or 2 children.
In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by Arpita Ghosh 201-15-3422 -
Answer to the question no 1:

A binary tree is a tree data structure in which each node has at most two children, which are referred to as the left child and the right child.

Answer to the question no 2:

In a full binary tree all nodes have either 0 or 2 children.

A complete binary tree is a binary tree in which every level, except possibly the last, is completely filled, and all nodes are as far left as possible.This means that all nodes have two children except the nodes at the lowest two levels. At the lowest level the nodes have (by definition) zero children, and at the level above that nodes can have 0, 1 or 2 children
In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by 201-15-3165 MD.HASIBUL HASAN SHANTO -
1.
A binary tree is a tree data structure made up of nodes, each with at least two children, known as the left and right nodes. The tree starts with a single node known as the root. The tree data structure made up of nodes, each with at least two children or even one child, is called a binary tree and except for the root node, each node will have only one parent.

2.
Full Binary- A full binary tree (sometimes proper binary tree or 2-tree) is a tree in which every node other than the leaves has two children.
Complete Binary- A complete binary tree is a binary tree in which every level, except possibly the last, is completely filled, and all nodes are as far left as possible.
In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by 201-15-3532 Sumaiya Haider -
1:ans: A tree whose element has at most two children which are referred to as the left child and right child is called a binary tree. that means a binary tree can have only two children.
2:and: In a full binary tree no node has only one child, each node has two children and a full binary tree is a perfect binary tree with all leaves at the same depth.
on the other hand, In a complete binary tree is like a perfect binary tree but with rightmost so many leaves removed. the attractive feature of a complete binary tree is that it can be represented in an array very efficiently. the binary heap data structure used a complete binary tree stored in an array.
In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by Md. Seyam Ali Biswas -
Answer to the question no 1:

A binary tree is a tree data structure in which each node has at most two children, which are referred to as the left child and the right child.

Answer to the question no 2:

In a full binary tree all nodes have either 0 or 2 children.

A complete binary tree is a binary tree in which every level, except possibly the last, is completely filled, and all nodes are as far left as possible.This means that all nodes have two children except the nodes at the lowest two levels. At the lowest level the nodes have (by definition) zero children, and at the level above that nodes can have 0, 1 or 2 children
In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by Tanmoy Komer (201-15-3439) -
A binary tree is a tree data structure made up of nodes, each with at least two children, known as the left and right nodes. The tree starts with a single node known as the root.

Answer to the Question no : 02

In a full binary tree no node has only one child,each node has two children and full binary tree is a perfect binary tree with all leaves at the same depth.

In a complete binary tree is like a perfect binary tree but with rightmost so many leaves removed.the attractive feature of a complete binary tree is that it can be represented in an array very efficiently.the binary heap data structure used a complete binary tree stored in an array.
In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by Akteruzzaman 201-15-3139 -
QU : 01



A binary tree is a tree data structure made up of nodes, each with at least two children, known as the left and right nodes. The tree starts with a single node known as the root. The tree data structure made up of nodes, each with at least two children or even one child, is called a binary tree and except for the root node, each node will have only one parent.



QU: 02

In a full binary tree no node has only one child,each node has two children and full binary tree is a perfect binary tree with all leaves at the same depth.

on the other hand In a complete binary tree is like a perfect binary tree but with rightmost so many leaves removed.the attractive feature of a complete binary tree is that it can be represented in an array very efficiently.the binary heap data structure used a complete binary tree stored in an array.
In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by Mohammad Ashikuzzaman 3438 -
Answer to the Question no :-01

A binary tree is a tree data structure made up of nodes, each with at least two children, known as the left and right nodes. The tree starts with a single node known as the root. The tree data structure made up of nodes, each with at least two children or even one child, is called a binary tree and except for the root node, each node will have only one parent.

Answer to the Question no :-02

In a full binary tree no node has only one child,each node has two children and full binary tree is a perfect binary tree with all leaves at the same depth.
In a complete binary tree is like a perfect binary tree but with rightmost so many leaves removed.the attractive feature of a complete binary tree is that it can be represented in an array very efficiently.the binary heap data structure used a complete binary tree stored in an array.
In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by Md. Shahin Alam -
1. A binary tree consists of a finite set of nodes that is either empty, or consists of one specially designated node called the root of the binary tree, and the elements of two disjoint binary trees called the left subtree and right subtree of the root.

2. Full Binary- A full binary tree (sometimes proper binary tree or 2-tree) is a tree in which every node other than the leaves has two children.
Complete Binary- A complete binary tree is a binary tree in which every level, except possibly the last, is completely filled, and all nodes are as far left as possible.
In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by Ibrahim Tasin -

Answer to the question no.1


A tree whose element have at most two children which are referred to as the left child and right child is called binary tree. Thats means binary tree can have only two children.



Answer to the question no.2


In a full binary tree no node has only one child, each node has two children and full binary tree is a perfect binary tree with all leaves at the same depth.
on the other hand In a complete binary tree is like a perfect binary tree but with rightmost so many leaves removed. The attractive feature of a complete binary tree is that it can be represented in an array very efficiently. The binary heap data structure used a complete binary tree stored in an array.
In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by Taslima Jahan Tushi 201-15-3269 -

no 1:
Ans to the question no.1
A binary tree is a tree data structure in which each node has at most two children, which are referred to as the left child and the right child.

Answer to the question no 2:

In a full binary tree all nodes have either 0 or 2 children.

A complete binary tree is a binary tree in which every level, except possibly the last, is completely filled, and all nodes are as far left as possible.This means that all nodes have two children except the nodes at the lowest two levels. At the lowest level the nodes have (by definition) zero children, and at the level above that nodes can have 0, 1 or 2 children

In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by 201-15-3596 sadia afrin satu -
1. A tree whose elements have at most two children is called a binary tree. Since each elements in binary tree can have only two children , we typically name them the left and the right child.

2. A full binary tree (sometimes proper binary tree or 2-tree) is a tree in which every node other than the leaves has two children.
A complete binary tree is a binary tree in which every level, except possibly the last, is completely filled, and all nodes are as far left as possible.
In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by RIFAT JAHAN ZIM 201-15-3611 -

1. A binary tree consists of a finite set of nodes that is either empty, or consists of one specially designated node called the root of the binary tree, and the elements of two disjoint binary trees called the left subtree and right subtree of the root.

2. Full Binary- A full binary tree (sometimes proper binary tree or 2-tree) is a tree in which every node other than the leaves has two children.
Complete Binary- A complete binary tree is a binary tree in which every level, except possibly the last, is completely filled, and all nodes are as far left as possible.

In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by Md Taufiq ali -
1. A tree whose elements have at most two children is called a binary tree. Since each elements in binary tree can have only two children , we typically name them the left and the right child.

2. A full binary tree (sometimes proper binary tree or 2-tree) is a tree in which every node other than the leaves has two children.
A complete binary tree is a binary tree in which every level, except possibly the last, is completely filled, and all nodes are as far left as possible.
In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by Tapu Chandra Malo -
Ans to the Q.NO.-1
A tree which have a root and at most 2 numbers of child node .So that ,it has 1,2 or no child node.
Ans to the Q.No-2
Full binary tree is proper binary tree which have 2 child node or no child node . But in complete binary tree there each level should have full.
so that is the difference between full binary & complete binary tree.so we can say,every complete binary tree is full binary tree but every full binary tree don't complete binary tree.
In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by Rimon Rimon -
1. A binary tree is a tree data structure in which each parent node can have at most two children.

2. A full binary tree (sometimes proper binary tree or 2-tree) is a tree in which every node other than the leaves has two children.
A complete binary tree is a binary tree in which every level, except possibly the last, is completely filled, and all nodes are as far left as possible.
In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by Md.Habibur Rahman -
Answer to the Question no : 01

A binary tree is a tree data structure made up of nodes, each with at least two children, known as the left and right nodes. The tree starts with a single node known as the root. The tree data structure made up of nodes, each with at least two children or even one child, is called a binary tree and except for the root node, each node will have only one parent.

Answer to the question no:2

1. A complete binary tree where a parent node can have one child node but in full binary tree a parent node has either two child node or none.
2. A complete binary tree have to enter node from left to right but in full binary tree it can be start from both sides.
In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by Md. Seyam Ali Biswas -
1. A binary tree consists of a finite set of nodes that is either empty, or consists of one specially designated node called the root of the binary tree, and the elements of two disjoint binary trees called the left subtree and right subtree of the root.

2. Full Binary- A full binary tree (sometimes proper binary tree or 2-tree) is a tree in which every node other than the leaves has two children.
Complete Binary- A complete binary tree is a binary tree in which every level, except possibly the last, is completely filled, and all nodes are as far left as possible.
In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by Anika Nawar -
1. A tree whose elements have at most two children is called a binary tree. Since each elements in binary tree can have only two children , we typically name them the left and the right child.

2. A full binary tree (sometimes proper binary tree or 2-tree) is a tree in which every node other than the leaves has two children.
A complete binary tree is a binary tree in which every level, except possibly the last, is completely filled, and all nodes are as far left as possible.
In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by Arif Hosen -
1. A tree whose elements have at most two children is called a binary tree. Since each elements in binary tree can have only two children , we typically name them the left and the right child.

2. A full binary tree (sometimes proper binary tree or 2-tree) is a tree in which every node other than the leaves has two children.
A complete binary tree is a binary tree in which every level, except possibly the last, is completely filled, and all nodes are as far left as possible.
In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by 201-15-3311 Mehedi -
1. A tree whose elements have at most two children is called a binary tree. Since each elements in binary tree can have only two children , we typically name them the left and the right child.

2. A full binary tree (sometimes proper binary tree or 2-tree) is a tree in which every node other than the leaves has two children.
A complete binary tree is a binary tree in which every level, except possibly the last, is completely filled, and all nodes are as far left as possible.
In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by MD. IMDADUL HAQUE 201-15-3538 -
1. A tree whose elements have at most two children is called a binary tree. Since each elements in binary tree can have only two children , we typically name them the left and the right child.

2. A full binary tree (sometimes proper binary tree or 2-tree) is a tree in which every node other than the leaves has two children.
A complete binary tree is a binary tree in which every level, except possibly the last, is completely filled, and all nodes are as far left as possible.
In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by Ahmed Ishtiak Nihal -
Answer to the question no 1:

A binary tree is a tree data structure in which each node has at most two children, which are referred to as the left child and the right child.

Answer to the question no 2:

In a full binary tree all nodes have either 0 or 2 children.

A complete binary tree is a binary tree in which every level, except possibly the last, is completely filled, and all nodes are as far left as possible.This means that all nodes have two children except the nodes at the lowest two levels. At the lowest level the nodes have (by definition) zero children, and at the level above that nodes can have 0, 1 or 2 children.
In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by ABU BAKAR SIDDIQUE 201-15-3352 -
1)ANS:
A binary tree is a tree data structure made up of nodes, each with at least two children, known as the left and right nodes. The tree starts with a single node known as the root. The tree data structure made up of nodes, each with at least two children or even one child, is called a binary tree and except for the root node, each node will have only one parent.



2)ANS:
In a full binary tree no node has only one child, each node has two children and full binary tree is a perfect binary tree with all leaves at the same depth.

on the other hand In a complete binary tree is like a perfect binary tree but with rightmost so many leaves removed. the attractive feature of a complete binary tree is that it can be represented in an array very efficiently. the binary heap data structure used a complete binary tree stored in an array.
In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by Sabrina Sultana -
1:ans:
A tree whose element have at most two children which are referred to as the left child and right child is called binary tree.thats means binary tree can have only two children.
2:ans:
In a full binary tree no node has only one child,each node has two children and full binary tree is a perfect binary tree with all leaves at the same depth.
on the other hand In a complete binary tree is like a perfect binary tree but with rightmost so many leaves removed.the attractive feature of a complete binary tree is that it can be represented in an array very efficiently.the binary heap data structure used a complete binary tree stored in an array.
In reply to Md Assaduzzaman

Re: Answer the question and discuss if you have any confusion

by MD. Jannatun Nayem Riyad -
A binary tree is either empty or consists of a node called the root together with two binary trees called the left subtree and the right subtree.