So, let us start. So, in the previous lecture, we started discussion on the data structures that are specialized for the secondary storage and we have started the first data structure that is called as the M-Way search tree. so we have also seen this is you can say an extent an extension of bht okay where in bht only two ways are allowed left left node and right node but here m ways are allowed so and at each node there will be a set of keys okay rather than a single key as we have witnessed in bht a set of keys and there is a two possibility of the movement in BST. Now here we have m possibility of movement. And one important thing is that if there are m child of a node, then the node could had at most m minus 1 keys. So, and this is done to maintain the height close to log of n. this if it will be log of n now then we have seen number of properties associated with it so one property already we have discussed there are m maximum m child node could be so four so it let's say if it is four way five way six way two way is a bst okay two way means the two possible child's left and right so it is b then then uh next property was the key are arranged okay so first property is that there are m child's and number of key will be m minus one the keys are arranged in ascending order next thing we have also witnessed that a node in m is formed by combining multiple nodes in BST and in that combination, we will ensure that the left of key will be less than key and right of key will be greater than key, but it is less than the next key. So in that way, we have seen this ambitry key. For example, 18 is the key. So here we find the node 7, 12, 18, all are less than 18. And if we have any node here, so like 19 and 14 I have written, so 41, so that is greater than 18, but less than 44. So this property is followed to make a mv3. Now, then we have started discussion on how to go for searching in mv3 so primarily what will happen we will start with the root okay and and then since the nodes are sorted then we can apply binary search tree and check out where is the possibility and then we will drop down to the next label to the next label and so on so searching you can say it could be an extended version of binary search tree where on each node we have to do a search. Then we have the insertion. So insertion or deletion in any tree is what we have to first search whether that element is available or not because we know that MVA tree is following the property of BST that says there should not be any duplicate element in the memory. So we have attempted the insertion of two, three nodes and I hope you people had understand it. Okay, so this is you can say a generic criterion such that key to be inserted as duplicate entries are not allowed. Then if we reach to a node where key could be inserted and have a label space, this is important because we know that the maximum number of key could be m minus one and maximum child could be m so if let's say a node is having the maximum key and we have reached to a conclusion that there is no further nodes drop down and also the the specific key that we want to insert is not available then we will create a new node with that value and that is on the appropriate downward location okay if node is already having max key that is the case then make new node with one key and two null pointer that is the strategy that we have adopted okay then we were talking about the deletion so in deletion there are four possibility one is that we are removing the node from the leaf that is not having any child no left child no right child so simply remove it there is no second case is that if there is a left child and there is no right child so what we will do we will pick the highest element from the left child and replace the node if there is only right child then we will pick a smallest element from the right and replace the root okay so taking highest from the left or taking lowest from the right will ensure the property of the m-way tree holds okay because it is a you can say extension of vht where we are saying left is less than root which is further less than right then now there is one case that is case number four so you can adopt either left or either right if both are available so you can use either case two or case three that is totally up to your choice so we have done some examples. But still the doubts are there. So, I have just come up with a very simple examples. We will solve it here and then we will proceed for the next tree that is called as the B tree or you can say balance M way pre. So, here is an example. We have four way. 4 way means that maximum key could be 3 and child could be 4. Now what I say delete 10. So first go to the root 20 say 10 could be placed on my left. So here we go. So here we identified that we have to remove 10. But what we see there is no left child, no right child. And what was the situation? If there is no left child, no right child, we have simply remove the node. So what will happen? The resultant tree will be 20, 40, 60, 5, 15, 25, 30, 45, 50 and here we have 70, 80 and 90. So just we have because the node was not having any child, we have simply removed it. So, the tree is not drawn correctly. Now, let us see another example. Now, here we want to remove node 40. And what it says? Consider the following 4-way tree. Again, 4-way means that key could be maximum 3 and child could be maximum 4. Now someone says, the question says we have to remove 14. Now if you see there are left child as well as right child. So this becomes the case of case number 4 where we can pick the node from either left or either right that is totally up to u. So let us consider the case of picking the element from the left. So from the left, what we have to pick from the left, we have to pick the highest element. We have to pick the highest element or we can say that we have to pick the in order predecessor or simplicity you can say in order. So the resultant tree will be 20 and what is the in order predecessor of the highest element 30, 70. Here one element will remain 25, 30 is gone up 50, 60, 80 and 90. Now if I say remove left or right one or take element from the right one, in this case we have to pick lowest element or if you are confused then we can say that in order success in order successor we have to pick so in that case the resultant tree will be 20 in order successor is 50 70 and here we have 5 and 10 and we this node will remain intact because now we have picked the So, we can either go with the left or right pick up that is totally up to your choice. So, if you are confused, what is the lowest element or what is the highest element that we were also facing in the last lecture. So, simply pick it in order predecessor or in order successor. Now, the fourth way, so we have to remove, so from this node, if I want to remove 30 or from this node if i want to remove 30 sorry 25 so it is easy to go and what it is saying consider the four-way search to delete the key 25 and show the resulting tree with all the steps okay now if in this tree i want to remove 25 so first i will go to 30 then i will say you can be on my left then i will go here and what we find we find no no key is having value of 25 thus deletion unsuccessful okay so first we have to search then only we can remove now in this in this node if i want to remove let's say 60 or 30 so you can go okay so let's say if i want to remove 70 so because it is in the leaf node so one once i delete 70 so what will happen 30 60 10 20 just a minute 10 20 40 50 and 70 will simply remove because it is in the leaf node now seeing the next example so delete 60. now we have to delete 16 and what is the case for the 60s orbiter so again key could be maximum key could be 3 and maximum key could be 3 and maximum child could be what 14 4 okay now we have to remove 60 then what will happen we will first go to 40 40 say 60 could be on my left and here what we can witness that root is having only one node and 2 child. So here maximum is 4 but minimum could be 2 or minimum could be 0 child. Now since 60 does not had any right child so there is only one option. So 50 will be first removed and it will replace 60. So resultant tree will be 40, 20, 30 and here now we will have a node that is having 50, 80 and this is wrong. Here one is 70 and another node will be 90. I hope you can understand why it is wrong. So now 60 is having both the nodes 50 and 70 anything we can pick. So we have picked 50, here we will have 70 and another node that is 90. Now coming on to the, now we have to remove node 50. So simply remove it, no worries at all, now so next example here if we want to remove 20, so just this is a practice kind of thing. So you can pick either 10 or 25 that is totally up to you. Let us say I pick 25, so resultant tree will be what? 50, 20, 30, 70, 5, 10, 60, 80 and 90. So, this will be the, okay, so this will be the resultant. Now, I hope you people understand the basics, very basic example I have put for the deletions. Okay, now we will discuss one of the, you can say problem or interesting aspects of this m-way tree. So, if let us say we are having some m-way tree and we are keep on inserting, okay, on the right most, on the right most, on the right most, let us say this is full, this is full, this is full and element is coming, so we are picking. So, what will happen because we say that the height maintains should be log of order n And what this is in again the same problem that we were witnessing in the BST can also be the problem in MV3 that is skewness in right or left. Skewness in right or left that we may witness. So now when the height in one direction either in left or right increase rapidly, then the making the height of log of n case will also violate. So, this skewness this skewness makes the tree unbalanced, makes the tree unbalanced or we can say that the MV tree could be unbalanced and the MV tree could be unbalanced when repeated larger or even in this direction also or a smaller indexes, smaller keys are required. So, this larger or smaller keys are required. So, it unbalance, it unbalances the tree. So, now a question arises, though we have seen the benefit of MVA tree, if this was help in managing our secondary storage, but if this could be the situation, because in real world scenario, this could be a possibility, then what will happen then, then our claim of doing insertion, deletion, searching in log of n time will vanished and that violates the mway tree property. If this violation is as similar as what we have witnessed in case of BST. Now, so to cover up these things, the next tree is introduced that is called as the B tree or in short it is nothing but this is balanced m way search tree. So this is called as the balanced m way search tree. Now this will do certain strategies. This will do certain strategies so that this unbalanced thing is removed and second one or with the property we will ensure that we have to maintain certain property to balance the movement of the node in other direction okay or in in one direction specifically now now we will see the property of the b tree and how it differentiates one more interesting thing that all the tree we have seen in bst avl tree completely they were growing like this one okay that is opposite to what we are witnessing uh in our surrounding okay they were growing downwards but now b tree will grow upwards like actual tree it will grow up when we insert the node insert the node then it will grow upward okay or we can witness that if some node is full so we will not go down we will go up by merging the we will go up by selecting certain element that should be placed at a specific node in the upward direction. So you can say the structure of the B tree will be grown in the upward direction. Now, if you see here, M-way search tree has advantage of minimizing file access due to their restricted height. That is the good way. That is why it is used in secondary storage. Now, just give me a moment. So, but what the problem we have seen. However, it is essential that height of the tree be kept as low as possible. Okay. Therefore, there arises the need to maintain the balanced M-way tree. Such balanced M-way tree is what we define as B-tree. This is nothing but it is a balanced M-way tree. Now, there are some property that we have to fulfill. So, apart from what the property M-way tree was holding that that is maintained and we have to maintain additional properties. Okay. So first one, the root, the root is the first node has at least two child node and at the most M child node. So at the most M is clear, maximum M number of child is possible, but it is also saying we can have a root node that is having only one key and two child. Okay. So root is allowed to have two child, three child, four child, five child, whatever the order of the tree, but minimum number of child in the root is allowed to have 2. The second one that is important, the internal node means that except the root node, the at least this much child, m is the maximum, so the child, so for example, if the tree is 5, so what we have to take 5 by 2 ceilings, So what will be the value? 3. So 3 to 5 childs are allowed. So it does not mean that we can have a node that is having 2 child. That the node having 2 child is only allowed for root. So there is a minimum cap. That is very much important. This property is very crucial to maintain while performing the insertion and deletion. The third one. The number of key in each internal node is 1 less than the number of child nodes. That already we know. And fourth, that is very much important. All the leaf nodes should be at the same label. That is why the tree grow in upward direction, because we cannot insert a node in the leaf. Because it should be placed in the, all the leaves should be placed at the same level. So just see this property, we will join in 5 minutes. We will resume in 5 minutes, just taking a short break. So let us see. So these properties we have witnessed, first was the root is allowed to have 2 child, other nodes should have ceiling of m by 2, 2 m child, leaves should be placed at same label and all the internal nodes, same property will be arranged in the ascending order and whatever the property we have witnessed in the m way tree. So now, this B tree is also referred as 2, 3, T. For example, if there is a three-way tree, so that is also called as a 2, 3. 2 is for the key and 3 is for the child. So, if there is a three-way tree, if I say there is a three-way tree, then what we can say? Two keys and three child. So, it is also named as 2, 3 key. If there is a 5-way tree, so it is called as the 4-5 tree because 4 key and 5 child. So, let us see one example here that is having, that is a 5-way tree. That is a 5-way tree. Now, first property was root may have 2 child. So, if you see here 48 and 2 child are the property one fulfilled. Second says all the node except root node can have minimum m by 2 and maximum m child. So, m by 2 means what? This is 5 way. So, what we can say 5 by 2 that is 2.5 but we have to take the ceiling value. So, we will take 3 to 5. So, this is the, so a node could have minimum 3 and maximum 5 child. So, let us check. So, this is having 1, 2, 3 done. Then 56, this is having 4 child done. This node is having 4 child done. This node is having 4 child. This node is having 3 child. This node is having 4. This node is having 3. This node is having 3 and this node is having 1, 2, 3, 4, 5. 1, 2, 3, 4, 5 child. So what did it say? All the node except the root node is having node count, having the child count from 3 to 5. This is important. We cannot have a node that is having lower than the 3 child except root node. Then fourth property says the number of element in each node will be one less than the child. So that is same m minus 1 and m. Okay. And all the other property, the left is less than key and write is greater than the key but less than next key this property will always hold okay now uh one thing that the property i was discussing the element i will take a slide and add that that is an important point okay while doing the bt or mv3 although you people understand it okay so the element is stored to the left of any key key is the key element in the node so to be to be less than the key k, okay. And the element stored in the right should be greater than k. However, these are less than the next key. This should be less than the next key. That is important. So the element that the element is stored on the left of any key should be less than the key and element stored in the right should be greater than key. That is same property of BST. However, these are, however, these means the key in the right. Okay. Key in the right. Key in the right of the key, the selected key are less than the next key. Okay. So that this is important property already we have witnessed. Now let us see this example of b. So one property was the root can have minimum 2 child and other node could have ceiling of m by 2 to m that is 3 to 5 child. This property is fulfilled. Second one is the number of keys stood on the node should be 1 less than the number of child it is pointing. That is also true here. We will never witness a node that is having the more than m minus 1 keys. The fourth property says all the leaf should be at same level. So this is label 0, this is label 1 and this is label 2. So if you have witnessed all the last node, leaf node means that the node that is not having any further child, that is all the null pointers are stored. So all the leaves are stored at the same level. So, importantingly the property number 2 and property number 4 we have to always maintain while doing insertion and deletion. This property will occasionally violate when we will perform insertion and deletion. Now if you talk about traversal or you can you talk about search. So what basically we will do? b tree and mv tree if a structure is there we will not going to change the configuration or structure of the tree so simply just search just search like what we have do in the mv tree or what we have did in the binary search tree only condition is that in in in resemblance with the binary search tree that on each node now we have a sorted key as well okay now so insertion and and traversal is as similar as BST, mway tree and others. But insertion and deletion will change the structure of the tree. And therefore, after insertion, we have to maintain the properties. Likewise in AVL tree, we were doing the rotations, but here we will have a certain set of rules that we have to adopt. So with example, we will see. So I will share this PPD then read it out what it is written. But with example, we will see how the things are performed, okay. So first, we have this node 8, 96, 116, this one and now first check whether it is a B tree or not. So here it is one thing, if no information is given, then identify any node with the maximum child. So what we found 1, 2, 3, 4, 5. So this tree is a 5 way. That is clear. Now, root may have 2 child, so here have 1, 2, 3, 4. So maximum allowed child is 5 and minimum for root is 2, for root minimum is 2 and for other node minimum is now again 3, 5 by 2 ceiling. all the leaf at same level, fine. The node having number of key 1 less than the number of check that is also true. So what happened now? This is a B tree that is clear. Now if we want to insert 4. So just give me a moment. I will draw it and one by one I will insert. So, I will draw and one by one we will insert that we will see what are the challenges because there are some challenges as well that we will encounter. So we were having the node 8, 96, 116 and this was in a box and here this is the address pointer to the lower node this one points to 27 that is having further no node in the last second one is here that is pointing to 37 46 55 88 okay then next node is here that is having 104 1110 that is having three child pointers with null and the last one is 137 114 5 with now all the nodes are now what we want we want to insert 4 first okay what we want insert. So, 4 will go to 8. 8 say though we have space to accommodate you because we are 5 by 3. So, number of key could be 4 but there are some child in my left. So, just check it out. So, we go down and what we find that we are having 2 and 7. So, now 2 say you could be placed on my right. 7 say you could be placed on my left and there is no further key downward and we have a space because we can be 4 so i will accommodate you so what will happen after this 4 will be inserted so and it will be inserted on an appropriate place means that it will be added in a sorted order so what will happen the resultant will be 8 96 116 so this i am not drawing just drawing this one so we will have a node that is now having three need four two four seven and of course all are the null point so if you see and others will remain same so if you see there is the property of the b tree that is all the leaves should be at same label is restored or maintained okay without going downwards now if we want to insert five so again it will go to eight 8 say go to my left and these nodes says okay we have a space we can accommodate you and there is no further node downward so 5 will not be available so what will be the resultant so it will again 8 96 116 and here we have a node that will hold 2 4 5 and always the entry will be made in a sorted order okay so it is not there will not be any violation and if you see all the nodes are intact. So, leaf are at same level, the key could be m minus 1, child could be m, this property is holding. So, here we have now 5 child and we cannot accommodate more node now, because it is now full. Now, in the same node, so I will draw another tree and then start the instruction. In the same tree means that after inserting 5, let us see how the tree looks like okay so this is the resultant tree and we can see that four five are successfully inserted without doing any structural change in the tree okay so this is also holding the this is having this is having okay now uh up till here all the property of the b tree are holding now if we want to insert next node that is 58 that is a crucial case so just see we want to insert 58 so where 58 will go this property is very much important okay and you can see critical one 58 so it will say you could be accommodated on my right 96 say you could be accommodated on my left. So, search goes here. Now, here 37, 45, 55, 86 will say yes. There is no 58 because there is no note downwards. So, we could accommodate you but we are already full. So, what will happen? Temporarily 58 will be placed here because it is violation. So, then we will see how the things are happening. Now, what will happen? 37, 46, 55, 86. So, here we will have a temporary arrangement of 58. Now, because it is full, it is clear violation of B tree property, then the median element, the median element will from this node will pop up and go in the upper part okay and then we will have two child 37 and 46 and 58 and 86 so what will happen just see the logic here so 37 46 and 58 86 now we have these two nodes and 55 will pop up because 55 is the median element. So, what we are seeing when the node is full, new node is not created downward, but it is creating upward. So, tree grow in the upward direction and where 55 will be placed? 55 will be placed just before 96. So, this is the property when a node is full and we have to surely insert a new key, then we will pop up the median one. We will pop up the median one. So, the resultant tree for this one will be what? 8, 58, 96, 160, 8 node will be same 2, 4 and other. Here we will have, sorry 55 will be pop up, not 8. 55 will be pop up and here on the left we will have 37 and 46 and on the right we will have 58 and 86 and other things will remain same. So what we found that all the nodes are staying at the same label, but one extra node has been pushed into the top node. And that node is median element and it will place on its appropriate position and keys are distributed like this one. So if you see here, after inserting 58, the resultant tree is what? 55 is here, two nodes on here and one node is on here and all the nodes are at same level all the nodes are at same level now if we want to do a insertion of 6 okay after this after inserting 6 I will take your queries as well so let me draw the tree and then we will understand how 6 insertion is happening. So after inserting 55, the resultant tree is 8, 55, 96, 160. Here we have 2, 4, 5. So this is the resultant tree after doing the insertion of 55, where 58, where 55 was pop up and we have obtained two childs this is here 37 and 46 are then we have 58 and 86 then we have 104 and we have okay now now we want to insert we am not drawing the child node So, just 5 nodes are we have to insert 6. So, it will say you can go to my left. So, these node 2, 4, 5, 6 say, we can accommodate you but we are full. So, we cannot accommodate you. So, we will find the median pop-up thing. So, what will happen? 2, 4, 5, 6, 7 will be added here. Then what will be the thing? 2, 4, 5, 6 and 7. So, there is a clear modulation. So, what will happen? The median element of this one is 5 will be pop up. So, 5 will be there and there will be 2 and 4 and here we will have 6 and 7. Now, this 5 will pop up to the upper node. So, what will happen? This is already having the maximum one. So, 5, 8, 55, 96, 106. Again, Again, this is a temporary arrangement. So from here, there will be another node pop up that is 55, 55 will go up. And if you see the resultant, so 55 is here, 5, 8 are here, 2, 4 are here, 6, 7 are here, 37 and 46 are here. So this is how the popping of operations. So what will basically happen? 6 will be accommodated here, 5 will go up. When 5 comes, then the node will be instabilized because we are having the maximum number of limit already, then 55 will be pop up and that will be the result ended. So, this is a two way insertion and here we see now the tree height is increased from 1, increase by 1 because 55 and we know that the root is allowed to have minimum 2 child, not other nodes. And here we can witness that 55 has been pop up. So, we will do another example, let me take some queries, hopefully there are, then we will see how others are inserted so this is the resultant tree when we are inserting six okay yes given to provide access to those who are yeah you can ask your doubt yes sir good morning i want to i wanted to ask like how are we taking the median like is it taking the higher ceiling like we are taking the higher ceiling median so median is nothing just just do n by 2 yes so uh what will like in in case of even uh you can choose uh n by 2 plus 1 and for odd you can do n by 2. means that uh whatever the median formula basic formula we have studied now for even this was and for odd one this was the formula i guess median formula because already the list is sorted so we need not to bother about just pick the median element so that will be pop-up okay no from that row like 37 so this is for even and this is for odd and we have to take the interval okay now fine i will go to your question okay thank you no no so just see the question what you are asking 37 yes here or Yes, this one. Your doubt is clear, Hrithika? Yes, yes, sir. Okay, thank you. Yes, Mubal. I think I admitted you. Hi, sir. Good morning. Sir, the question is, if you go to the question itself, so what kind of tree is it? Is it, I'm thinking it's four-way tree, am I right? This is five-way tree. initially i have told when he's starting this is a five-way tree because maximum child were one two three four five initially it is a five-way so it will remain five-way okay okay so that's how got it so that means i could accommodate at max four elements in the room yes yes yes got it yes yes look and you can ask it out good morning so actually my question is like that amatory right m is always fixed the reason is so why is that see if you we have indexes for database right if there is huge data and we want to keep the depth minimal can we change the aim or we have to keep always m fixed so initially let's say while creation we have to fix that the m is let's say 10 20 30 100 whatever will be and we are witnessing that now accordingly the height and everything are changed as per our requirement so that dynamics we have but initially we have to fix key what weight we are targeting depending upon the our requirement so this is not fixed i will use five four you can use hundred thousand whatever but if you use once so that logical arrangement will remain intact unless you change the entire arrangement okay okay thank you yes you can ask your doubt hello good morning sir good morning yes uh is it let's say wait wait sir a tree prepare for the process so b3 B3 5A, B3. 5A, B3. Target is 5. Everyone will understand the concept. Empties. So, elements? element 10, 20, 10, 20, 25, 25, 50, 50, 75, 25, 100, 100, 110, 110, and 120, 120, 5 battery I have to form from this. Okay. So I will start. So 5 battery means that maximum number of element on the root node could be what 4. So 10, then 20, then 25, then 50 will be accommodated on the root itself. Now 75 will come. So because the elements are already sorted, so it will go here. But we know that we have to put all the leaf at the same level. So we will try to accommodate 75 here, but it will violate the Bt property. So median element will be pop up. So what will happen? 25 and we will have two node that is 10 and 20 and this node will have 50 and 75. Now comes 100. So 100 will go to 25. 25 says you can go to my left and 100 could be easily accommodated here because this is a 5 battery. So allowed keys are 4. Then 110 comes that will be also accommodated here. Then 120 comes. So 120 could be accommodated here, but this is the violation of the B tree property. So the median element 100 will be pop up and the resultant tree will be 25, 100. And here the node is 10 and 20. And here on the left of 100, we have 50 and 75. On the right, we will have 110 and 120. Okay. I hope you don't doubt. So, this is how we are maintaining the property of the bee tree as well as we are maintaining that all the leaves should be placed at same level. Clear? Okay, sir. Yes, Laleed, you can go next. Good morning, sir. Sir, when we inserted six in the previous slide, so this the tree structure got changed drastically right like it's a height got increased and so first first five is pop up here so if five come here then what will happen this this node will again imbalance because five is not allowed so again median element will go up so that is the two two times this is happening okay so so that that i understood so my question is uh so based on the insertion the complexity will get increased what at what point we are inserting or it will be same so it is that if the node could be directly inserted when the place is available so fine so order of one because we have searched and added it but when this type of pop-up operations are of course that will increase the computational complexity but if let's say we have to insert hundred elements so if two or three element insertion required this kind of arrangement and others are not requiring so overall we can say that is near to order of one okay thank you if we do a single insertion of course it is more complicated but for a large number of element where few these kind of things are needed then that that is that is yeah got it thank you then you can go next hello sir good morning good morning sir um i know like aimway search tree can store multiple keys in each node that we understood and which reduces the tree height as well which is good yeah now unlike a b tree it doesn't necessarily guarantee some balance okay now if you're designing a database index say for a millions of records so how can we usually determine the optimal value for the m while balancing the tree height or input output operation whatever we may say okay so we have to keep the height like was log of n okay so tree height is we are saying if you see in inventory we have exposed one formula just let me show you so from there you can identify m yeah yeah here it is so height should be log of m n plus one so n you know height what you want so accordingly you can determine the value of m by doing the you can say exponential so it will be what um e to the power h if you multiply log both side or take e to the power something then we get a value of m whatever the value m comes that we will put okay okay sir yeah thank you thank you sir yeah uh jivan i hope doubts are done yes yes please yeah good morning sir sir actually uh this is kind of a similar scenario where you just explained the last answer but what i'm just trying to ask is in a general way like in a generalized manner when we're trying to make a generalized ddb how we can be assured that how many records could be entering because it's a real-time scenario there could be the number of data rows can be incremental as well as at some time i have to go across for the deletion as well so at that moment uh what could be the positive decision or what could be the way where it has a generic uh way of itself as a learning that this should be an optimal way of having a structure so uh for example if you remember multi uh you can say multi-label uh indexing so this b tree and other things are same same way it is the first label second label third label so at a label so for example a block is have i can accommodate 512 entries okay in on a block sector arrangement so accordingly we can choose the maximum value that could be stored so let's say we are targeting that it should hold the number of element that could be accommodated in the block could be your node node width so that kind of arrangement you can make from the hard disk if you remember there are sectors blocks and others so one block length could be the length of one notes and accordingly we can choose the height another stuff or you can reserve two block for one node or three block for one node so accordingly you can manage it but in in in very beginning now when we started c programming so we do not bother about whatever the array size it we initially declare it at 100 okay though we are performing 20 30 operation so similarly here we can reserve some blocks and because this is a dynamic arrangement a week and we can change at any time so for example we are we can reduce the height or increase the height as as per our requirement so a 100 i have logically declared but obviously i am using a 20. so similarly we can logically declare any structure and we can use minimum and other space is not misutilized because we are not going to accommodate because we are using what links rather than using the direct reserve location so links could be linked list and could be utilized by other as well so that kind of arrangements are there so before designing a database key how many so for example we are creating a site and we know that the site will access by the 10 000 user or 20 000 users so accordingly we design this kind of strategy as well so may be possible your site is not used by even 2000 but still you have all already provisioned of 10 000 people to accommodate so that kind of argument it is yeah sure sir one more question answer the same line sir uh in a real-time scenario i mean as you give an example of this dynamic range right was it anyhow possible that we have seen some scenario like some db or some activities where the ensemble trees will be working on like the bst plus mv tree uh like or something of those lines because uh the kind of structure where we follow in a uh current you can say business scenarios they that actually occurs that uh they're always no not going to be same like the data is not going to same yeah and the and the storing process shouldn't be also though so is there is any possibility that the assembly assembly trees of a combination uh is also being possible or no uh yeah of course possible because bht and and all are the the main memory you can see jam and behind that this this so for example in your ram okay uh this top node is stored only this top node i stored and other information i am not storing okay so but when we have access to this node we can fetch out all the information but when we have multiple such kind of nodes so we can form a bsd but some real world database example i have to see and then then only i could comment but in your ram primarily this or even address of this is stored not even this note even address of this just single address is stored or a pointer is stored whenever a request come it will come here then go down down down and see out the possibilities so i have to check it out keep what could be a real example i could tell okay yeah thank you so much sir because we currently using aurongo at times so aurongo does gives the vector as well as the structure unit as an information and you can actually endorse the index partitioning too yeah so that's where i'm just trying to understand how they have mapper relationship behind the scene okay okay so how the disk sector and other things are in okay because it will be go beyond a label because all this there is a diverse background people are there so so that's why i'm not going into great details okay fine but that's a good question yeah yeah sure sir thank you so much i think that everyone is done okay so uh let me do one more example and then we will close because deletion is little bit tricky so those who are interested so tomorrow class is very much important because deletion in b tree is a bit tricky okay now uh here we have a order three three so 50 order three means that um three by two so minimum child will be two and maximum will be three that is two to three now we want to insert 75 so 50 say you could go to my right 60 say you could go to my right and when 75 comes here then what will happen there will be clear version so median element will be pop up. So here we are witnessing 60, 70, 65 and 75. So I hope up till this there is no issue. Now we want to insert 57. So 60 says you could go to my, 50 says you could go to my right, 60 says you could go. So 57 will be inserted here. But it is full. So median is also 57. So it will be pop up. So what we will witness 57 is now coming here. But this is also full, so 60 will be pop up. So 60 goes here, 57 node is this one and 70 node is this one. So this is an interesting example. So what we have witnessed, two times pop up things are happening. When 57 comes, we are accommodating here, but this is full. So 57 goes up. When we try to accommodate 57 here, then 60 goes up and accordingly the arrangements are changed. So, we will try to do some more examples for insertion and deletion part of this B tree is very much crucial. So, that we will see in the tomorrow's class. So, now I am closing the session though we have started late, but tomorrow we will try to stretch up up till the deletion is over. So, thank you everyone for joining. Now we are closing. Thank you Thank you, Jeevan, for your effort. Thank you. Yeah.