answersLogoWhite

0

It will be come a terminal node. Normally we call terminal nodes leaf nodes because a leaf has no branches other than its parent.

User Avatar

Wiki User

10y ago

What else can I help you with?

Continue Learning about Engineering

Can you insert an image in table header in HTML?

Yes, you can insert an image anywhere in the code. You just have to insert the img tag before the area you want to insert it.


How do you insert a command into a CSS file?

You cannot insert a command into CSS, you can make styles that happen in HTML.


What are the steps for inserting an image in notepad?

You can not insert an image in Notepad as it is a plain-text editor. If you would like to insert an image into a document, use Wordpad (the button is at Insert --> Image in Windows 7)


How do you insert logo image on signature from rediffmail?

You can download the image from rediff mail. Then can insert this image as image source.


C plus plus program to insert an element using binary tree?

The algorithm for inserting into a binary tree is fairly straightforward. Start by passing the element to the root node of the tree. If there is no root, the new element becomes the root and you're done. Whenever a node receives a new element, it compares the element's value with its own value. If the new element is lower in value, pass the element to the left node otherwise pass it to the right node. If there is no node in that position, the new element becomes that node. In this way, the node's themselves decide where new elements are placed. In order to achieve this you need a node that encapsulates some data. Typically the data is a template parameter but for the sake of simplicity let us assume the data is an unsigned integer. We'll also need pointers to the left and right nodes. We'll use the default constructor to initialise the data and pointers. we'll also need an insertion method. Thus our node class looks like this: class node { private: node* left; node* right; unsigned data; public: node(unsigned value): left(NULL), right(NULL), data(value) {} void insert(unsigned value); }; The insert method will be implemented as follows: void node::insert(unsigned value) { if (value<data) { if (left) left->insert(value); else left = new node(value); } else { if (right) right->insert(value); else right = new node(value); } } That's all there is to it. All you need now is a pointer to the root which will initially be NULL. When you come to insert a value and the root is NULL, create a new node and assign it to the root pointer, otherwise call root->insert(value); and let the tree sort itself out.

Related Questions

What is the definition of BIR?

*before insert row*bureau of internal revenue


How do you use a credit card terminal?

To use a credit card terminal, you insert or swipe your credit card, enter the payment amount, and follow the prompts on the screen to complete the transaction.


What is the likely effect of reducing the number of strands of a conductor if it is difficult to insert into a terminal?

Heat increased in Cable and possible fire


How do you use a wire terminal removal tool?

To use a wire terminal removal tool, you insert it into the connector housing until it latches onto the terminal you want to remove. Then, gently pull the tool and the terminal out of the connector housing. Be sure to follow the specific instructions that come with your particular removal tool for best results.


How do use condomes?

You insert it into your vagina, position the internal rings, and then have sex.Hopefully, the instructions should be on the box.


How can you strip and connect a cable terminal to a strip connector?

To strip a cable terminal, use wire strippers to remove insulation, exposing the wire. Then, insert the wire into the appropriate slot on the strip connector and use crimping tool to secure it in place. Finally, ensure a strong connection by testing the terminal with a multimeter.


Where to insert an element in binary tree if two nodes are equal in size?

Same as if two nodes are NOT equal in size. Size of nodes has nothing to do where to insert a new element. The insertion should be applying the search algorithm of that binary tree (so the new inserted element maybe found later). For balanced (in size) binary tree, the above still applied, because 50% of the time the tree is unbalanced (a binary tree with even number of elements is not balanced). Plus, those 2 nodes, may not be the "right" and "left" nodes of a given one, so 2 nodes equals in size has nothing to do with the way the elements being inserted into a binary tree.


Different operations done using rdbms?

different rdbms operations are delete,update easily and other u find on some other site. •Insert : unary operation •Delete : unary operation •Update : unary operation •Select : unary operation •Project : unary operation •Join : binary operation •Union : binary operation •Intersection : binary operation •Difference : binary operation


How do you insert large objects in your anaus?

To insert large objects into a database, you typically use a method known as "BLOB" (Binary Large Object) for storing binary data. This involves using SQL commands like INSERT with a parameterized query to handle the large data efficiently. Additionally, it's essential to ensure that your database has adequate storage capacity and configurations to manage large objects effectively. Always consider performance implications and potential data integrity issues when working with large objects.


Where do you insert your memory card on your hp?

If you mean to increase the internal memory - MOST laptops have a 'hatch' on the underside - secured by a small screw.


Does binary search tree take much time than the list to delete or insert an element?

No. Binary search tree will take less time to delete or insert an element. While deleting from list, more time will be required to search for the element to be deleted but BST will work faster if the no. of elements are more. Plus it depends upon which element is to be deleted and where the element is to be added. But the average time to perform these operations will be less in BST as compared to lists


How do you check if a mail server is running?

In a terminal, type "ps aux | grep [insert name of mail server]". If you see more than one process listed, the server is running. Otherwise, it is not.