QuestionQuestion

Transcribed TextTranscribed Text

1. For the given numbers 8, 3, 18, 6, 2,20,15,14, use the approach in BinaryTreeTest java to create a binary search tree. 8 is in the root. Each node must be greater than any number in its left sub-tree and less than its right sub-tree. Draw the final status of the tree. The requirement is: when you add a new node, do not change the current binary tree (The final binary is unique). 2. Remove node 4 in the given binary, draw the updated binary tree. Continue to remove node 3, draw the updated binary tree. Continue to remove node 12, draw the updated binary tree. Continue to remove node 7, draw the updated binary tree. 7 5 12 3 6 9 15 1 4 3 10 13 17 3. What are the degrees of each vertex of the undirected graph? 5 2 1 3 4 4. (1)What is the Adjacency Matrix of the graph in question 3? (You can use semicolon to separate lines for a matrix, such that [0110;1001;1100; 1110] represent a 4 by 4 matrix.) (2) What are the Adjacency Lists of the graph in question 3? (You can represent a list like this: 0->1->4->2->5) 5. (1) What is the letter sequence derived by Depth First Search starting from A in the undirected graph below? (2) What is the letter sequence derived by Breadth First Search starting from A in the same undirected graph below? A B C E D F G

Solution PreviewSolution Preview

These solutions may offer step-by-step problem-solving explanations or good writing examples that include modern styles of formatting and construction of bibliographies out of text citations and references. Students may use these solutions for personal skill-building and practice. Unethical use is strictly forbidden.

    By purchasing this solution you'll be able to access the following files:
    Solution.docx.

    $30.00
    for this solution

    PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

    Find A Tutor

    View available Data Structures and Algorithms Tutors

    Get College Homework Help.

    Are you sure you don't want to upload any files?

    Fast tutor response requires as much info as possible.

    Decision:
    Upload a file
    Continue without uploading

    SUBMIT YOUR HOMEWORK
    We couldn't find that subject.
    Please select the best match from the list below.

    We'll send you an email right away. If it's not in your inbox, check your spam folder.

    • 1
    • 2
    • 3
    Live Chats