Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use your own words Assignment Content Its time to demonstrate your skills and perform a Binary Search Tree Algorithm Visualization. For this assignment: Complete the

Use your own words

Assignment Content

  1. Its time to demonstrate your skills and perform a Binary Search Tree Algorithm Visualization. For this assignment:

    • Complete the Steps outlined for Part 1 and Part 2. You will complete Participation Activities, found in the course zyBook, and use a tree simulator. Take screen captures as indicated in the steps for Part 1 and Part 2. Access the BST Tree Simulator for this assignment.
    • In a Microsoft Word document, write a Reflection for Part 1 and Part 2. Include all required screen captures for Part 1 and Part 2 and responses to the prompts outlined in the Reflection sections. Label Part 1 and Part 2 of your reflection accordingly.
    • Submit your BST Tree Simulator Screenshots and Reflections for Part 1 and Part 2 as a single Microsoft Word document.

    Part 1

    You will validate 4.5.2, 4.5.3, and 4.5.4 Participation Activities in the tree simulator. You will submit screen captures of your trees and at the end of this part you will have 6 images in a single Microsoft Word document to submit. At the end of the document, answer the questions presented for you below.

    1. Click the Binary search tree visualization link. This will open in a separate window. Leave open.
    2. In the zyBooks course, return to 4.5: BST insert algorithm Participation Activity. If possible, place the two windows side-by-side for easier visualization.
    3. Enter the data you see in the 4.5.2 Participation Activity tree (20, 12, 23,11, 21, 30) by Inserting each node in the simulator. Reflect on what you see. Is it the same as the tree in zyBooks? If different, how?
    4. Validate 4.5.2 questions 1 4 again by using the simulator to check your answer. Screen capture and paste into a Microsoft Word document.
    5. Validate 4.5.3 questions 1 5 again, but this time use the simulator to check your answer. Screen capture each tree and paste it into a Microsoft Word document. You will have four trees for this section.
    6. Validate 4.5.4 questions 1 4 again, but this time use the simulator to check your answer. Screen capture each tree and paste it into Microsoft Word document.
    7. Reflect on your experience using the BST simulator by answering the questions at the bottom of your Microsoft Word document with this insert algorithm complexity in mind:

    • The BST insert algorithm traverses the tree from the root to a leaf node to find the insertion location. One node is visited per level. A BST with N nodes has at least log2N levels and at most N levels. Therefore, the runtime complexity of insertion is best case O(logN) and worst case O(N).

    • Reflect on how you observed this behavior in the simulator. You can reference a specific participation activity in your response. If you use research in your answer, be sure to cite your sources.

    Part 2

    You will validate the 4.6.1, 4.6.2, and 4.6.3 Participation Activities in the tree simulator. You will submit screen captures of your trees, and at the end of this part, you will have 6 images in a single Microsoft Word document to submit. At the end of the document, answer the questions presented for you below.

    1. In the zyBooks course, return to 4.6: BST remove algorithm Participation Activity. If possible, place the two windows side-by-side for easier visualization.
    2. Enter the data you see in the 4.6.1 Participation Activity tree (19, 14, 25) by inserting each node in the simulator. Remove the leaf and reflect on what you see. Is it the same as the tree in the zyBooks simulation? If different, how?
    3. Enter the data you see in the 4.6.1 Participation Activity tree (19, 14, 25, 30) by inserting each node in the simulator. Remove the designated leaf and reflect on what you see. Is it the same as the tree in the zyBooks simulation? If different, how?
    4. Enter the data you see in the 4.6.2 Participation Activity tree (19, 14, 21, 25, 27, 30, 68) by inserting each node in the simulator. Remove the designated leaf and reflect on what you see. Is it the same as the tree in the zyBooks simulation? If different, how?
    5. Answer 4.6.3 questions 1 3 again, but this time use the simulator to validate your answer. Screen capture each tree and paste into a Microsoft Word document. You will have three trees for this section.
    6. Reflect on your experience using the BST simulator by answering the questions at the bottom of your Microsoft Word document, with this remove algorithm complexity in mind:

    • The BST remove algorithm traverses the tree from the root to find the node to remove. When the node being removed has 2 children, the node's successor is found and a recursive call is made. One node is visited per level, and in the worst-case scenario, the tree is traversed twice from the root to a leaf. A BST with N nodes has at least log2N levels and at most N levels. Therefore, the runtime complexity of removal is best case O(logN) and worst case O(N). Two pointers are used to traverse the tree during removal. When the node being removed has 2 children, a third pointer and a copy of one node's data are also used, and one recursive call is made. Thus, the space complexity of removal is always O(1)."

    • Reflect on how you observed this behavior in the simulator. You can reference a specific participation activity in your response. If you use research in your answer, be sure to cite your sources.

    Submit your two-part assignment.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Fred R. McFadden, Jeffrey Slater, Mary B. Prescott

5th Edition

0805360549, 978-0805360547

More Books

Students also viewed these Databases questions

Question

Define promotion.

Answered: 1 week ago

Question

Write a note on transfer policy.

Answered: 1 week ago

Question

Discuss about training and development in India?

Answered: 1 week ago

Question

Explain the various techniques of training and development.

Answered: 1 week ago

Question

b. Where did they come from?

Answered: 1 week ago

Question

c. What were the reasons for their move? Did they come voluntarily?

Answered: 1 week ago

Question

5. How do economic situations affect intergroup relations?

Answered: 1 week ago