[00:00:09] So, in the previous lecture, we were discussing about the maximum sub array problem. And we identified there are three mechanisms for solving it as first was brute force mechanism. And not even you can say directly it is brute force, it is basically a heuristic variant of brute force, where we do not use the repetitive sets, okay, just different in their order. [00:00:42] Second, we have seen the dynamic programming part leading to a computational complexity [00:00:48] of n of log of n, assuming the maximum severity could be lying in the left, right or in the [00:00:56] cross section. [00:00:57] Third, we have elaborated on discussion cadence algorithm that identify the maximum sum value [00:01:04] in order of n time by preserving the last stage output of maximum sum and current sum. [00:01:13] So, we have solved one problem as well. Then we started discussion on another interesting [00:01:20] aspect of matrix multiplication and among this, there is a famous algorithm that is [00:01:25] called as the stressence algorithm that reduces the computational complexity from n to the [00:01:31] the power 3 to 2 to n to the power 2.81. Okay, though it looks very small, but on a higher [00:01:39] extent, if you witness, so number of calculation will be reduced significantly. So, what cadence [00:01:46] has this? They introduce if two matrices A and B of order 2 cross 2, so they can be represented [00:01:57] in the following 7 product P1, P2, P3, P4 and P7. So, here what is the target to minimize the [00:02:05] multiplication operation and that could be compensated with respect to the multiple [00:02:11] addition operation. So, in that way, both the purpose that is the exact solution and [00:02:19] reduction in multiplication can be achieved. So, this is another divide and conquer algorithm [00:02:25] because it works for 2, 4, 8, 16, 32, 64 order matrices. So, if you want to do a multiplication [00:02:34] at a lower stage, so you will definitely come to the base condition that is a product of 2 cross 2 [00:02:39] or a 4 cross 4 matrix can be assumed as the combination of multiple 2 cross 2 matrices. [00:02:48] So, we have solved one example and from that we have proven from both either going to the [00:02:53] normal metric multiplication, row by column or using stressors we were achieving the same values. [00:03:02] And if you talk about the computational complexity, so in each iteration we are getting 7 [00:03:10] half iteration, 7 times because it was p1, p2, p3, p7. So, this is the 7 and order of n square is [00:03:17] for the multiplication that is being done in each operation. And using master's theorem, [00:03:25] we will establish how this n to the power 2.81 is coming. Now, this is an example I try to create. [00:03:34] So, when we have a two matrices of order 8 cross 8. So, this is 8 cross 8. So, here we have taken [00:03:43] one identity matrix okay so so that the product will be easy so you can see what one two three [00:03:49] four five six seven eight nine ten eleven twelve ten fourteen fifty sixteen so in eight cross eight [00:03:55] you can assume multiple four cross four or you can say four four cross four matrices are there [00:04:08] and we know that we have to divide into several so itself if you see a one one is a four cross [00:04:15] 4 matrix, A12 is a 4 cross 4 matrix, A21 is 4 cross 4 matrix. So in this way we have divided [00:04:22] the product from there to here. Then all 7 products are there as we have seen. [00:04:31] So then we will calculate. So because here is a multiplication, if you see in the here is also [00:04:37] a multiplication. Here is also a multiplication. So, this 4 cross 4 will generate this kind of [00:04:46] matrices. And while doing a multiplication, we will again get another matrix. So, we will [00:04:53] assume the 4 cross 4 is a combination of 2 cross 2, though I had not done it. [00:04:59] And then the stresses multiplication can be applied. But here we are dealing with the [00:05:05] the matrix that is an identity matrix or the matrix is having maximum zero and only [00:05:10] diagonal element R1. Therefore, we can easily perform the multiplication and get back the [00:05:15] result in a single slot. But if you go purely with the stressors part, so this will be also [00:05:22] further divided and we will get the result for each sub half for m1, m2, m3, m4, m5, m6, m7, [00:05:29] then their combination will be made to get back the result. So, this is one problem, [00:05:37] I will share the PPT, please check it out and how it is working. So, this is an interesting problem [00:05:44] and this is also a part of divide and conquer because a bigger size matrix is iteratively [00:05:49] divided into multiple small matrices and ultimately reaches to a base condition that is of order 2 [00:05:56] cross 2. Now the next and the last problem in the divide and conquer. We have seen number [00:06:05] of interesting problems that were coming, last problem. So it is closest pair problem. So without [00:06:17] going into the theoretical aspect, if you see the algorithm, now closest pair means that in a space, [00:06:22] I want to identify among multiple existing point, which point is closest. So of course, [00:06:28] we will calculate the Euclidean distance. So, for 1D it is what? x2 minus x1 square root. [00:06:42] For 2D it becomes x2 minus x1 square plus y2 minus y1 square. For 3 dimension x2 minus x1 square [00:06:56] plus y2 minus y1 square plus z2 minus z1 square. So, this is for 3 dimension. [00:07:06] Or for a generalized variant, if you can see, i equal to 1 to the k s dimension and xi minus [00:07:33] yi and so on. So, I am not getting that it. So, what will happen? This will increase, [00:07:39] keep on increasing as the dimension increases. So, what is the basic phenomenon on the closest [00:07:43] pair point? The closest pair point say that in a 3D space or among n number of points, [00:07:49] I have to identify which two points are closest or which two points are at the least distance. [00:07:55] The closest pair problem is fundamental challenge that revolve around a task of [00:08:00] identifying the pair of point within the smallest distance between them [00:08:05] within the given collection of n point. Let us say we have n points, [00:08:09] and we want to identify which two are closest. So, we have to apply this closest pair problem. [00:08:15] The problem find relevance in the application across various domain from computational geometry [00:08:21] to pattern recognition and beyond. Pattern recognition I hope you people has [00:08:26] get how one pattern is closely related with other. So, in that we have to identify which [00:08:31] point is closely related to whom. So, if you see here we have set of point p1, p2, p3, q3, q1, q2. [00:08:50] So, in 1D we have plotted on single scale and we want to identify which point is closest. [00:08:57] So, one way is that calculate the distance between all the point and then sort them and pick the [00:09:03] smallest one. Next variant is somewhere equivalent to the maximum sub array where [00:09:13] we initially divide the point based on the median. So this point are less than median and this point [00:09:18] are greater than median and we try to identify the distance among the point on the left side [00:09:24] and distance among the point on the right side and distance among the point in the cross section. [00:09:29] So, same thing, so distance among point in left side, second one is among point in right side [00:09:48] and third one is cross distance. As you remember cross sum was there and whichever is lower will [00:09:56] be your result. So, may be possible the, so here also we will iteratively divide to one one point [00:10:02] label. Bigger problem is divided into one one point label and then a combined operation will [00:10:10] run over it and we will get back the result, which point is the closest point in the given [00:10:15] set of n points. So, this is how we can say if n is 1, then output s is infinity, n is 2, then [00:10:33] this formula can be applied and compute the median of x coordinate. Important part is that [00:10:38] irrespective of the number of the dimension we have to always calculate the median based upon [00:10:45] the x dimension. In all the books for 2D, 3D you will find that x coordinate will be treated as [00:11:00] reference for median estimation. Now we will take queries afterwards. [00:11:19] So, in case of one dimension closest pair point, it is problem is quite easy. Now, I will show the [00:11:34] case of 2D. In today's lab, you will also witness this problem is happening. And afterwards, after [00:11:40] giving you the glimpse of 2D closest point, we will start the next problem that is recursence. [00:11:47] And in that also, we will see master theorem and other. So, divide and conquer will end with the [00:11:53] closest pair problem. Now, first is 1D closest pair, maybe my spellings are wrong, [00:12:11] closest pair. So, what we will do first, arrange point in 1D line, identify [00:12:33] median. Important part, this is median. So, median will not directly n by 2 or n by 2 plus 1, [00:12:46] it will also check what? Check the values. Accordingly, it will change. It will check the [00:12:57] value and accordingly it will change. Then what we will do? Divide the points in left half [00:13:08] and right half. Then this 2 and 3 will continue for 1 1 point state. Then we will calculate [00:13:32] or you can say not 1 1 point, 2 point stage. At least 2 points should be there to estimate [00:13:38] the distance and then we will calculate left distance, right distance and middle distance [00:13:49] or you can see cross distance and whichever will be smaller, whichever is smaller will [00:14:05] propagate, whichever is smaller will propagate upwards. So, likewise two points are there here, [00:14:12] 1 and 2, I have calculated the distance. Similarly, here two points are there, I have calculated [00:14:16] the distance, then cross distance and upward. So, this is somewhere similar to the maximum [00:14:22] subarray problem. Now, talking about the another aspect that is 2D point, that is another interesting [00:14:30] thing and among the challenging problems in the DA. So, here when we are targeting 2D points, [00:14:47] So, just giving you a glimpse, these are the set of the point and there is another set [00:14:54] of the point, this is left half, this is right half and this is you can say median. [00:15:06] So from this left half, we will identify the distance L and here we will identify distance [00:15:16] h, sorry distance r, the left distance and right distance. [00:15:21] So these are the 2D space and this median is based on the x coordinate. [00:15:33] Again I am saying you can use y coordinate, accordingly you have to change the algorithm, [00:15:38] both will be correct. [00:15:40] But in most of the book even in Corman and everywhere, the closest pair point are refer [00:15:45] with respect to the x coordinate only. [00:15:52] Now what I have did, on the left half I have estimated the minimum distance that is DL [00:15:59] on the right half the minimum distance is dr. Using these two points now I will determine d [00:16:05] that is minimum of dl and dr. But now think about one thing. If from the median I have to estimate [00:16:18] the distance of all those points that are lying on left half or right half. What I can do if I [00:16:24] can calculate distance of all the points that are less than d, then that will be obviously [00:16:33] effective. [00:16:34] So, what I will do from the median, there should be some median points that are lying [00:16:43] on the line or so from these points that are very close to this, I will calculate distance [00:16:49] of only those points or basically what I will do, I will make a square of d. [00:16:58] Now, the distance among these points will be max to max what? Will be less than 2d, [00:17:06] less than 2d. So, in that manner we can identify which points are closest in the cross section. [00:17:12] We need not to calculate all the point distance on the left and all the point or [00:17:16] distance on the right. We have to just see the point that are in the proximity of [00:17:20] dimension d or the length d. So, this is one interesting aspect that [00:17:25] we need not to estimate the points distance in this way or in the that way. So, simply that we [00:17:33] can do via algorithm. So, I am not going into the details. So, those who are interested can solve [00:17:38] and in the today's level as well we will discuss about these things. Now, these are the recurrence [00:17:46] relations for the merge sort, quick sort. So, a question arises how to estimate the computational [00:17:52] complexity of such recurrence relation though we are saying n of log of n or log of n so how [00:17:57] actually they are happening that we will discuss today via recurrence relation analysis so before [00:18:01] going further we'll take some queries from your side i don't unmute you yes you are audible sir [00:18:25] good morning i have two questions sir one is if you can explain the step 4 which you were talking [00:18:30] about 1D closest. What happened in step 4? Because after step 3, you said you divide [00:18:35] the points into left half and right half. And then what are these 2 to 3 points which [00:18:39] you are saying will continue? These are the two steps. Identify the [00:18:43] meter. So, what we will do? Basically, we will stop when we have just two points remaining. [00:18:50] And here also in this half, there are two points. So, we will calculate the distance [00:18:54] among these two points. These two points, so let us say this is distance L and this [00:18:57] distance r and in the intersection also we will calculate distance c and whichever is earlier we [00:19:03] will declare those two point are the closest point and that result will be stored and proceed further [00:19:08] similarly from this half we will get two more points and and slowly slowly we will as we reach [00:19:14] to our ladder then we will identify two points that are having the minimum distance so what does [00:19:20] point number step number four actually say two to three will continue for but when we reach to the [00:19:26] two two-point stage. We are having only two point in each set, left half and right half. [00:19:32] Second question was regarding the 2D point slide which you said. Now in that view, [00:19:37] we understand that first the median has to be made and then we have to run the algorithm to [00:19:42] identify on the left side and on the right side which are the points which are closest to the [00:19:46] medium. Is that correct? No, which are having the least distance, not closest to median. So, [00:19:51] first step is let's say we have set of point here. So, I will identify two point that is having [00:19:56] dL, minimum distance. Similarly, on the right side, we will identify minimum distance. Okay. [00:20:02] So among, from this, we will again calculate which, whichever is median, minimum. And accordingly, [00:20:06] we will make a square box. And so that dimension will be d. So from this, it will be clear that [00:20:12] there will be very few points that are having distance less than this d or equivalent to d. [00:20:17] And if we got some point, then declare that is the closest. Otherwise, this d will be the closest. [00:20:23] So, the distance between the two points in the left half and the distance between the two points [00:20:28] on the right half are independent of their distance from the median. They can be anywhere [00:20:33] in that complete. Anywhere, anywhere. Yeah, yeah. So, because this is a recursive algorithm, [00:20:38] so here also if you identify, so it has been already further divided into different, different [00:20:42] medians hitting okay okay okay okay so uh so i don't know if i am correct here but uh maybe you [00:20:52] would use something like if there if it exists a minimum subarray kind of an algorithm which will [00:20:57] put all these points of one particular left half into a single quadrant single array yeah yeah it [00:21:02] is it is similar to maximum summary or minimum summary what you are understanding but there is [00:21:06] a just a little bit different that making of this square otherwise it is equivalent to that algorithm [00:21:12] alright sir [00:21:14] thank you [00:21:15] any other [00:21:24] doubt [00:21:24] to anyone [00:21:25] yeah [00:21:29] good morning [00:21:30] yeah [00:21:31] good morning [00:21:32] sir [00:21:32] good morning [00:21:33] yes it's [00:21:35] clear but [00:21:35] when in [00:21:36] first [00:21:37] one knee [00:21:38] right [00:21:38] where you are [00:21:39] telling that [00:21:39] we will [00:21:39] repeat two [00:21:40] and three [00:21:40] and the [00:21:41] two and [00:21:42] three will [00:21:42] repeat for [00:21:43] every two [00:21:44] points [00:21:44] yes [00:21:45] for the [00:21:46] set the [00:21:47] the base [00:21:48] condition here [00:21:48] is the [00:21:49] pair of [00:21:49] two points [00:21:50] yes [00:21:51] stopping [00:21:51] condition [00:21:52] yes [00:21:52] yes sir [00:21:53] i didn't get it how the median will be calculated for two points it will be mean and median same [00:21:58] then why we are specific saying that it will be a median you can show one example or it will be [00:22:04] possible that can you show one example for 1d at least for four points and in 2d also three four [00:22:09] points then it will be clear everything okay okay yeah thank you so so 1d is uh easy to go i guess [00:22:21] Yes, 3, 4 points is enough. That I will take. So, let us say we have minus 4, [00:22:34] minus 2. I am checking this and there is 1.1. Let me draw here minus 4, minus 2, 1, [00:22:53] 4, 5 and one more point I am taking 10. So, I have just plotted in the 1D all these points. [00:23:01] Okay. Now, we want to use this 1D closest pair. So, from this, we have to identify the median. [00:23:11] So, in median calculation, if you remember, the point should be sorted always. Okay. In median, [00:23:16] the point should be sorted. And then we can do what? 1, 2, 3, 4, 5, 6. So, that is n by 2 even, [00:23:23] or if it is odd, then n by 2 plus 1. So, here we will get to a position that this one could be [00:23:29] your median. Agree? Agree. Okay. Now, what I will do, we will got two subsets. One is minus 4, [00:23:40] minus 2 and 1. Another subset is 4, 5 and 10. Okay. Further from these three, if you say, [00:23:48] so how many points? 1, 2, 3. So, n by 2. So, in n by 2, if you can take 2 or 1 as a median. So, [00:23:57] this will be the breaking point. So, what we will get minus 4 and minus 2 and here it is 1. [00:24:06] No division is further needed also we will get 4, 5 and 10. So, now we will calculate distance [00:24:11] between these two points. So, for 1D it is basically minus 4 minus of minus 2 and this is [00:24:19] is mod sign. So, what we will get? Minus 2 and ultimately we will get the distance of [00:24:25] 2 among these. Now, from this one, we will, because these points are already sorted, so [00:24:31] we will calculate the distance between minus 2 and 1, that is also 2. So, we can pick any [00:24:35] of the points. So, let us say we are taking minus 2 and minus 1 are the closest point [00:24:39] from the left side. Agree? Similarly, 4, 5 distance is what? 1 and 5 and 10 distance [00:24:46] is 5. Sorry, yes, 5. So, obviously, 4 and 5 will come up. So, 4 and 5 are having a distance [00:24:54] of how much? That is 1. Minus 2 and 1 are getting the distance of how much? Sorry, not [00:25:02] minus 2. So, minus 2 and 1, minus 2 and 1 distance is 3. So, obviously, these two points [00:25:10] will come up. Minus 4 and minus 2. Now, this is having a distance of 2. Now, we want to [00:25:18] calculate the cross section distance okay so here distance is what two here distance is what one [00:25:23] and median was what one so from the median there is no point that is less than one so the resultant [00:25:29] of this problem will be what four and five with the value of one so these are the two closest [00:25:34] point in the and if you can see in the number line all these are the closest point so in the [00:25:41] figure yeah yes i got it in the figure you have represented two more points called s1 and s2 [00:25:47] then what is the use of this to that points here where the example you have shown initially right [00:25:54] where you are explaining yeah the slide so then what is the use of this s1 and s2 so these are [00:26:00] the sub half that is the representation that's the meaning of sub half yeah yeah yeah got it [00:26:05] thanks so similarly if you go with the 2d so same process will be followed so let me do one example [00:26:13] for that but i have to write the coordinates value okay because it's four coordinates [00:26:21] we'll see four coordinates then two points is possible let me see check okay so for 2d point [00:26:37] I am considering 1, 2, 3, 4, minus 1, 6, 5, 7, I am taking, let us see, 2, 3, and then [00:26:59] minus 2, minus 4. So, now first thing is that, arrange this point on the basis of x coordinates. [00:27:09] So, what we will get minus 2 comma minus 4, then minus 1 comma 6, then 1 comma 2, [00:27:21] then we have 3 comma minus 4, here I am writing minus 4 and next point is 5 comma 7. Now, [00:27:34] again the points are 1, 2, 3, 4, 5 and by 2 plus 1 will be the median because we have [00:27:40] have arranged in the x coordinate value. So, this will act as a median point. So, this [00:27:44] will be bifurcated into two part minus 2 comma minus 4 minus 1 comma 6 and 1 comma 2 and [00:27:54] 3 comma minus 4 and 5 comma 7. Then this is further divided into two part 1 comma 2 we [00:28:03] are holding here, minus 2 comma minus 4, minus 1 comma 6 and here it is already two points [00:28:10] are there. [00:28:11] Now we will calculate the distance among these two point, these two point, then these two [00:28:15] point and then same strategy will be adopted DL and D. This is from here DL we will get [00:28:21] and here we will get DR and combined point we will get DC, whichever is smaller will [00:28:26] be the resultant point. So probably if I see, so these two point may be the value of it. [00:28:33] So here distance estimation will be followed by the Euclidean minus 2 comma minus 1 square. [00:28:37] That is plus 1 minus minus 1 plus minus 4 comma minus 6 square. [00:28:43] So their distance we will get. [00:28:45] Then from these two points we will get the distance and so on. [00:28:49] I hope you understand the concept. [00:28:51] Yes, yes I got it. [00:28:52] Thank you sir. [00:28:56] Any other doubt? [00:28:57] Atis, I turn there and mute you. [00:29:00] Atis, say yes. [00:29:17] Hello sir. [00:29:19] One by one, one by one. [00:29:20] Yes. [00:29:21] yes sir i'm doing one by one hello sir good morning good morning yes [00:29:30] sir one doubt is here that the point number two for the closest pair 1d you say that identify the [00:29:44] median n by 2 and check the values and change so median for the for the values means for check the [00:29:53] values and change means median we can go for any other values or something you want to mention here [00:30:02] or something else no no so you have to arrange the point in the x coordinate order and you know [00:30:09] now in median you have to first sort to the sorting and only we can apply the median so this [00:30:14] strategy you have to adopt that's it that is the rule of the algorithm again i am saying in da you [00:30:19] are free to use your concept for making your variant of the algorithm so this is pre-existing [00:30:24] in the literature that's why i was i'm teaching but you can also apply mean or something then check [00:30:29] out how it is making the actual differences but when you apply a mean or anything now you will [00:30:33] not arrange the point like this one so during that then then that will be very difficult for you to [00:30:38] estimate because here now we we had a clear understanding how the points are [00:30:44] available and then only we can easily identify the distance but if they are [00:30:48] allocated randomly in the space then estimation will be quite tricky or you can say difficult yeah [00:30:54] yes sir uh for the previous like much short and other divide and conquer we estimate this sorting [00:31:02] part with the values but here we are estimating with the distance so if if there is a possibility [00:31:10] that if it is the equidistance for all the points so so they then uh what will be happening with [00:31:18] this algorithm means the worst case base case and average case like that so if all the points are [00:31:25] equidistant so then we will declare any of the point any because it's the closest pair so we can [00:31:31] you can say the first point that you have estimated you can declare it as a closest pair point so that [00:31:36] or you can randomly choose any of the point at the closest pair so there is no burden because [00:31:41] it also handles the equality cases okay and sir next question is what is the applications of this [00:31:49] type of uh scenario means uh this this means where we okay use this yeah simple it's simple [00:31:57] example if i take if in my office multiple wi-fi routers are present okay though it happen [00:32:02] automatically. So, this is W1, W2, W3, I am here and I am getting signals from all three. [00:32:11] So, whom I choose for our internet connection, the one that is having the least distance or we [00:32:17] can see in our network, when we are in a zone where multiple towers, these cellular towers [00:32:23] are available. So, we connect to that is having the more number of signal kind of this. [00:32:27] closest pair means that whichever is earlier i will prefer to go with that point okay or in the [00:32:34] on the in the flight um okay there are a number of waypoints okay and if we have to do emergency [00:32:40] landing then we will choose the point that is closest to me so that is in a real world we are [00:32:44] always choosing the things now that are closer so so that is the application so that is based upon [00:32:49] yeah yeah so there is a mild touch of graph theory also right yes yes yes yes yeah yeah [00:32:57] actually this closure spare problem is a part of graph theory but we are because it is a [00:33:02] based on divide and conquer therefore we are discussing here oh okay sir okay understood [00:33:07] sir thank you very much we are good to go i think two more people are still there sir [00:33:19] So that's why I am taking the queries because in the query there are hidden answers that [00:33:32] are being resolved for many of you. [00:33:42] So we will proceed. [00:33:43] Now there is another interesting aspect that we are going to start that is the recursions [00:33:48] and we have already seen that and multiple time you have witnessed that I was telling [00:33:52] the division of these problems were recursive division, the division were recursive. [00:34:00] And if you see these are called as the recurrence relation, this relation for merge sort is [00:34:05] the recurrence relation, here it is written, the recurrence relation. [00:34:09] So that is a problem if it is n will be divided into 2 problem of n by 2 with the order of [00:34:17] n with order of n for merger. Similarly, for binary search, we have seen one recurrence [00:34:25] relation that is a problem will be divided into n by 2 and merger will take order of [00:34:32] 1 only. So, what are the recurrences? So, let us discuss because all these problems, [00:34:40] how they will provide the let us say order of log of n with that we cannot directly calculate [00:34:46] as we were calculating for n, n square, n cube, this is not possible for this and also [00:34:51] how this gives this, this recurrence relation gives n of log of n. So, that is an interesting [00:34:56] aspect. [00:34:57] So, we will see how we can analyze the computational complexity of the recursive algorithm. Our [00:35:04] target aim is to determine in the computational complexity, complexity of recursive algorithm. [00:35:26] So, all the divide and conquer algorithm that we have seen is a recursive because [00:35:34] they were recursively calling themselves. So, taking a short break for 2-3 minutes, [00:35:40] then we will start. So, let us continue. So, recurrences can be appear anywhere, [00:43:22] but divide and conquer, most of the algorithm follows the principle of recurrences. And even [00:43:28] in dynamic programming, we will also see these recurrences are appearing, okay. So, let us see [00:43:35] little bit theoretical thing, then we will see the examples where recurrences are applied. [00:43:41] So, recurrences is the, referred to the mathematical relationship or equation that [00:43:52] describes the, that describes the recursion of a function or a sequence in terms of the [00:43:57] previous value. So, if you see I have many of the time I have talked about the base condition that [00:44:05] is for example, in merge sort when we have reached to the single element label we are saying that it [00:44:10] is the base condition. Similarly, in case of last example closest pair point where we have reached [00:44:15] to the set of two point that will be the base condition. So, this means that and there will [00:44:20] be a recurring condition. So, there will be a recurring case the case that will repeat again [00:44:26] and again. So, and in some books this is written that initial condition. So, along the base [00:44:35] condition in the initial condition may be specified to determine the value of the function [00:44:39] for a smallest input size where this relation may or may not be holding. [00:44:47] So, that is called as the well-formed recursion, there is a term for well-formed recurrences [00:45:00] that says all the recursion, all the recursion are well-formed which reduces, which reduces [00:45:16] its value in all iteration, in all iteration and tends towards, tends towards base case, [00:45:32] tends towards base case. So, recursion if it is not following this property, so the algorithm [00:45:39] will never converse. So, this means that in each iteration we are reducing the problem size [00:45:44] and we have reached to a situation where we are having one element, if this is not the behavior [00:45:50] of any algorithm, then that algorithm will never converge and such type of recursions are called as [00:45:55] the well formed recursion. So, now we have witnessed that in recursion there are most of [00:46:03] the time two things, one is the recursive call and first one will be the base condition. Base [00:46:08] condition indicates the stopping point or the terminating point of the recursive algorithm, [00:46:13] stopping or terminating point of the recursive algorithm is known as the base case and recursive [00:46:19] case is that the iterative division of a problem, for example, in merge sort will be called as the [00:46:25] recursive because every time we are calling the same function to partition the array into [00:46:31] subarrays. So, similarly we can see binary search, quick sort, everywhere closest pair point, [00:46:36] maximum subarray, everywhere what we are getting? We are getting what? We are getting the function [00:46:43] is calling itself again and again. So, we will see some small examples for this recursion. [00:46:51] Then we will try to identify what are the conditions or what are the mechanisms of identifying [00:46:57] the computational complexity of the recurrence relation or recursive algorithm. Although [00:47:03] we are claiming n log n, n to the power 2.81 log n or anything, but how actually we can [00:47:09] get this will be done by certain set of mechanisms that we will discuss today. [00:47:14] So, importance of algorithm analysis already we have did in asymptotic analysis, why this [00:47:22] is important. [00:47:24] But here also the same thing will be applicable, but here the problem is not straightforward [00:47:28] or you can say that that fn we are receiving in asymptotic analysis will be a little bit [00:47:33] tricky. [00:47:34] So, first famous example is the recurrence relation for the factorial function where [00:47:44] the base case is factorial of 0 is 1 and a recurring case will be what, n into factorial [00:47:56] n minus 1. [00:47:57] So, for example, if I take an example for this, then I will take some more examples [00:48:05] of Fibonacci and other series. [00:48:27] So, one famous example is the factorial. I hope number of you knows. So, for example, [00:48:34] if I calculate factorial of 6, so basically what we did 6 into 5 into 4 into 3 into 2, [00:48:42] so into 1 that is 30 into 24. So, 720 it will be. Now, if I go with the recurrence relation, [00:49:02] So, f n equal to, base case is what factorial 0 is 1, in some book also it is written factorial [00:49:13] of 1 is also 1, so do not confuse and the recurring case is n into n minus 1 the factorial [00:49:20] 1. [00:49:21] Now, what is value of n here first, so n is equal to 6 because we have to calculate factorial [00:49:30] 6, so what will be the value, 6 into factorial of 5, then what will be the value? [00:49:36] 6 into 5 into factorial 4, then 6 into 5 into 4 into factorial 3, then 6 into 5 into 4 into [00:49:47] factorial 3 into factorial 2, then 6 into 5 into 4 into 3 into 2 factorial 1, then 6 [00:50:03] into 5 into 4 into 3 into 2 into 1, a factorial 0 is also 1. So, this will again reach to 720, [00:50:12] this will again lead to 720. So, this is a thing how we can calculate the factorial. [00:50:20] Similarly, there is called as the Fibonacci series, where the base condition is f of 0 [00:50:26] plus f of 1 is equal to 1 is the base condition, otherwise what we will do? f of n equal to, [00:50:41] let me show the example, here it is written, f of n equal to f of n minus 1 plus f of [00:50:46] n minus 2, this is the, you can say a recursive case and base condition is two value, f of 0 equal [00:50:53] to 1 and f of 1 is 1. So, let me clear it. So, I hope factorial is clear, this is called factorial, [00:50:58] this is also a recursive example where we are recursively calling the factorial function [00:51:04] for first 6, then 5, then 4, then 3, then 2, then 1 and so on. So similarly, there is [00:51:10] a Fabernacchi series whose base condition is, condition how what? Factorial 0, sorry, [00:51:21] f of 0 is 0 and f of 1 is 1 and otherwise f of n is f of n minus 1 plus f of [00:51:31] n minus 2. So, for example, there is a famous series if you say 0, 1, 0 plus 1 is 1, 1 plus [00:51:41] 1 is 2, 2 plus 1 is 3, 2 plus 3 is 5, 5, 3, 8, 8, 5, 13, 13, 8, 21, 28 and 13 is 34 and [00:51:55] so on. [00:51:56] as the Fibonacci series, adding last to result into the next. So, 0, 1, 1, 1, 1, 2, 1, 2, [00:52:04] 3, 3, 5, 8, 8, 13, 20, 3, 5, 8, 5, 8, 13, 13, 8, 21 and so on. So, this series is called as the [00:52:14] Fibonacci series that is also a recursive example and the conditions are likewise. So, [00:52:19] here it is between 0, 1, 2, 3, 5, 8, 13 and so on. Similarly, merge sort is also a recursion, [00:52:26] because recursively we are calling the same function for partitioning this algorithm. [00:52:31] And similarly, we can also say binary search and there are many more recurrence relations [00:52:37] and examples. So, if you see, you will find number of cases, examples are there, but [00:52:43] these are the some glimpse I am telling you so that you can get a picture of what or how [00:52:49] recursion actually works. Then this is an interesting problem, that is called as a tower [00:52:56] of Hanoi problem, where and sometimes this problem is also referred to as a searching [00:53:06] problem in the AI. So, this is, but this recursively call the same function again and again. Therefore, [00:53:13] this is also a part of recurrence and whose value is tn equal to 2t. So, you can see this [00:53:18] is a quite different type of recursion. [00:53:21] So one problem is divided into two sub problem and one result that is order of one. [00:53:30] So what is the problem? [00:53:31] We have three pole A, B and C or here is the written A, B, C and we have three disks. [00:53:38] You can see orange, blue and red. [00:53:42] And what is our target? [00:53:43] we have to move the disk from pole A to pole C such that at no point of time lower dia [00:53:52] disk is below the higher dia disk, lower dia disk is below the higher dia disk, that is [00:53:58] the one important condition. [00:54:01] So, here if you see, so the recurrence relation to solve this problem is called, is of this [00:54:11] one and this problem is called as the tower of Hanoi problem in original there was 63 [00:54:16] in original problem of tower of Hanoi. So, in place of 3 disc, 63 disc were placed in [00:54:22] an order and the target was to move from A to C. Here if you see, at no point of time [00:54:29] from this to this, then this, this bigger one is shifted here, then this small one goes [00:54:36] here, medium one goes here and lastly this comes. So, this is called as the tower of [00:54:41] interesting problem. This is tower of Hanoi problem and there is two more thing. Here [00:54:46] it is a detail in stack. So, if you study data structure, so in stack this problem is [00:54:52] discussed in detail. But for your normal knowledge you understand the recurrence relation for [00:54:57] this problem is Tn equal to 2Tn minus 1 plus 1 and here our target is to move the 3 disk [00:55:04] stacked in pole A1 or A to pole 3, in such a manner where smaller disk should not be [00:55:17] low the higher disk at any instance. [00:55:24] So there are three mechanisms of solving the recurrences, like T n equal to 2 T n by 2 [00:55:32] plus n and so on. [00:55:34] So there are three mechanisms of solving the recurrences, one is substitution method, next [00:55:40] Next one is recurrence tree method and the famous and you can say the best mechanism [00:55:44] of solving is master's theorem. [00:55:46] So, as the name indicates substitution, so this method is sometime also called as the [00:55:56] guessing method. [00:55:58] This substitution method is also known as method of guessing. [00:56:02] So, what basically we do in substitution method, we guess a solution, this could be the computational [00:56:10] complexity of some recurrence relation T n equal to 2 T n by 2 plus n and from there [00:56:22] we will then try to prove what we have predicted or what we have guessed is correct via the [00:56:28] induction, prove by induction, prove by induction. [00:56:43] So what basically we do, we will guess a solution and then trying proving you via induction. [00:56:58] So if I see any recurrence relation, I assume the computational complexity could be this. [00:57:03] So this assumption things will definitely come after experience, we cannot directly [00:57:07] apply. [00:57:08] Then there is a recurrence tree method. [00:57:11] So if you remember in all the divide and conquer strategy, I was forming like a tree. [00:57:15] There was a big problem, then there was sub problem of it, then sub sub problem, then [00:57:19] sub sub problem. [00:57:20] So this is that the structure that is formed is called as the tree, tree structure or recurrence [00:57:27] tree and we will try to determine how algorithm is behaving and then we will declare its computational [00:57:33] complexity. And the third and the last method is the master's theorem. So, that has a specific [00:57:39] set of cases. If the cases are valid, then we have to simply replace its value and we [00:57:45] will get a computational complexity directly. [00:57:48] So, let us see some glimpse of substitution and recurrence tree method, then we will start [00:57:54] that is the important method that is master's theorem okay I have to change [00:58:10] this PPT just give me a while in a minute I will come back now I hope my [00:58:46] screen is again visible Anuja is having some query so you can now ask the [00:58:59] queries um yes uh i'm ready to take the queries then we will proceed and then unmute already to [00:59:23] you uh good morning uh where he is respect to the last topic which you were testing where uh the 2d [00:59:37] like 2d plan you were giving example so how the distance where the latest that is four and five [00:59:45] has been calculated it's just in the palette on the top which is on the top of the okay so when [00:59:52] we are saying uh uh 2d points in the coordinates okay one sorry let's say this is one two because [01:00:01] i'm just saying it could be yeah it could be like where you have increased the coordinates also [01:00:07] like right now we are on the 2d discussion yes it may be like we increase on the dimensions [01:00:13] like as a graph theory someone was discussing so i'm just trying to understand in that notion [01:00:19] so the the distance between these two points now will be calculated by the euclidean distance [01:00:30] yes but if you go with the questions there is a top side where you just finalize that [01:00:36] this is a four and five which is a uh final uh you can say final points for me i mean [01:00:42] that I'm just trying to understand. So, 4 and 5 was, you can say, I guess, that depends [01:00:51] upon the distance. So, what I will do, I will reach to the situation where there are two [01:00:55] points. Okay. And here, so if I having these two points, so I will calculate the Euclidean [01:01:01] distance. So, that will be D of left between these two points D of right. So, same formula [01:01:05] will be applied. Okay. And for the cross section part, what I was saying from the median, [01:01:10] I will calculate the minimum of dl and dr and store in the variable d. So, this will [01:01:18] be d and this will be the maximum d. So, all those points that are lying, we will calculate [01:01:23] the distance among them and if they are less than d, then we will declare they are the [01:01:27] closest point otherwise this will be the closest point either dl or dr whichever is minimum. [01:01:33] In that two subsets sir, if there are duplicates, how I mean the distance could be in the [01:01:39] duplicates will be similar rate okay so if there are duplicate entry for example two set of point [01:01:47] we are getting the distance is two unit okay so you can choose any of them or the the first you [01:01:52] have estimated will be treated will be uh output as first hitting let's say i have calculated [01:01:58] distance with one two three four and the cross section also i'm getting the distance between [01:02:03] three and three four and six seven similar so the distance between one two and three four will be [01:02:07] treated as the output but you can give as many as output if you want but that is the first come first [01:02:13] serve kind of things so that is the way of how you can resolve the conflict yes yes so that is [01:02:18] how you design the algorithm i'm just telling you the concept now while designing it could be the [01:02:22] last one you are picking or the first one you are picking that is totally up to you sure uh and so [01:02:29] just one more thing i mean with this recurrence topic which you just started uh and the relatable [01:02:35] the last position somehow these these objects seems like relatable to the actual use case where [01:02:42] we have the gradient descent where we try to lower route towards the convergence of algorithm is it [01:02:48] the same way so in convergence also what we are trying to do we are trying to minimize the loss [01:02:54] or minimize the or maximize our accuracy so loss minimization is what the distance between [01:02:59] two uh that is predicted and true output is now reducing okay so similarly also we are reducing [01:03:06] in a sense we are reaching toward the base condition we are reaching toward attending [01:03:10] towards the base condition every time we are reducing the problem space so you can obviously [01:03:15] compare it okay okay thank you hello sir good morning good morning uh sir i have a question [01:03:33] with respect to the recurrence relation so basically we are saying we we have to define [01:03:40] three uh conditions one inch base condition then we have the initial condition and then [01:03:47] recursive so for any given problem we uh we have to come up with these three uh conditions or [01:03:56] these conditions will be given to us so for example just remember the case of mass sort [01:04:02] what I was saying, we will divide the problem when we up till what? The till is when we [01:04:09] have one one element situation. So, that is the base case. [01:04:13] So accordingly, we have in our algorithm, we have said that if number of element in [01:04:18] an array, so where is one, then we will what do what? We will stop or we will return something. [01:04:23] So that is a mechanism of making the base condition. And otherwise, we will iteratively [01:04:28] we call the same function again and again and again. [01:04:31] So, if it is explicitly I have asked you solve this recursion, so I will give both the cases. [01:04:38] But if you are designing an algorithm that you have to itself decide what could be the [01:04:42] base condition where you stop. [01:04:44] If you remember the case of quick come insertion where I was saying that when the element label [01:04:49] is 5, then I will directly apply the quick sort. [01:04:52] So there the base condition is the array element count in the array should be 5. [01:04:58] So accordingly, you have to decide the base condition, but if it is explicitly, I ask you solve this recursion or something, then of course, this base condition and everything will be given. [01:05:10] Okay. Okay. Got it. Sir, I have another question. So for any given problem, let's say these MERS sort or quick sort, it's pretty self-explanatory. [01:05:20] so we can come up with the recurrence relation but let's say if we have a very complex problem [01:05:27] and in in order to come up with a recurrence relation what are the things that we need to [01:05:33] consider i mean do we just need to consider the number of inputs or is there any other criteria [01:05:41] that we will consider the number of input but we we have to also analyze how this problem can be [01:05:47] solved. We can solve in one go or multiple similar calls are required. So, for example, [01:05:52] if I have to solve factorial problem, so what basically I am doing, I am removing one element [01:05:59] out of it and other element will hold the factorial thing, then one, then factorial, [01:06:05] then one, then factorial. So, what this indicates that we are solving a problem in an iterative [01:06:10] order. So, for example, in case of for loop, same thing, have to repeat again and again. [01:06:15] If that type of situation is creating, then we have to obviously refer to the recurrences. [01:06:21] And when the problem is very much complicated, we have to. [01:06:24] So what basically happened, I hope you are all our working professionals. [01:06:29] So if you are given a set of some set of problem, then you do not directly jump to the solution. [01:06:34] You just analyze how this problem is behaving, what are the pros and cons, how it can be [01:06:39] solved. [01:06:40] And during that, if you are now having the knowledge of divide and conquer, having knowledge [01:06:43] of recursion then you can it easily can figure out okay i will go like this this this and this [01:06:49] and then i will stop so so that kind of thing it is yes so recurrence relation is applicable only [01:06:56] to those set of problems where we have the attractive yes yes where we have to we have [01:07:02] to make a repetitive call to the same function again and again okay okay got it yeah thank you [01:07:09] Hi sir, this is Ganesh and I have like you know you have told the problems that are [01:07:32] solved in the recurrences right so we can say like all divide and conquer will be definitely [01:07:38] a recurrence problem right yes yes because in divide and conquer there will be iterative division [01:07:43] of a problem yeah that means definitely uh we will be having uh uh like you know the time [01:07:50] complexity every time we are giving a two into t by two something it is starting yes two into t t [01:07:56] n by t by two two n by two n by seven n by three any of the case can be possible okay that means [01:08:03] in any almost like like that is similar to log also right sir yes yes and in most of the cases [01:08:10] you will feel that the division was following a logarithmic order because the order of log is what [01:08:16] n, n by 2, n by 4, n by 8, n by 16. So this is log series basically. Okay. Okay. Thank you, sir. [01:08:24] Thank you. I guess we are good to go. Sir. Hello, sir. Good morning. Yes, yes. Good morning. Sir, [01:08:38] I just, I just one question here. So for the example of Tower of Hanoi, previously we see that [01:08:46] we can ignore the lowest term means if there is n square we only consider the dominating term here. [01:08:53] But here I can see that plus 1 is also have some significance for the time complexity calculation. [01:09:01] If you remember the binary search what I was telling t n by 2 plus 1. So, this is not the [01:09:08] complexity partner this is a recurrence relation. From this recurrence relation we will calculate [01:09:12] the complexity later on using different mechanisms that I was telling, substitution, recurrence [01:09:17] tree and master's theorem, there the significance of one will be managed. But here in recurrence [01:09:23] relation we have to demonstrate everything. [01:09:25] Okay, means for the recurrence relations if there is a small one. [01:09:30] Thing that will also come, yeah. Okay, okay, thank you. [01:09:42] Okay, so Vikas will take your doubt in the last. Okay, now before starting [01:09:49] the analysis of recurrence relation, there are certain points, because if you remember, [01:09:57] we are dividing floor ceiling plus order of n. So, we are ignoring just the boundary cases, [01:10:03] what we are basically taking t n by 2 into 2 times, although the two halves were not [01:10:08] equal. And if you see in merge, sort, in binary search, the two half may or may not [01:10:13] be exactly equal, but we are assuming that they are exactly equal, because in one half [01:10:19] there may be 7 element, in one half there may be 6 element, so they are not exactly [01:10:23] same. [01:10:24] So, how we can say that T n is equal to 2 times T of n by 2, so that is not possible. [01:10:31] So there is technicality that we have to understand that in practice we neglect the technical [01:10:40] detail where state and solve the recursive. [01:10:42] For example, if we call a merge sort on L element, n is odd, we end up with two sub [01:10:48] problem floor and ceiling. [01:10:50] of this is actually n by 2 because n by 2 is not an integer where n is odd. So, real [01:10:58] situation is like this one, but we are ignoring what? We are ignoring the boundary cases or [01:11:02] edge cases. If you do not ignore then the estimation of the computational complexity [01:11:07] will be very much difficult. So, here we are ignoring the boundary cases or the corner [01:11:12] cases that algorithm can pose while estimating the computational complexity of a recurrence [01:11:19] So, we ignore the boundary cases or sometime it is also called as a corner, boundary cases [01:11:44] or corner cases, so that you should keep in the mind that there is an hidden assumption [01:11:51] while estimating the computational complexity that we are not taking like this one. [01:12:01] Now, these are the three method that is substitution, iteration and this is iteration and I just [01:12:11] have written its name was recurrence 3, recurrence 3, this is iterative as well as this is also [01:12:24] called as the recurrence 2. [01:12:32] The first method is substitution where we have to guess out the solution that this is [01:12:37] the problem, so this could be the solution. And iterative or recursive, recursive tree [01:12:42] method is drawing the tree for the problem and trying to identify or observe how the [01:12:48] algorithm change its behavior. And last one is the master theorem that is the specialized [01:12:52] method for estimating the computational complexity of all the recurrence relations. [01:12:59] Now if we have a problem that T n equal to 2 T n by 2 and theta of n and we have guessed [01:13:11] the solution as n of log of n. This is just guessing we are doing. It is not surprisingly [01:13:17] coming from any of the formula here, just we are making a guess that T n will hold this [01:13:21] much computational complexity. Now question arises if this could be the situation floor [01:13:26] of n by 2. So, what is dn? So, if I say n of log of n because we are ignoring the boundary. [01:13:42] Then similarly in place of n, if there is some 17, so what would be the computational [01:13:47] complexity? That is a good thing. So, if we say n of log of n, but this 17 can be treated [01:13:54] as what? Since this 17 can be treated as some add on, but that can be ignored as someone [01:14:02] was asking and afterwards there is another n. And t, this 17 can be ignored. So, that [01:14:19] is again the ignorance of the boundary cases or corner cases. [01:14:25] So first way is guessing the solution, whatever the problem is, we are guessing a solution. [01:14:30] Then using mathematical induction to find the constant and so that the solution works. [01:14:35] So, for example, 2t floor of n by 2 plus n, we have guessed the solution as n of log [01:14:42] of n. So, to show tn is less than c of log of n that is if you remember the case of what [01:14:52] we go. So, here we are getting some n greater than m and so on. And we are trying to establish [01:15:03] the condition as this one. So, what we have did assume the boundary hold for n by 2. So, [01:15:15] what we have did C floor n by 2 log of floor n by 2 plus 1. So, we ultimately what we are [01:15:22] getting C of log of n by 2 plus n. And if you know, remember the property, if I have [01:15:30] remember then it is C n of log of n by 2 can be bifurcated as n of log of n minus n of [01:15:40] log of 2. So, if you see here it is less than or equal to, so I am taking the boundary case [01:16:12] that is C n log n, C n log n minus this one and you can say this is less than C of n of [01:16:25] log of n. So, this is induction we are primarily applying, we have just assumed that this could [01:16:30] be the solution. So, from this here we are directly writing this, then we are expanding [01:16:36] it and ultimately we are achieving this solution. So, but this mechanism is not viable because [01:16:42] let us say you are not an experienced person, you can directly guess the solution. [01:16:46] So, this substitution method is pretty tricky and let us say during induction we are taking [01:16:53] some values of n to prove this relation, but it is not correct beyond that value. So then [01:17:00] also this substitution method is not applicable. [01:17:04] Then this is recurrence tree method that already we have did, n by 2, n by 2 and so on. So if [01:17:12] you see one example, this is the recurrence relation for merge sort. So basically what [01:17:17] we are doing n, n by 2, n by 2, n by 2 square, n by 2 square n. So, until we are reaching [01:17:23] to the 1, 1 element label. So, basically if you see what we are doing, n, n, n, how much [01:17:31] time? Log of n time. So, basically we are getting n of log of n. So, okay. So, I hope [01:17:44] you understand how this is happening. So, this is n element, n element and how many [01:17:50] time these are appearing log of n time. So obviously, it will be log of n of log of n [01:17:55] that was the actual computational complexity. So I hope you understand little bit. So you [01:18:01] have to just guess a solution, then try to establish this solution holds. And then we [01:18:10] can declare that the solution what we have assumed is correct. [01:18:14] And similarly in recurrence tree method, basically this is similar to what we were doing in divide [01:18:19] and conquer forming a tree like a structure and n by 2, n by 2, n by 4 and so on. And [01:18:25] then we are getting the computational complexity like this. [01:18:28] So next method that is important method that is master's theorem. So this, assume the problem [01:18:37] is of this form that is Tn equal to a Tn by b plus Fn. If you remember Mercer was 2t n [01:18:48] by 2 plus n square. So, here f n is n square and one important thing is that n is the size [01:18:56] of input, a is the number of sub problem and n by b is each sub problem. And one important [01:19:22] consideration here is a should be greater than or equal to 1 and b should be greater [01:19:27] than 1. If b is not greater than 1, then the algorithm will never converge. The problem [01:19:34] should be reduced and fn should be greater than 0 and asymptotically positive function, [01:19:42] this should be asymptotically, okay. So, if the problem is having this type of structure [01:19:57] where a is greater than or equal to 1, b is greater than 1 and fn is a positive function [01:20:03] and then we can easily apply master's theorem. In master's theorem, there are certain cases. [01:20:11] So we have to, whenever we get any problem of recurrence relation, we have to first determine [01:20:15] a, b and fn, then we can apply the master's theorem. [01:20:19] So these are the three cases. [01:20:22] If fn, so what we determine from the problem a, b and fn and even whenever we determine [01:20:31] it immediately determine this n to the power log of base b, a and try to compare with fn. [01:20:40] So if f n is equal to n to the power log b b a and we have to reduce something from it, [01:20:49] likewise n square and we are getting n to the power 2.26. So what we have to do? Basically [01:20:53] we have to reduce some epsilon that is 0.26. Then we are in the case number 1 and we can [01:20:58] easily declare the computational complexity as n to the power log of base b a. So I am [01:21:04] stopping here because this will take some time and making it half done will be difficult. [01:21:11] So I am stopping here for today. In tomorrow's class, we will see in detail how master's [01:21:16] theorem work. We will try to see some interesting example on it. And we will also identify some [01:21:22] of the cases where this master's theorem is not applicable. [01:21:25] Afterward we will start the concept of the tree and the algorithms that are there in [01:21:32] the tree but probably master's theorem will be completed by tomorrow and in your quiz exam that [01:21:37] is supposed to happen shortly we will try to keep the portion till master's theorem okay [01:21:42] so thank you all for joining if anyone has any query let me know otherwise we'll close the session [01:21:48] so just one question as you said the quiz are actually around the corner so does the quiz are [01:22:05] going to be similar as assignment that we have yes yes totally similar totally similar [01:22:09] when i say totally similar so the pattern of taking the exam maybe see some of you can find [01:22:17] match the following true false like questions but no theory question you have to do maybe in your [01:22:22] end sam you have to write but i will try to avoid that one because it is very difficult for me to [01:22:27] evaluate a new person to write anything regarding that and any anything with respect to the lab so [01:22:35] that we have already discussed already but just to try to confirm whether so lab assessment will [01:22:40] be done in the last probably last last year from yeah and there will be kind of same key there is [01:22:46] will be a question there are number of choices so that will be a coding question or some little [01:22:51] bit theoretical so i'll try to tone down okay so that you people can do easy yeah focus thank you [01:22:56] sir i think what all the people who raised the hand are already unmuted sir okay this is [01:23:20] Sir, the syllabus for Quizman will start from like what will be the syllabus, sir? [01:23:30] From whatever we have covered so far till master's theorem. [01:23:34] Yeah, from the beginning to last, sir, like from the first algorithm. [01:23:39] Yeah, yeah, from making burger to master's theorem. [01:23:54] Now, say Anthony, do you have any questions? I already unmute you. [01:24:00] or i guess her doubt is resolved yes yes hello sir yes no sir uh this doubt is not related to [01:24:09] uh to this class uh actually i want to ask that we have already completed our assignment one [01:24:16] and marks also we can see but is there any possibility that where we [01:24:23] means we can see that where we are doing good or where the answer is wrong so not [01:24:32] all the people got that 10 on 10 yeah yeah and so then what I have to do I [01:24:41] have to take up that in the lab session as well that is one possibility and if [01:24:45] you realize okay you have made the wrong answer because of that we can [01:24:51] understand that where we make that did that mistake yeah yeah so then that is self-explanatory [01:24:57] then yeah so if it is self-explanatory that is good if because what i do give um for mid sorry [01:25:04] for after quiz i will take up all three in a lab and and try to finish it what was the actual answer [01:25:10] are for this okay sir that will be great then thank you sir vidya i didn't unmute you [01:25:33] huh yeah so if it is not self-explanatory by you then then we'll we'll see after quiz [01:25:38] and we'll take up all three questions and and try to give you the queries okay [01:25:45] is it clear i don't remember that will be before the sarah holiday okay okay [01:25:54] minap see i don't unmute you yes sir just one question assignment two will be up till [01:26:01] march short or beyond that that syllabus for assignment two i may have already discussed [01:26:10] regarding that one. In the last week where we were, so up till that it will come, so [01:26:15] till quick sort or so, or till maximums are varied it will come. [01:26:19] Okay, sure. Thank you. [01:26:21] Okay, so we are good to close. Thank you everyone for joining. But tomorrow class is important, [01:26:26] again I am repeating, do come because master's theorem is really interesting problem. So, [01:26:32] see that. Thank you all for joining.