Question

Binary tree please answer these two question properly about binary tree Q(1) What are their respective...

Binary tree please answer these two question properly about binary tree

Q(1) What are their respective logical and physical / storage structures .Q(2) At least one application example combining data structure and algorithm should be given.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

1.

The logical structure of a binary includes 3 parts :

  • Data part.
  • Left child pointer.
  • Right child pointer.

There are 2 ways to represent a binary tree in physical memory :

  • Array representation.
  • Linked representation.

2. An application which involves the binary tree data structure is displaying the list of all files inside a folder.

The algorithm in which the contents of a folder are displayed in postorder traversal is :

t = folder -> data;

Display( struct node folder )

{

Display(folder -> next);

Display(folder -> next);

if(folder -> data != t )

{

Display folder -> data;

}

}

Add a comment
Know the answer?
Add Answer to:
Binary tree please answer these two question properly about binary tree Q(1) What are their respective...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • please answer these two questions properly about Stack data structure Q(1) What are their respective logical...

    please answer these two questions properly about Stack data structure Q(1) What are their respective logical and physical / storage structures .Q(2) At least one application example combining data structure and algorithm should be given.

  • Queue data structure: please answer these two question properly Q(1) What are their respective logical and...

    Queue data structure: please answer these two question properly Q(1) What are their respective logical and physical / storage structures .Q(2) At least one application example combining data structure and algorithm should be given.

  • Linked list: 1) What are their respective logical and physical / storage structures .2) At least...

    Linked list: 1) What are their respective logical and physical / storage structures .2) At least one application example combining data structure and algorithm should be given. please answer these two questions properly

  • i am writing thesis paper for these question (why do we need data structures? What is...

    i am writing thesis paper for these question (why do we need data structures? What is the relationship between data structure and algorithm? What data structures have we learned? What are their respective logical and physical / storage structures? What are their advantages and disadvantages? In which cases do they apply to (combined with time complexity analysis)? Please analyze the learned data structure one by one. At least one application example combining data structure and algorithm should be given) i...

  • Array list, Linkedlist, Stack, Queue, binary tree, hash table What are their respective logical and physical...

    Array list, Linkedlist, Stack, Queue, binary tree, hash table What are their respective logical and physical / storage structures? i am asking this question note what are their respective logical and physical / storage structures?

  • i need an conclusion for my research thesis paper and my research paper covered these areas(why...

    i need an conclusion for my research thesis paper and my research paper covered these areas(why do we need data structures? What is the relationship between data structure and algorithm? What data structures have we learned? What are their respective logical and physical / storage structures? What are their advantages and disadvantages? In which cases do they apply to (combined with time complexity analysis)? Please analyze the learned data structure one by one. At least one application example combining data...

  • Array list, linked list, Stack, Queue, Binary tree, Hash table At least one application example combining...

    Array list, linked list, Stack, Queue, Binary tree, Hash table At least one application example combining data structure and algorithm should be given.

  • Please help this. Q. When is the right subtree of a binary tree processed before the...

    Please help this. Q. When is the right subtree of a binary tree processed before the left?                 When using an inorder traversal algorithm.                          When using a preorder traversal algorithm.                          When using a postorder traversal algorithm.                        Never. The left always goes before the right in the standard traversal algorithms. Q. In a postorder tree traversal, each node is processed ____ its children.                              instead of                            after                      before                  relative to the ordinal values of Q17. If you have an array of 4,000 sorted...

  • Question 23 Not yet graded /0 pts Given a Binary Search Tree that is populated with...

    Question 23 Not yet graded /0 pts Given a Binary Search Tree that is populated with numerical data, write an algorithm that will determine the sum, average, least and greatest of the values maintained in the tree. Express your algorithm in Java-like pseudodode. You may use any of the operations supported by the Binary Search Tree implementation used for Programming Project #5. Your solution must be developed at the application level. Your Answer For the next two questions you must...

  • ALGORITHM AND DATA STRUCTURES Question Question 1: Convert the following binary tree into a heap using...

    ALGORITHM AND DATA STRUCTURES Question Question 1: Convert the following binary tree into a heap using the Heapify algorithm. Draw the diagrams of the tree step by step after every alteration. Question 2: Show the heap that results when the items are inserted into the heap one by one, starting with one that is empty. 7, 3, 8, 1, 4, 20, 11, 33, 45, 23, 6 Question 3. Draw the 2-3-4 tree that results when values are inserted in the...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT