Our Services

Get 15% Discount on your First Order

[rank_math_breadcrumb]

I have attached the file below!! Question 1 (25 pts): Figure 1 An AVL tree 1: Redraw the tree after insert 43 in the AVL tree of Figure 1. The resulting tree must be an AVL tree. 2: What is the

I have attached the file below!!

Question 1 (25 pts):  

Figure 1 An AVL tree 

1: Redraw the tree after insert 43 in the AVL tree of Figure 1. The resulting tree must be an AVL tree.

2: What is the balance factor at the root node after the insertion? 

Question 2 (25 pts):  

Figure 2 A B-Tree of order 5 

Using the B-tree in Figure 2,

(a)     Redraw the tree after inserting 74.

(b)     Redraw the tree after inserting 33 to the tree in (a).

(c)     Redraw the tree after inserting 56 to the tree in (b).

Question 3 (25 pts):  

Figure 3 Another B-Tree of order 5 

Using the B-tree in Figure 3;

(a)     Redraw the tree after deleting 22.

(b)     Redraw the tree after deleting 16 from the tree in (a).

(c)     Redraw the tree after deleting 4 from the tree in (b).

Question 4 (25 pts):  

Rewrite function searchNode(copied below) in B-tree class(bTree.h) by using binary search to search the node. Write a C++ code to ask user to enter a positive integer list ending with -999, build a b-tree of order 5. Also, ask the user to enter a number to search and display if the number is found in the tree.

Submit the source code, and copy and paste the screenshot of the output here.

template <class recType, int bTreeOrder> 

void bTree<recType, bTreeOrder>::searchNode 

(bTreeNode<recType, bTreeOrder>* current, 

const recType& item, 

bool& found, int& location) 

found = false; 

int low = 0; 

int high = current->recCount – 1; 

while (low <= high) { 

                              int mid = (high – low) / 2; 

if (item == current->list[mid]) 

{               

found == true; 

location = mid; 

else if (item < current->list[mid]) 

high = mid – 1; 

else 

low = mid + 1; 

}               

Share This Post

Email
WhatsApp
Facebook
Twitter
LinkedIn
Pinterest
Reddit

Order a Similar Paper and get 15% Discount on your First Order

Related Questions

In this reflective activity, you will reflect on the critical aspects of managing systems projects and enhancing cybersecurity within the operations phase of the SDLC.For this Reflection activity, res

In this reflective activity, you will reflect on the critical aspects of managing systems projects and enhancing cybersecurity within the operations phase of the SDLC. For this Reflection activity, research and answer the following questions: What role does risk assessment play in cybersecurity planning? How can a security-first mindset be

Imagine that you are the director of health information for a large hospital. As director, you sit on various institution-wide committees that govern organizational procedures. In collaboration with i

Imagine that you are the director of health information for a large hospital. As director, you sit on various institution-wide committees that govern organizational procedures. In collaboration with interdepartmental committees, you have been asked to write a blog post explaining blockchain in healthcare to non-technical stakeholders within the organization. Your

A critical security patch has just been developed to address a significant vulnerability in your product. Usually, your team conducts thorough regression testing on updates to ensure they do not intro

A critical security patch has just been developed to address a significant vulnerability in your product. Usually, your team conducts thorough regression testing on updates to ensure they do not introduce new bugs or issues. However, due to pressures to meet tight deployment deadlines, your manager instructs you to skip

In this chapter you learned about quality assurance in system maintenance and support. This exercise helps to deepen your understanding of quality assurance practices during system maintenance and sup

In this chapter you learned about quality assurance in system maintenance and support. This exercise helps to deepen your understanding of quality assurance practices during system maintenance and support. Instructions: Answer the following questions: Why is the Maintenance and Support phase crucial for IT systems? How can effective documentation enhance

Instructions Imagine that you are the director of health information for a large hospital. As director, you will create a chronological timeline of federal initiatives that have progressed health info

Instructions Imagine that you are the director of health information for a large hospital. As director, you will create a chronological timeline of federal initiatives that have progressed health information exchange in the United States. The timeline should include the following information: Select at least 8 federal initiatives that have

In this chapter you learned about managing system implementation. This exercise helps to deepen your understanding of the critical aspects of managing system implementation and ensuring quality throug

In this chapter you learned about managing system implementation. This exercise helps to deepen your understanding of the critical aspects of managing system implementation and ensuring quality throughout the process. Instructions: Answer the following questions: Why is quality assurance crucial during system implementation? How can effective documentation enhance the implementation

In this chapter you learned about the Implementation Phase in the SDLC. This exercise deepens the understanding of the Implementation Phase in the SDLC. Instructions: Research: Conduct research on the

In this chapter you learned about the Implementation Phase in the SDLC. This exercise deepens the understanding of the Implementation Phase in the SDLC. Instructions: Research: Conduct research on the Implementation Phase. Explore its purpose, key activities, and significance within the SDLC. Create a Summary: Write a concise summary of

The Impact Of Technology On OrganizationsWk 8 – Summative Assessment: Technology-Management Plan Imagine this scenario: You are a technology development consultant for a large service organization. Ex

The Impact Of Technology On OrganizationsWk 8 – Summative Assessment: Technology-Management Plan Imagine this scenario: You are a technology development consultant for a large service organization. Executive leadership has given you the responsibility of developing a technology-management plan. Write a 1,400- to 1,750-word paper in which you evaluate the management

Review the journal article Employees Adherence to Information Security Policies, link is https://cdn.inst-fs-iad-prod.inscloudgate.net/ec5f46b2-1b12-45f2-915b-5f6549eafab9/Employees’%20adherence%20to%

Review the journal article Employees Adherence to Information Security Policies, link is https://cdn.inst-fs-iad-prod.inscloudgate.net/ec5f46b2-1b12-45f2-915b-5f6549eafab9/Employees’%20adherence%20to%20information%20security%20policies%2C%20An%20exploratory%20field%20study.pdf?token=eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCIsImtpZCI6ImNkbiJ9.eyJyZXNvdXJjZSI6Ii9lYzVmNDZiMi0xYjEyLTQ1ZjItOTE1Yi01ZjY1NDllYWZhYjkvRW1wbG95ZWVzJUUyJTgwJTk5JTIwYWRoZXJlbmNlJTIwdG8lMjBpbmZvcm1hdGlvbiUyMHNlY3VyaXR5JTIwcG9saWNpZXMlMkMlMjBBbiUyMGV4cGxvcmF0b3J5JTIwZmllbGQlMjBzdHVkeS5wZGYiLCJ0ZW5hbnQiOiJjYW52YXMiLCJ1c2VyX2lkIjoiMTA2ODUwMDAwMDAwMDQzMzcwIiwiaWF0IjoxNzYzNTQ4NDcxLCJleHAiOjE3NjM2MzQ4NzF9.N2vrrvQr2t-MEPVDw54kLc_ZoekbOAfWUj5-WoCgT_ds070e01CRec1N_arz8LZJppTgz5rKQA9GNAcZWaQ2OQ&download=1&content_type=application%2Fpdf The essay should reflect your understanding of your textbook readings and the journal article. You are free to use any other relevant references beyond the prescribed texts. Summarize the article’s main points, and answer the following questions. What

In this chapter you learned about system architecture. This exercise helps to deepen the understanding of system architecture concepts and the process of translating logical designs into physical blue

In this chapter you learned about system architecture. This exercise helps to deepen the understanding of system architecture concepts and the process of translating logical designs into physical blueprints for information systems. Instructions: Answer the following questions: Describe the steps involved in translating a logical design into a physical blueprint

Tip Top Toys is a relatively small division of Worldwide Enterprises. Worldwide has nine other divisions, which include insurance, healthcare products, and financial planning services, to name a few.

Tip Top Toys is a relatively small division of Worldwide Enterprises. Worldwide has nine other divisions, which include insurance, healthcare products, and financial planning services, to name a few. The corporate marketing director for Worldwide has requested Tip Top’s customer shopping data to target people who might be likely to

Review the journal article, What We Talk About When We Talk About “Reasonable Cybersecurity”, by Kevin L. Miller. The essay should reflect your understanding of your textbook readings and the journal

Review the journal article, What We Talk About When We Talk About “Reasonable Cybersecurity”, by Kevin L. Miller. The essay should reflect your understanding of your textbook readings and the journal article. You are free to use any other relevant references beyond the prescribed texts. Summarize the article’s main points, and

Discuss the importance of user interfaces in technology and the principles of HCI. Objective: In this chapter you learned about the principles and best practices of designing user interfaces and sourc

Discuss the importance of user interfaces in technology and the principles of HCI. Objective: In this chapter you learned about the principles and best practices of designing user interfaces and source documents/forms. Instructions:  Choose a specific topic related to user interfaces and HCI (e.g., the importance of user research, the role