[00:00:02] And in this case, the tree data structures are playing a pivotal role because there the access time can be reduced to order of log of n. [00:00:15] So, then we talk about this taxonomy is that data structure can be of two types, primitive as well as non-primitive. So, primitive, I am not going in, so that could be integer, float, double, long, double, string, anything. [00:00:31] anything and in case of non-primitive there are linear as well as non-linear so when i say [00:00:38] data structure is linear then i'm particularly concerning that the axis of the element will [00:00:45] follow a sequential pattern okay and element will be attached so first element will be attached with [00:00:53] the next next will be attached with the third will be fourth and so on so there will be a sequential [00:01:00] access from one side to other side and the one element appear after another so if you see [00:01:07] array so in array the location is fixed let's say i have to declare an array of size 100 [00:01:13] so 100 location will be reserved and we can store data sequentially okay and in case of linked list [00:01:21] is also offer the dynamic nature key and at runtime we could increase or decrease the size of [00:01:27] linked list as and when required. So that characteristics make it dynamic, otherwise it [00:01:36] is static. Then in case of non-linear or a hierarchical organization, if you see this [00:01:41] entire structure, it is forming a hierarchy. So this type of arrangement you will witness in tree [00:01:51] as well as in graph. And a single difference that differentiate this tree and graph is that [00:01:58] the formation of a boundary or a closed loop. If there is, then it is a graph otherwise it [00:02:04] is a tree. So, we can say that tree is a subset of graph with the condition that there is no [00:02:18] close, boundary or loose. That is not present in the graph. Then we have discussed about two [00:02:33] important data structures. Basically, these are also known as derived data structure. [00:02:39] They are derived data structure. So, that is stack and queue. Stack and queue are derived [00:02:48] data structure having some specific property like LIFO and PFO. Last in first out and first in [00:02:55] first out. So these were the discussions made in the last. So already we have talked about the [00:03:04] array. So array could be 1D, 2D, 3D, 4D as per our requirement. And then we talk about the link list [00:03:12] where we are storing the value in form of information and address link. So, if a node [00:03:19] in the linked list is there, so there will be some value or information or data and this will [00:03:25] be a link or address to the next node. So, in this first I will access this, then this, then this and [00:03:33] then this. And how we know which node is first node? So, there will be a specific pointer that [00:03:40] points towards the first place okay or the first node and last node will always hold an address [00:03:47] that points to the null. Null means that there is no further value. So, this is the how we can check [00:03:54] a linked list is. Then hierarchical arrangement tree and graph already we have discussed. So, [00:04:01] this these two things if you can check just look like okay. So, probably we will cover after some [00:04:08] classes stream grid detail. And then stack and queue as I have mentioned that that one follow the [00:04:16] last in first out other follow the first in first out. Then we talk about the core operation or in [00:04:23] algo in while studying different algorithms. What we will do? Algorithms we will discuss only on [00:04:32] these four things okay traversal traversal means that let's say there are 100 students in the class [00:04:39] if i say traverse these students so a person will go to all the students let's say they write their [00:04:46] name or write down their role number and come back so visiting all the nodes exactly once and [00:04:51] when i do search so there i am visiting the node but i am searching whether it is equal to certain [00:04:56] key or not if key font we stop our search okay then we will emphasize on insertion and then [00:05:05] last option is deletion so these four operations we will primarily perform while defining an [00:05:12] algorithm or basically while while designing any algorithm on we will emphasize on these [00:05:22] four aspects if these four operations are faster then that organization or that logical arrangement [00:05:27] is more suitable for us. So, then we talk about the how these two data structures are different, [00:05:38] that is linear as well as non-linear. And that concludes the last lecture. So, this was just a [00:05:44] revision. Now, let us begin. Now, let us talk about the thing. I am planning a journey from [00:05:55] patna to delhi okay basically usually what we do in the google map we see so it's so number of path [00:06:01] okay and from where from one path we are and from multiple paths we are choosing one okay [00:06:06] so now i am planning a journey from patna to delhi okay so now i have to write down an algorithm [00:06:20] okay that will make sure that i will reach from patna to delhi via car if i am saying [00:06:28] or any mode of transportation you can say drain you can say flight okay that I am taking now [00:06:40] why I am taking this so there are number of things okay let's say when you are going by flight so [00:06:47] that is one path from Patna airport you will go to the Delhi airport take care from from IIT [00:06:52] partner to partner and take care from um delhi airport igi to some specific location okay [00:07:04] where we have targeted earlier then from train also there are number of possibilities so you can [00:07:11] go with number of trains okay and depending upon the costing in train also there are number of [00:07:17] classes and categories okay now if you talk about the car journey okay if you talk about the car [00:07:23] journey okay then that will be more interesting okay flight and trains are not you can say they [00:07:31] are having a pre-specified path a schedule and everything but in case of car there are [00:07:37] number of possibilities okay now i am planning a journey from partner to delhi okay then [00:07:43] then one thing is that now i am going via car so i will think about number of factors okay [00:07:51] first one is the time which path i choose such that the you can the time will be lesser or when [00:08:00] just i'm picking here resource constraint so that is time okay now someone is saying [00:08:06] i will not use the toll roads okay i will not use the toll roads because they are charging high like [00:08:13] Purwanchal expressway, then Lucknow, Agra expressway, then Agra to Delhi, the Noida expressway. [00:08:23] So number of ways are there. So from Patna I will first reaches to the Purwanchal expressway, [00:08:29] then I will choose Lucknow, Agra expressway, then I will choose Agra, Noida expressway. [00:08:37] So what basically we are doing, we are following different, different expressway, but they have a [00:08:42] tolls. So, every time you have to pay toll on this. So, now I am thinking that I will not pay any [00:08:49] toll. So, I will use state highways, state highways. But here in cost of toll you are [00:08:58] getting what? Lesser time. So, one aspect is that the resource on which we are looking. So, first [00:09:05] factor that is the resource constraint whether your resource is time or whether your resource is money. [00:09:11] So, whatever the resource you try to take, whether it is a time or money. So, one factor comes. So, [00:09:19] while designing an algorithm, we have considered a factor that is a resource constant and resource [00:09:24] I am emphasizing primarily on time and money. Second thing is that numerous waypoint. Numerous [00:09:31] waypoint means that waypoint is nothing but the intermediate stoppage or the intermediate location [00:09:37] we wish to visit. So for example, when I am leaving from Patna, so let us say I wish to visit [00:09:42] Varansi, Prayagraj, then Kanpur. So I plan to also visit Varansi, then Prayagraj, [00:09:57] then I want to visit Kanpur. So that factor will also come into the picture. So let us say [00:10:05] I do not want to visit these cities, so I will take a path. If I want to visit one of the city, [00:10:09] i will go there and and take the path so there will be a uh you can say uh selection of numerous [00:10:16] waypoint there are some person who had some favorite thing like some some uh some hotels [00:10:27] or some bus where they will surely visits so that will also treat it as a waypoint okay then other [00:10:34] factor will also come into the picture that is subjectivity human biasness human biasness means [00:10:39] that let's say i want to eat from some air tree okay and i want to stay in some comfortable hotel [00:10:49] during the bath okay i want to go to some specific place uh let's say temple or some [00:10:55] workshop place okay so that things are there so what are the things uh why we are discussing on [00:11:02] this journey from Patna to Delhi because when you design an algorithm now you are asked to make an [00:11:09] algorithm that all the users who whoever wish okay whoever wish can plan a journey from Delhi to [00:11:18] Patna on their you can say their conditions okay so their condition may be a resource constraint [00:11:25] their condition may be the the specific way point their condition may be there's some human [00:11:30] badness that they will not drive in night or they will not drive in morning. So, number of things [00:11:34] will come into the picture. Okay. Now, just I will add one more slide, a blank slide, then we will [00:11:41] discuss. Okay. So, now I am making an algorithm that should consider three factors. That one is [00:12:14] resource, time, money, petrol, everything. So, in time and money, of course, there will [00:12:23] be a petrol. So, if you are using expressly, so might be you are using more petrol or less [00:12:28] petrol that is then waypoint, then some human factor you can see. Now, let us say if I provide [00:12:41] I want to go from Patna to Delhi. Just source and destination I am giving. Then also your algorithm [00:12:50] will produce an output that is relevant for me. When I provide source, destination, resource, [00:12:58] I should use lesser time. Then also it is providing output. When I provide source, destination, [00:13:06] resource, waypoint. Let's say I want to stay in Varanxi for a night, then also it is producing [00:13:13] output. So, what this means that the algorithm is a generic and even it works well for partial [00:13:21] set of input. So, algorithm will work for subset of input. And if you remember the burger making [00:13:43] thing so what is it will not work for subset of input that is the you can say good thing about the [00:13:51] algorithm that it will work even for a set you can say subset or a for example when we want to [00:13:57] sort a number so we had make an algorithm that can sort a number so even we provide 100 number [00:14:03] even we provide 10 number even we provide 20 number even we provide a 10 000 number the algorithm [00:14:09] is working fine so this is the difference between making burger and and and and saying it is an [00:14:14] algorithm because making burger could be feasible when it has a fixed set of input and algorithm [00:14:21] says that the input could be the input could be input could be variable the input could be variable [00:14:34] Okay. The input could be variable. Okay. Okay. Just taking a break for a minute. I am coming back [00:14:49] then I will take the queries of you. Okay. Again starting. So, let me conclude then I will take [00:18:00] the query. So, we have created an algorithm that is applicable or that is true for a subset of [00:18:09] input. That is true for a subset of input and this thing was not feasible when we are saying [00:18:15] that making burger. And even we are not just supplying source and destination, it will give [00:18:20] you a specific path I should follow via car and then I will reach to the Delhi in this much time. [00:18:25] When I provide a specific resource constraint, then it is working. When I am providing [00:18:30] different waypoint, then it is working. So now when you develop this algorithm, [00:18:34] then that is acceptable and it is true for all sets of input. So, similarly, let me do for another [00:18:45] 5 minute on 8.30, I will take the queries for some time then we will proceed. So, if I go with [00:18:51] an another definition, so what it says, an algorithm is any well-defined computational [00:19:00] procedure that takes some input value or set of values that is important here if you can take [00:19:07] some input value or set of values as input and produce some value or set of value as an output [00:19:14] in finite amount of time this we will talk about when we talk about p and np problem okay okay so [00:19:23] there we will talk about what is finite amount of time and other stuff okay so algorithm is [00:19:29] a well-defined computational procedure that takes some value or some set of input [00:19:36] or basically what we are doing is a sequence of computational steps that transform the input into [00:19:44] output okay and here it is talking that when we have sequence of n numbers then we are getting a [00:19:52] sorted order or anything so that is also a sorting problem in algorithm okay so [00:20:04] So, during our entire discussion in algorithm, when we witness different algorithm, then [00:20:15] this is important. [00:20:16] We will primarily see the algorithm that is sorting or in some time we will find some [00:20:21] algorithm that is searching or these two operations will dominate our entire discussion in the [00:20:29] algorithm. [00:20:30] okay now there is one question which algorithm is best for a given application depends on number [00:20:38] of factors let's say i choose algorithm if you have heard about i will choose insertion sort [00:20:45] okay if you don't heard about don't worry i will i will cover all things or i will use merge sort [00:20:51] or i will use quick sort okay or i will use uh counting sort i will use bucket sort [00:21:03] okay so there are a number of sorting algorithm and it depends upon what multiple factor with [00:21:09] algorithm i will choose so let's say when i teach only insert and sort so you do not [00:21:13] have any other options so you will primarily use insert and sort for all the sorting purpose okay [00:21:20] but when you know merge sort then you think that okay merge sort is little bit faster than [00:21:25] insertion sort okay and i can use merge sort because the size of input is very high and [00:21:32] merge sort will definitely increase the computational requirement okay so similarly [00:21:39] when you encountered quicksort so you think that we may use quicksort because it will produce the [00:21:46] answer in a similar time as merge sort, but maybe faster in some instances. So, kind of [00:21:52] things we will discuss while separately discussing all the algorithm, which one is better for which [00:21:59] scenario. Now, here is first condition because we have said that the the primary operation that we [00:22:07] will see will be sorting. So, number of item to be sorted, what is n? So, if n is very small, [00:22:14] so we can use any of the algorithm if n is large then we will choose accordingly second thing is [00:22:21] that the extends to which the items are already sorted that is important aspect okay so if we [00:22:29] we want to sort some element like one three five nine okay here it is seven then 21 25 so here [00:22:39] what we see only one element is misplaced. Or if entirely let us say 2, 1, 3, 4, [00:22:50] 9, 6, 8, 10. So, here the elements are not you can say more towards their actual position. [00:23:00] So, extends to which the items are already sorted. So, that is another aspect or that is another [00:23:07] factor. Second thing is that possible restriction on the item value. So, there may be some restriction, [00:23:18] the item should not go beyond this or beyond that. So, that factor also we consider. The [00:23:24] architecture of computer, kind of storage device use. So, there are multiple factor while selection [00:23:29] of the algorithm for a specific scenario. But I am very clear at this stage that these factors [00:23:36] you need not to bother above. Okay. Because when we see different algorithm, then you will [00:23:42] automatically realize, okay, if in a specific scenario I want, then I will choose this algorithm, [00:23:49] this algorithm. So, after seeing around, let's say, 7, 8 algorithms of sorting, [00:23:55] all these questions will be automatically solved. I am not more clear about this 4 and 5, [00:24:00] whether it will be solved or not, but these three will be definitely solved. So, nothing to worry at [00:24:05] this stage. Because assuming you people are from diverse backgrounds, so that is not a concern. [00:24:13] Now, going ahead, probably this slide is not very much clear, but when I will say, so try [00:24:20] to make it more clear. So, next thing is that, next important aspect that already we have [00:24:26] discussed that is correctness of an algorithm. When we say an algorithm is correct [00:24:31] or not correct. So, an algorithm for a computational problem is correct if for every problem instance, [00:24:48] that is important. If for every problem instance, problem instance means that half problem, [00:25:03] partial problem that we were doing if we were just only providing source and destination. [00:25:10] So provided as input, it halt, finish its computation in finite time and output the [00:25:18] correct solution to the problem is done. So what it say that if we are providing [00:25:23] partial input, then also our algorithm is working. If they are providing all input, [00:25:28] then our algorithm is working. So this means that there is no cap over the what input we are [00:25:34] providing. Okay, let's say I only provide source. Okay, so it will ask you for the destination [00:25:39] where you want to go so that kind of arrangement you have to do and here it is a thing written [00:25:48] every problem instance providers as input and output the correct solution okay let's say i [00:25:56] provide two number for sorting then it will work when i provide three number for sorting then it [00:26:05] will work when i provide a thousand number for sorting then it will work okay so if you talk in [00:26:18] terms of correctness so the single thing that it is true it is correct for every instance for every [00:26:27] problem instance instance means that a portion a part or even entire thing okay that is important [00:26:34] okay the algorithm can be uh uh if you talk in the just in terms of english so it is a computer [00:26:41] program or even a hardware design that is now you can skip so now important is that [00:26:50] what kind of problem are solved by algorithm okay so um there were problem before the introduction [00:26:58] of some algorithm and what problem they have solved. For example, a problem I guess some [00:27:09] of you have heard about determining the sequence of 3 billion chemical bases, 3 billion chemical [00:27:19] bases or chemical base pairs that make up human DNA. So, I guess in all this crime and other stuff [00:27:36] we have heard about the term that DNA matching. We heard about the term that is the culprit DNA [00:27:44] match with the on-site some evidences. So then we declare that there is a high chance that the [00:27:51] person is a criminal or have done some crime. So DNA matching is very popular because of one [00:28:01] of the algorithm okay some of you know that is called string matching okay manually if we perform [00:28:08] matching of 3 billion chemical bases so it is very difficult now just we provide the values [00:28:14] and string matching will check out whether this pattern is available in another string or not [00:28:20] or whether this string is available or not then in that case this is so we will see also some string [00:28:26] matching algorithm where we will try to identify one string s1 and one string as to how they are [00:28:32] matching or whether there is some similarity or not. If the similarity is more than 95 percent, [00:28:38] we declare the same DNA. So, this is a common practice. So, we will see string matching in [00:28:44] detail. Now, next thing is that next example that is the internet enable people all around the world [00:28:51] to quickly access and retrieve large amount of information so how data is flowing what type of [00:28:58] network speed what bottleneck we can hold so that comes from the network flow analysis algorithm [00:29:03] that we will cover again that is network flow analysis okay so sometime we say key operator is [00:29:13] saying your network speed is good but we are not getting the same speed at our home so maybe possible [00:29:18] we are using the access points that are not capable enough to uh to accommodate that label of [00:29:26] speed okay so that is another example for example um in iit partner we have found that [00:29:33] there were on the ofc link were of 10 gbps but at some point um um the the you can say [00:29:44] access switch those who are getting can understand and for those so assuming access switch were only [00:29:50] support one gbps so there was a bottleneck so we have eliminated those so that comes from the [00:29:56] algorithm type that is called as the network flow analysis then in e-commerce we are nowadays doing [00:30:03] negotiation and other stuff that is another set of algorithm inventory management is another set [00:30:09] of algorithm okay and um shortest route path so uh we always take so traveling salesman problem [00:30:17] okay or that is also called as minimum spanning tree so this we will cover in a detail so that [00:30:23] is not a problem at all but just giving a glimpse of what type of things this so because uh in most [00:30:28] of the cases uh you you people have heard why i am studying this why i am studying algorithm okay [00:30:35] Is there any real world application? Yes. So, why I am studying this? Just to get a marks or [00:30:43] get good grade or there are some real world application. So, yes, of course, there are [00:30:49] multiple real world applications. There are multiple real world application. Now, [00:31:19] just covering these two, three slides or we will take your query then cover this. [00:31:30] yeah put it so one by one enable mic for those who are raising hand i will take i guess some [00:31:34] queries are there then then go ahead yeah okay i think kinshuk is there first and then kushagra [00:31:41] l on their mic one by one yeah yeah kinshuk you can go ahead [00:31:56] hello am i audible yes yes you are audible good morning sir good morning sir i'm from third [00:32:03] semester mca and i wanted to ask to you that do you have any details for a minor project that is [00:32:09] mentioned in our curriculum no that detail i cannot i don't have even the information regarding [00:32:17] how it will proceed i know about empty by i i don't had any idea regarding mca what would you [00:32:23] have to do okay sir thank you sir yeah good afternoon sir yes your voice is little bit [00:32:43] sagis be louder sir i want to know that i am kushat for mcl so i i want to i have studied [00:32:51] tsa so i want to know sir both uh both subjects have algorithms so how tsa is different from da [00:32:59] and so why you have to study both okay so actually uh data structure and algorithm will [00:33:08] um will first go towards different data structures if you see the taxonomy dot what we have covered [00:33:14] so far array link list stack q all so these aspects we are not covering going to cover in [00:33:21] the da okay designing an analysis of algorithm here we will primarily emphasize on different [00:33:26] algorithm their computational complexity analysis okay so you can say when you don't know the data [00:33:33] structure so it is very difficult for you to go into the algorithm aspect or when you directly [00:33:38] jump to the algorithm then it will be difficult okay so uh dsa is designed in such a manner that [00:33:43] it will cover both the aspects of data structure as well as some aspects of algorithm but here in [00:33:48] da we will primarily cover the algorithmic aspects and their computational complexity analysis [00:33:53] though as and when the different data structure come i will also talk about that but not in big [00:33:59] detail yeah thank you sorry any other question related to the the lectures i have teach or any [00:34:12] so far so just let me know oh hello sir i'm priyanka good morning sir sir i wanted to know [00:34:26] if you can share sample papers also for the subject for mtech okay i will try but don't [00:34:34] worry when you give the first quiz you will identify that it is very easy to go on so mostly [00:34:39] objective type you will get so don't worry about that and sample paper even i have to make again [00:34:45] we'll try if i can give you okay or in some lab i will discuss some type of questions [00:34:50] uh okay and i mean around one two lab when your quiz one is about to start i will discuss what [00:34:55] type of questions are being asked okay sir okay or you can give previous years papers also [00:35:03] so because it is on moodle and once the semester ended everything lost so that is happening so [00:35:08] we'll try i will try good morning professor good morning uh i have a question with respect to this [00:35:29] string matching algorithm uh does it in real world it sounds to have a similarity with [00:35:35] semantic matching where we also do the string uh analysis whether the text is matching to [00:35:42] the another test rather than the rejects like a to and fro algorithm but here we do in terms [00:35:49] of semantic analysis so does it yeah yeah and i i totally agree with you because this string [00:35:54] matching was you can say the base then upon the top of it we have started doing semantic analysis [00:36:00] and other stuff so so that is yes obviously they are related so string matching you can say it is [00:36:06] a you can say forefather and and the cementing mapping in the current generation so that is kind [00:36:12] of thing so when we will study yes when we when we will study we will find multiple correlations [00:36:19] because on the base the things are same so as a use case i think that resembles it yeah yeah [00:36:26] definitely that reason because i i cannot go directly into the semantic matching matching [00:36:30] because of the the diverse background people we are addressing so of course they are related [00:36:36] okay thank you so much thank you so much yeah yeah you can go ahead [00:36:47] yes be louder yeah okay uh sir actually uh i have missed the last class so uh duty taking the [00:37:02] id on hackathon i have not used this naming convention like roll number and then your [00:37:10] number so is it okay or i should change my profile name with roll number and your name [00:37:17] no no no no that is not an issue so from your email everything will be automatically captured [00:37:22] because when your email is saved in our database so multiple informations are also being engaged [00:37:27] so that is not an issue okay that's why i'm every time i'm saying join with your iitp id [00:37:33] because i am also the head cc so i know what informations are being saved so that is not [00:37:39] Okay, thank you so much sir. [00:37:42] Quickly, I will take the queries. [00:37:52] Those who have non-technical queries like classes and other stuff, [00:37:55] so we will see after 9.30. [00:37:57] I will wait and take. [00:37:59] Those who have some queries related to what I have just taught, [00:38:01] then just let me know. [00:38:03] Anybody else? [00:38:23] Because I am seeing number of hand being raised. [00:38:26] I have a think about that. [00:38:30] Yeah, GC Sarma, you can go ahead. [00:38:39] You can query. [00:38:40] I am good at you. [00:38:42] Yes, other person. I think GC sir might be giving you something. [00:39:04] Yeah, Prashant. [00:39:05] Hello, good morning sir. [00:39:10] Good morning. Be louder a little bit. [00:39:13] Yeah, yeah, yeah. Sir, I am a first year student. [00:39:17] Yeah. [00:39:18] So for my query about in a DAAR, the one thing that is very important is the complexity, [00:39:23] like time complexity and stress complexity of the algorithm. [00:39:27] So for you to cover this topic? [00:39:30] yes yes i guess in next lecture onwards you will see yeah i will cover in i will spend [00:39:37] around two three lecture on this time complexity analysis yeah yeah okay i've tried to solve most [00:39:56] of the queries if you have any specific query we will again come back okay so let me continue the [00:40:02] the lecture or okay this one or two i can take one or two more i can take uh punit is uh provide [00:40:16] access to them i have access given to subhasis bakchi and yes hi sir good morning so my question [00:40:29] is that like uh to what extent the proficiency in coding is required in order to like uh do this [00:40:36] algorithm subject and do we need to like participate in like competitive coding [00:40:42] uh if you had time everything is there if you don't have time because assuming you people are [00:40:49] all professionals so just follow the labs and if you're able to understand the question in lab and [00:40:54] do the question in lab that is more than enough i guess okay thank you sir yes i've given to many [00:41:07] one you can see your screen and see the number of mic enables yeah okay this uh dr gc sarma can [00:41:16] can ask his query oh sir good morning yeah good morning yes how do we decide if an algo design on [00:41:29] paper will perform efficiently on a computer okay because when we do the analysis asymptotic analysis [00:41:36] uh when we talk about big o little little big omega so that is a theoretical analysis okay [00:41:42] theoretically we are assuming that when the number of input is n, so your computational [00:41:46] complexity reaches to order of n square. But that does not exactly match with your machine. [00:41:51] Maybe I am using some high-end processor like i7 and someone uses i3. So the time complexity will [00:41:59] vary based upon the architecture as well. But in general, how your algorithm will behave and [00:42:05] that is theoretically we are stabilizing that these things are necessary. So other factors [00:42:12] are also there but most important factor is the input size that will play a pivotal role so that [00:42:18] we will discuss so we cannot say directly say the algorithm is taking let's say xr so that is [00:42:25] applicable for all the platform all the architecture but in more or less way it will be behaving [00:42:30] likewise okay so that is a you can say exactly you can never say let's say two i7 machines [00:42:39] are running same algorithm but one has pre-loaded multiple programs so it's the speed may be slow [00:42:44] or some machine is a very new so it's the speed may be faster so there are other factors but in [00:42:50] general we assume that it will follow likewise okay not exactly we are claiming thank you sir [00:43:01] hi sadhar srinivas have a question so assuming that the hardware constraints are the same [00:43:10] uh how do we make an apple to apple comparison in terms of two algorithms say for example we have a [00:43:17] merge sort and a quick sort now which one perform better assuming that now the hardware and other [00:43:24] extra yeah yeah sure sure so that so let's say i'm uh when we say so we have to take a larger [00:43:30] input size let's say i'm taking 10 millions number for sorting from insertion sort and merge sort [00:43:34] so we'll definitely see the time difference. Are there any specific parameters on which [00:43:45] you will say okay if these three are good enough the method A is doing good when compared to method [00:43:50] B? Yeah so we will talk about in asymptotic analysis we will talk about the input size [00:43:56] determines the computational complexity. So when your input size is larger and we know that it [00:44:01] follow the order of n square n log n n so of course n will perform better so that we can [00:44:07] visualize okay when we have a larger input size you can see the difference actually [00:44:11] and even even when you are running on i7 machine if you do factorial 5 factorial 6 [00:44:18] of even factorial 10 so you cannot differentiate the time but when you do factorial 100 you can [00:44:22] easily get the difference it will take more time so that that you can visualize okay for it sir [00:44:29] thank you yeah okay uh let me continue because if i go with the question and questions who [00:44:43] you all people so separately we can talk hours okay but we have to also finish the syllabus [00:44:48] so i'm starting and again i will come back and take the queries of all of you okay so okay so [00:45:00] now uh critical consideration in an algorithm first one is the time complexity time complexity [00:45:07] simply you can see that the clock time the algorithm will take as that is theoretical [00:45:13] again and that is theoretically we are analyzing okay theoretically we are saying the time [00:45:21] complexity so here i have written one term if you see delay game okay so uh if you go back [00:45:30] 10 years from now so you will find the internet speed was in kbs and still we are happy now we [00:45:36] have reaches to the internet speed in gbs and and the company that offer a lower speed so people [00:45:43] will shift toward the company that is offering a higher speed okay so so this means that faster the [00:45:49] algorithm the chances that you will get a good response from the market okay so therefore the [00:45:56] algorithm that is having a lower time complexity than some algorithm so obviously that algorithm [00:46:02] will win so time complexity play a pivotal role in determining the complexity of algorithm or [00:46:09] selection of an algorithm then next factor was space complexity it was very popular when there [00:46:16] was a memory constant now we have reaches in um your your laptop ram is more than 8 gb your ssd [00:46:23] and other stuff so space complexity is not becoming a complicated factor apart when we are doing some [00:46:30] ai based algorithm that then then again it will come but in general algorithm we are not much [00:46:36] more considerate about space because for running some program we required few kbs or even mbs of [00:46:43] memory not beyond that okay and uh unless we are doing some ai and other stuff so space complexity [00:46:50] is not prevalent in our aspect what we have we will discuss so far in this course but when we [00:46:55] we talk about AI and ML algorithms. So, of course, the space will play a role. And combining these [00:47:02] two, time and space complexity, there is new term introduced that is called computational [00:47:06] complexity. Computational complexity means that both considering the strike a balance between [00:47:12] time and space. But in this course, we will primarily talk about the time complexity. [00:47:18] Space complexity we will also discuss, but time complexity will be more prominent. [00:47:23] We will try to reduce the delay. We will try to optimize the selection such that our algorithm [00:47:30] will work faster. Then this is important. This will come again and again and again. Then [00:47:49] there is some approximation. So we will see some aspects. So making a balance between [00:47:56] precision and computational efficiency. What this means that if your algorithm is working [00:48:02] on int, integer value, or if your algorithm is work on float. So of course, precision [00:48:08] of float is higher, but it will require 32 bit of memory, but int will require how much [00:48:14] 8 bit of memory. So in this, this and the computation is also reduced because we have [00:48:20] to deal with only 8 bit and computation increases because we are dealing with 32 bit. So this [00:48:25] means that the if you compromises our precision, we will get a faster speed. So of course, [00:48:31] will come in terms of time and space just taking a short break for two minutes then coming back [00:48:37] again yeah sorry for the interruption okay so uh let us start so we were discussing that uh the [00:53:09] aspects that are uh being needed so one was time complexity other was space complexity then we [00:53:15] talk about some set of approximation if you can enable then your your algorithm will work faster [00:53:22] okay then um other aspects are failure probability what are the chances that this algorithm will fail [00:53:30] because let's say when we have developed an algorithm for moving from patna to delhi so uh [00:53:36] so failure probability will be road closer okay that we hadn't considered okay so what are the [00:53:42] alternative if there is a road closer okay so that is other respect robustness and error handling okay [00:53:48] scalability, parallelization that we can achieve in algorithm. So these aspects, these four to [00:53:53] eight aspects are not part of algorithm itself. Somewhere we will talk about approximation, [00:54:00] but other things you will see in a subject name that is called advanced algorithm. [00:54:08] So that will work on the top of the algorithm subject. So don't worry about these terms. [00:54:14] so approximation basically that one failure probability means that it's in if some failure [00:54:19] happened to your algorithm so how it will tackle okay how it will handle the errors and what is [00:54:25] the scalability scalability means that if your algorithm is correct for 10 input so whether it [00:54:30] is correct for 10 000 input so that scalability is uh tested and uh during the scalability analysis [00:54:36] we will uh talk about the asymptotic analysis how your algorithm will behave when input and [00:54:43] tends towards the infinity. And parallelization and concurrency, is there any possibility of [00:54:49] parallelly running your program or concurrently running some of its aspect? We all know that [00:54:54] there are, let us say your PC is octa-core. The processor is octa-core. So 1, 2, 3, 4, 5, 6, [00:55:02] 7, 8 are there. But if you do a sequential coding, so you will always use one core, [00:55:07] core 1. Other cores are remain idle. So, how you can engage other code as well? So, [00:55:15] that is the aspect that you will covered in the parallelization and concurrency. [00:55:21] Then the last aspect of this discussion is algorithmic designing technique or sometime it [00:55:29] is also called as the that is called algorithmic paradigm algorithmic algorithmic paradigm okay [00:55:53] so algorithmic paradigm means that how you are designing an algorithm that can be brute force [00:55:59] brute force means that if i have to search something i will search all the possibilities [00:56:04] all the possibility is verified. So, that is simplest designing technique. So, it is systematically [00:56:19] exploring all possible solution until you get a correct one. So, for example, if my laptop is [00:56:28] misplaced laptop is misplaced or my laptop is misplaced okay and i want to identify where my [00:56:41] laptop is so i am searching in my bedroom dining washroom kitchen outside garden so that will cover [00:56:48] all the aspect unless we find the laptop in our dining hall okay so here we are not applying any [00:56:54] sort of intelligence, we are just doing searching, searching all the aspects. So, that is a simplest, [00:57:00] but its time complexity will be definitely higher. Next thing is called as the backtracking. [00:57:08] So, backtracking means that everyone has I guess solved the Sudoku problem or have seen [00:57:13] is, seen this problem. So, Sudoku is a systematical strategy, [00:57:20] exploring all possible solution in a structured manner. And whenever we found that we are not [00:57:26] reaching toward a solution step, we will do a backtrack. We will do a backtrack. [00:57:32] Backtrack means that we will go back. Sudoku, if you remember, you have solved. If you are not [00:57:37] getting, so we will go back and check, make the changes, then come back to some other path. [00:57:43] Okay. So that is backtracking. So we will cover one by one all the aspects. Greedy is, that is, [00:57:49] of course you people know we will know about talk about the local optima or local minima at the [00:57:54] stage without bothering about the global minima okay so what the things are correct at this instance [00:58:00] i will do it whether it is so i will cheat in the exam to clear the exam i will not bother about [00:58:06] whether it is it will let me to some loss or not i will just do a cheating in the exam so that is a [00:58:11] local optima or local minima okay and then there is aspects of dynamic programming so divide a [00:58:18] complex problem into simpler overlapping sub problem. So, dynamic programming and what it [00:58:24] will do, it will store the result of sub problems to solve a large problem. So, dynamic programming, [00:58:49] we will see number of algorithm like matrix chain multiplication, assembly line scheduling, [00:58:53] other are there. So, we will cover one by one, one by one. So, dynamic programming is [00:58:57] where we are storing, we are dividing the problem into sub problem and storing all the results in [00:59:02] the sub problem to get back the solution of the entire problem. Then we will see divide and conquer. [00:59:09] So, shortly you will witness that we have started this divide and conquer algorithm. [00:59:14] So, breaking down a complex problem into smaller one or more manageable sub problem and each sub [00:59:20] problem is solved independently. So, that is divide and conquer. Divide and conquer means [00:59:26] that when we have very large problem we will divide into sub problems solve all the sub [00:59:31] problem combine them and we will get back the result okay so these are the algorithmic paradigms [00:59:37] these a b c d and e okay and even there is one more that is called branch and bound [00:59:46] that we will explore at clearly here branch and bound okay so if you talk about the algorithmic [01:00:01] paradigm or way how algorithms solve. So, I can just write two things that are being [01:00:09] written here, I will explain. Later on just give me. So, algorithmic paradigms, the first [01:00:34] one is brute force. This is not very popular because of the time complexity, then there [01:00:41] is divide and conquer. So if you have in history, we have talked about the Lord Kurjan for partitioning [01:00:51] of Bengal and other aspects. So that concept is driven from same. Then we have dynamic programming, [01:01:07] then we have backtracking, then we have greedy, then we have branch and bound. [01:01:24] so these are the algorithmic paradigm and in each paradigm there are multiple algorithms okay like [01:01:30] in divide and conquer we will see merge short quick short binary search and we will see maximum [01:01:44] survey so there are a number of problem okay in case of dynamic programming we will see matrix [01:01:52] exchange multiplication. Okay, so number of problem in each aspect we will see, I have [01:02:02] been backtracking, NQN problem that is famous subset sum problem. Okay, in greedy, a knapsack [01:02:07] problem. So number of problems are there. So these are the, you can say umbrella under which [01:02:12] there are different algorithms. Okay, then two things that here it is written, it is not an [01:02:17] algorithmic paradigm that is NP completeness. We will talk about if a problem is not being solved [01:02:22] in a finite time. So, it may go to the NP completeness where we will talk about P type [01:02:29] problem, NP type problem, NP complete problem and we will talk about NP hard problem. [01:02:38] NP hard problem. So, that is other aspect. So, and there are certain set of randomized algorithm. [01:02:45] So, leveraging randomness in fundamental concept, incorporating a degree of unpredictability. [01:02:51] okay so these are some advanced algorithm if time allows so we'll cover some randomized like [01:02:58] randomized quicksort is one of the famous example in this okay so now this is just an overview of [01:03:05] what type of things that we are going to cover slowly slowly okay so let us begin our discussion [01:03:13] on the algorithmic analysis. Okay. So for knowing the algorithmic analysis, I will [01:03:21] share this PPT. So you will receive by afternoon. Okay. Already I have shared this one, but the [01:03:27] updated one I will upload. Okay. And let us begin that. So now we will talk about the, [01:03:36] here I have written lecture 2 and 3 because we are in lecture 2 and it will take another [01:03:40] lecture for completion of these PPTs. But I will share this today only. So, to do algorithmic [01:03:47] analysis, we have to know some of the you can say definitions or examples that we are covering here. [01:04:07] First property that is called as the monotonicity. First property is called as the monotonicity. [01:04:16] okay. Monotonic, if you know, so that is similar type of behavior is repeating again and again, [01:04:23] similar type of behavior is repeating again and again, okay. So, from there it monotonicity come. [01:04:31] So, it says that if a function is increasing, so it will keep on increasing. If a function is [01:04:37] decreasing, it is keep on decreasing, okay. So, a function fn is monotonically increasing if [01:04:46] two values we are taking m and n. m is less than or equal to n implies that fm is less than or [01:04:53] equal to fn. So we are considering two points if this is m point and this is n point and we know [01:05:00] that the function is increasing. So of course we will get f of m less than f of n because we have [01:05:07] chosen a higher value and since this is an increasing function so we will always get what? [01:05:12] the function value will change accordingly. Similarly, we have monotonically decreasing [01:05:19] if m is less than n, now it is decreasing. So, what we will get fm is greater than fn. [01:05:25] So, this is you can say here, here I have taken m and here I have taken n. So, of course, fm is [01:05:32] greater than f of n because of decreasing nature. So, monotonicity means that we will ensure that [01:05:39] this function behavior is seen throughout okay now if you talk about two other aspects so that [01:05:50] is strictly increasing here it is written strictly increasing so here we are not using equality sign [01:05:57] and here you can see there is missing of equality signs so when we say it's strictly increasing so [01:06:03] it is claiming that at no point of time the m is equal to equal equal to n or fm is equal equal to [01:06:19] n. So, there is a strictness that is ensuring that at no point of time the comparison could be [01:06:27] made. If you talk about strictly decreasing same equality sign is missing at no point of time, [01:06:33] both fm and fn will be seen. That is the aspect. Now, I hope monotonicity is clear. Monotonicity [01:06:41] means that. So, if I write fn equal to n square, so that is the for n greater than 0. So, you will [01:06:53] get a function like this one or if I draw a function like this one or I draw a function. [01:06:59] okay so all are if you can see of different so these are monotonically increasing these are [01:07:16] monotonically increasing okay if i draw a function like this one or some this one so these are [01:07:25] monotonically decreasing okay so uh these why am we are studying this because we will see [01:07:38] while determining the computational complexity, we will identify functions that are monotonically [01:07:46] increasing because with the change in input size, when input size increases, none of the [01:07:51] known algorithm on this earth will decrease its computational complexity. Will what? Will [01:07:57] can reduce the pace of increase, but they will always increase the computational complexity. [01:08:03] So, while determining the computational complexity of an algorithm, if we are able to stabilize [01:08:10] monotonically increasing things, so it is very much easy for us to determine the computational [01:08:15] complexity of that algorithm. [01:08:18] Now, I hope there is no query or we will take. [01:08:23] Yes, Puneet, so if someone has query, let me know. [01:08:33] i think uh some new i can see is krishnan and viso karma let me yes oh mike [01:08:55] also there so please see your uh screen uh to whom i am aligned [01:09:01] was uh who have their raise their hand basically yeah uh hi hello sir good morning hello so this [01:09:09] regarding uh monotonicity which we are talking about right now so you said that in case of [01:09:15] decreasing also uh there is a condition that m is less than equal to n and for increasing as well [01:09:23] it is m is less than equal to n so for both the cases is it same or for increasing it will be [01:09:31] like m is less than or equal to n or for decreasing it will be m is greater than equal to n okay so [01:09:37] So basically what we are trying to do, we are trying to identify two set of values from [01:09:44] the line equation or something and try to make a representation like monotonically increasing [01:09:49] or decreasing. [01:09:50] So maybe possible, let's say I'm taking 2.00001 and 2.001, so which value is smaller or greater, [01:09:58] so maybe comparable somewhere. [01:10:00] But when we say a stricter, so that comparison is not possible or we are very much clear [01:10:05] to what the differentiating them. [01:10:07] so that that is same function is monotonically increasing and same function is monotonically [01:10:12] decreasing will never happen so that equality sign does not signify that whether m is less than n or [01:10:17] whether is n is is equal to n so that is two different things so they cannot be combined [01:10:24] okay thank you sir sir what is computational complexity computational complexity will comprise [01:10:32] both time complexity as well as space complexity but now what happened if we are having sufficient [01:10:38] memory and other aspects so when someone says computational complexity so primarily they are [01:10:43] referring to the time complexity okay the time in which the problem is being solved the the clock [01:10:52] time for example your algorithm take two seconds in getting the output someone algorithm take five [01:10:55] seconds so so that that will be the time complexity okay but theoretically we will [01:11:00] stabilize the order of n square and log n and other respect so that is different thing but [01:11:05] primarily we are concerned about the clock time the program will take in execution [01:11:08] thank you any other doubt hello sir good morning uh thank you first of all for the simplest way [01:11:43] of teaching i really loved it my i have two questions sir first is about the algorithm [01:11:48] you are teaching here are they also related to the ai ml because let's say my specialization is [01:11:53] aics uh in ms so would we have the same thing that that you will see so this is a you can say [01:12:00] base okay for example when we are using this macbook mac os or windows os so on the base we [01:12:06] are basically having unix so that that base will help you out in determining the fundamental [01:12:11] foundation right on top of it we'll have different custom algorithms okay yes all right thank you [01:12:17] sir the last question that i have is yeah uh the last question that i have is sir like for example [01:12:23] i am writing an application for you gave an example of inventory in eco market for say yeah [01:12:28] and i have to design an application for my company for inventory visibility okay so there like when [01:12:35] i and i'm writing my application in let's say uh java spring boot framework yeah so when i write [01:12:41] that application i have to ingest that in like my code or it comes like out of the box in the spring [01:12:47] this algorithm and i have to select it yeah so depending upon your requirement you will choose [01:12:54] some algorithm you have implemented it is working fine then then we will do the algorithmic analysis [01:12:58] so or or what is your requirements you have to handle the inventory or you have to do a sorting [01:13:04] of millions of items or you have to just sort few items so there if you just do item then yeah [01:13:10] sir i have a question regarding data structure uh so we covered uh last person who was talking so [01:13:18] let me finish yeah i'm i'm getting multiple voices right now [01:13:37] yes your voice is not clear or i am getting multiple voices hello am i only one only [01:13:42] probably Deshmukh is speaking I think okay but I guess his voice is not clear yeah it's [01:13:48] not clear hello hi yes yes please so can you ask again so Puneet provide access to someone [01:14:19] else let him fix the given to uh i think krishnan and krishnan asked right uh probably yes [01:14:31] then again i have given access to uh yeah yeah good morning everyone and good morning sir [01:14:42] just like you have given us some examples like monocity so this one can we get some [01:14:51] like examples also like where we are implementing and what is in value and values and how it will [01:14:58] be it's like increasing i got your point so uh when we will discuss an asymptotic analysis so [01:15:07] you will visualize everything so that i will ensure so just wait for one more lecture so that [01:15:12] that will come okay i will take one more and then then try to finish one or more property yeah [01:15:21] party one alia mudali is there he has party one alia mudali okay i think we can start yeah thank [01:15:42] you punit yeah okay so we have talked about the first property that is monotonicity so monotonicity [01:15:54] primarily we are saying that we are expecting the same behavior retained throughout retained [01:15:59] throughout means that when n was very low when your input size is very low then also this this [01:16:05] is applicable and when n is very high, then this is also applicable and even we do not [01:16:11] has a condition that after some time this monotonicity property will change or reduce. [01:16:16] So, that is one aspect. Second property that you will witness that is floor and ceiling value. [01:16:26] So, floor and ceiling value. So, before reading this theory, when I write floor, [01:16:34] So, I have to take an integer which is just less than this value. Let us say I am write 3.14. So, [01:16:41] the integer that is just less than this one will be how much? Will be 3. When I write minus 4.72, [01:16:51] the integer that is just less than this will be what? 5 because in negative series we have to go [01:16:57] in a reverse direction. Similarly, this is floor. Floor means that an integer that is [01:17:05] just less than this value. And when I talk about the ceiling, ceiling means that the [01:17:09] integer that is just greater than this value. So ceiling of 3.14 floor will be 4. Ceiling of [01:17:17] minus 4.72 will be what? Will be an integer that is just greater than this will be minus 4. So [01:17:25] these are the two aspects. So when I say floor value, floor value means that I am eliminating [01:17:30] the decimal and other aspect and I am giving you the integer part. And when I say ceiling value, [01:17:35] then I will give you an integer that is just greater than this value. So here it is written [01:17:41] for any real number x, we denote greatest integer less than or equal to x that is called as the floor. [01:17:52] Okay, so that the integer must be very close, very close to. For example, this is [01:17:56] greatest integer that is less than or equal to x is denoted by floor of x and read as floor of x. [01:18:06] And the least integer greater than the equal to x is denoted by ceiling of x. Okay, so there's [01:18:12] these two values are very famous. Okay, ceiling and float. Ceiling means that just greater than [01:18:18] and a float means that just less than. So, here is one property written. Before writing this [01:18:25] property, let us solve this. Then I will check out this property. So, I am talking about floor [01:18:31] of 3.14 will be 3. Ceiling will be what? 4. Root 5 is what? 2 point something. So, its floor will [01:18:41] be 2, ceiling will be 3, minus 8.5 integer that is just less than this is minus 9 and just greater [01:18:49] than this will be minus 8. 7, no integer issue, no integer issue. So that is there. So if I ask, [01:18:57] determine the ceiling of minus 9, determine ceiling of minus 9. So it will be what? [01:19:07] integer itself, that is minus 9. If I say determine minus 9.36, so it is again ceiling [01:19:19] is minus 9 because that is the integer that is greater than this value. So that is here, [01:19:26] so I hope you people got an idea. Ceiling means that we have to pick out the integer that is [01:19:37] greater than the value and float means that so here we are not bothering about whether it is [01:19:42] 3.14, 3.88 or 3.21. Everywhere we have to choose an integer value that is less than than it is [01:19:49] floor that is greater than than it is ceiling and it should for example the integer that is [01:19:56] greater than 3.14 is 5 also, 6 also, 7 also but we have to take that is least that is just greater [01:20:04] than this. Similarly, that is just less than this. So therefore, it is said that greatest [01:20:12] integer less than or equal to x. Greatest means that the highest possible value that [01:20:17] is as close to the x while evaluating the floor and the least integer, the smallest [01:20:24] integer that is just greater than this value. These two things are tricky. So floor and [01:20:31] ceiling values okay so i hope you people can visualize i will share the ppt as well so you [01:20:36] can check it out um here is one property x minus one less than floor of x less than or equal to x [01:20:46] less than or equal to ceiling of x and less than x plus one so if you take example so 3.14 minus [01:20:52] 1 is 2.4 floor of 3.14 is 3 exact number is 3.14 ceiling will be 4 and plus 1 will be [01:21:01] this one. So, this is one interesting property. This is a one of the interesting property that [01:21:07] you can refer while determining the floor and ceiling values. Similarly, here is another [01:21:15] interesting thing, floor ceiling plus 4, number by 2, we will get the number when n is an integer, [01:21:25] where n is an integer. So, 5, 2.5 ceiling is 3 and 2.5 floor is 2. So, ultimately we are getting [01:21:32] 5 as a output so clear floor we have to see lower side ceiling we have to see higher side just [01:21:40] that is simple definition okay so when i see floor i say floor so i will see lower when i say ceiling [01:21:54] then i'm getting see just higher both this is just lower and this is just higher [01:22:04] integers. And of course, the pelvis should be an integer. Now, there are some other properties [01:22:12] that are relevant with this, but you can skip if you do not go into the detail. So ceiling of x by [01:22:19] a by b of ceiling, ceiling of x by a by b, whole ceiling will be x by a by b. [01:22:27] Similarly, floor of x by a by b will result into ultimate. So, you can take any example, [01:22:36] check out the property it will hold. Similarly, floor of a by b is less than or equal to a [01:22:40] plus b minus 1 by b and this one. So, these property you can easily prove by just taking [01:22:46] a example. Here it is written, just check it. For real number, x should be what? Greater [01:22:53] than equal to 0 and it should be a real number. Real number means that decimals are allowed and [01:23:00] a and b greater than 0 and these are integer. There is a condition. This property will hold [01:23:08] when x is a real number and a and b are the integer values. So, I hope you people got the [01:23:16] gist of what is floor and ceiling value. And modular and other aspect we will start in the [01:23:24] next class. I am ready to take some queries. Those who have done can leave the lecture. I will upload [01:23:31] in a one and two hour these lectures on the Moodle itself. I have also uploaded the [01:23:37] Corman book. So those who are interested can refer to that one also. [01:23:41] so thank you all and two three queries i can take and those who have done can leave the class [01:23:48] hello sir hello uh so i have a query with respect to the dynamic programming in divide and karkar [01:24:12] how they are actually different like it seems like both have a strategy to sub divide the event [01:24:21] or the instance what is being happening so how the problem statement that is very good question [01:24:28] and most of the time asked in interview as well. So, in both divide and conquer and dynamic [01:24:33] programming the mechanism is to divide the problem into sub problem. But the difference arises the [01:24:40] dynamic programming is toward the result of the previous step to get back the output of next step. [01:24:46] But in divide and conquer this is not the policy. So, that is one aspect and divide and conquer is [01:24:53] primarily a top to down approach. Top to down means that we will divide, divide, divide, divide [01:24:57] the problem in very small then combine combine and get the result in dynamic programming it [01:25:01] is primarily a bottom-up approach we will solve a sub problem store the result and then go to the [01:25:07] last problem then we will solve again it then store the result and go ahead so this storing will [01:25:13] reduce the computational complexity so that that's why dynamic programming are treated as the fastest [01:25:19] algorithm paradigm but on the cost of memory so the fine difference is we are storing the previous [01:25:25] result or not storing the previous result strategy is top to bottom in divide and conquer and in [01:25:30] dynamic program it is bottom to up okay sir thank you sir yes sir i wanted to ask about the monotonicity [01:25:44] so you are you are using the function so that function is mathematically function [01:25:49] okay so there are many types of the function like continuous function discrete type of the [01:25:54] functions so which type of the function we will use there so uh in in when we determine the [01:26:00] computational complexity of an algorithm then we will definitely get continuous functions okay [01:26:05] so we'll we'll see how an algorithm is converted into a form of a function [01:26:09] or a continuous function just give me a while yeah just okay okay uh hi sir good morning uh [01:26:18] sir my question just give me a while just just stop for a minute and yeah i'm i'm here uh yeah [01:26:37] please ask oh yes thank you so so my question is quite 11 not technical so actually this is [01:26:46] my first class i want to know about the assessment that you have assigned last time although i have [01:26:51] not found anything in the noodle assessment session so is there any other process or any [01:26:56] other way to submit the assessment or how committed myself uh no worries so we will [01:27:02] will open the window for uh next uh you can say next session and or probably tomorrow i will tell [01:27:09] how you those who have missed the the earlier aspects can can cover okay okay so thank you [01:27:15] yeah so don't worry about the marks and other stuff i'm there to help you out okay sure thank [01:27:22] good morning sir good morning for this nice class so i have one uh technical query and one non-technical [01:27:30] So, first one is that monotonically decreasing. So, we told that there is the computational complexity that we can measure. So, if things like that, if our time and space I plot with that computational complexity, so every time that function will be monotonically decreasing, right? [01:27:57] means we need to chase the computational complexity always low right yeah yeah and [01:28:06] yeah means how how to uh explain uh this monotonically decreasing [01:28:13] man means where i need to use the monotonically increasing uh functions and monotonically [01:28:18] decreasing one yeah so just clarifying your doubt so monotonically decreasing is just a property i [01:28:25] had tell you okay because none of the algorithm on this earth that will reduce its computational [01:28:31] complexity when input increases that i guess you believe so always we will try to stabilize up [01:28:36] towards the monotonically increasing okay so uh computational complexity increase when the input [01:28:42] size increase so we will try to establish that that aspect okay because no of the algorithm will [01:28:48] reduce its time complexity when we are providing more input yes sir so that is for the sake of [01:28:55] clarity, there exists a monotonically decreasing also, but we will see monotonically increasing [01:29:00] function in all the aspects, all the problems. So, that means if we put the input increasing, [01:29:09] increasingly, so we always get a chance that complexity will be increased. So, that is that [01:29:16] monotonically increasing, but our aspects should be that to nullify that complexity and… [01:29:22] that you reduce or minimize we cannot nullify it we will reduce it okay sir thank you it's clear now [01:29:29] and one more uh non-technical one that is uh regarding the assignments so uh every assignments [01:29:37] you uh given to that uh hackathon lab challenge so that will be including as a marks uh in our exam [01:29:46] if i say clearly so it is no but let's say when your sum of the exam is not so good so i had some [01:29:55] base to give you extra marks so for that i'm preserving that one okay okay sir thank you very [01:30:02] much good morning sir good morning sir in class you told like the one algorithm is the time [01:30:14] algorithm and the shortest path algorithm both are combined in a one single algorithm so my [01:30:22] question that like it will work separately or both will work together how we will calculate the like [01:30:32] shortest path in the shortest time or the it is also intervene the speed so like all three [01:30:41] combination will work together or how this algorithm will work so I'm not [01:30:50] getting exactly what you are asking so can you slowly repeat one algorithm is [01:30:57] the time algorithm and another is the shortest path algorithm so we will get [01:31:04] we are calculating the both one at a time with the speed so all the three algorithm will work [01:31:12] separately and give the uh final result or it will depend to each other so uh individually [01:31:20] their their their results are calculated and while combining we will use so for example three three [01:31:25] algorithms are there okay um in or three sub problems are there so let's say one sub problem [01:31:31] is little bit complicated so the time complexity depends upon the execution of that sub problem [01:31:36] and while combining we have to wait when all three are ready then we will combine [01:31:44] okay so it will give uh the sort test uh with the combine all the three algorithm [01:31:51] it will calculate uh separately then combine yeah then give the uh multiple results yeah yeah okay [01:32:00] thank you hello sir good morning uh i actually had two non-technical questions to ask [01:32:08] first of them is like uh if there is an elective which has advanced written in front of it are [01:32:13] there any prerequisites for that like if it's advanced cyber security then is it for the next [01:32:18] semester or can we do it this semester and there's no prerequisite course that we have to do before [01:32:23] that actually actually what what we we know because you all people are working professionals [01:32:29] so we are not assuming that you you are too much with the the things that are being um [01:32:34] evolving in that particular subject so if still it is written advanced so first base will be clear [01:32:41] then only we will go to the advanced system so it does not mean that you should not take advance [01:32:45] and you will never find a subject naming without advance because in mtech we are teaching subjects [01:32:51] that are little bit you can say upper side of btec one okay so we can offer those right yeah [01:32:58] yeah that that that you can opt and the second question is like even if uh i had a conversation [01:33:03] with one person who told that even if you are looking at the recordings our attendance will get [01:33:08] marked uh but we have to log in via our iit id right so i did it but i yeah um yeah please save [01:33:19] okay so uh so exactly what the question you are asking i do not know how they are doing [01:33:23] these things okay so i'm totally unaware of the how attendance is being done while [01:33:28] being the that video and others yeah okay okay okay then thanks i guess thank you guys hi sir [01:33:38] hello hello sir akshay here yes actually so sir do you recommend that book you said