• 6 days ago
Transcript
00:00Hi everyone, in this video we are going to read about why data structure.
00:04First, let's talk about what happens.
00:06There is an English word which means to put a line or to stand in Qatar.
00:11If you go to Taj Mahal, you have tickets to the gate.
00:15You have to stand in the gate.
00:16You have to stand in the gate.
00:19You have to be a proper line.
00:22You have to stand in the billing counter.
00:24You have to stand in the line.
00:27We have seen many examples in this way.
00:30We have to go to school and playground.
00:32We have to go to the line.
00:33We have to say the line.
00:35Why do we say that in English?
00:39We have to bring them to code.
00:43We have to bring them to the help of data structure.
00:46Why do we get a lot of stacks?
00:49We have to read about stacks.
00:50Stack is a way of data structure.
00:53We have to store the elements.
00:56But the queue is a version.
00:59The queue is a version.
01:00The queue is a way of visualizing.
01:02The structure is a way of structure.
01:04The front is a way of the part.
01:06We call front.
01:08The back is a way of the part.
01:10We call rear.
01:12The elements are a way of store.
01:14They are just stored.
01:17They are stored.
01:17Where there is a front, one, two, three, four.
01:20The queue is special.
01:22The queue is a FIFO type of structure.
01:25The queue is a FIFO type of structure.
01:27That is how the stack is left in and first out.
01:29Last in and first out.
01:33First in and first out.
01:34First in and first out.
01:34If the element is before entering,
01:37to go further.
01:38When the stack was made,
01:40if the element was made after,
01:41the element was made after,
01:43last and first out.
01:44Here, when the one first was made,
01:46one was made after.
01:48Two was made after,
01:50two was made after.
01:52This means,
01:53the exit is made AF,
01:55that's the front,
01:57and the entry is made after.
02:01Exit is from the side,
02:03and the entry is from the side.
02:05and if we shopping hit the number of the Florian
02:08we have the same type of Neuveler
02:10and in a very small way
02:11we have the same type of Florian
02:12as well as a male
02:14with a nice type of Florian
02:15when we go with the same type of Florian
02:15if we go with the same type of Florian
02:19the one who flies cross the particular type of Solign
02:21then the other person pound the other
02:24the other person folds in
02:26then the other person is up to the other
02:27they take the phone
02:28and people go outside the line
02:29they take the phone
02:31each other
02:32so these people are forced in first out
02:34or q which is called
02:36q which we have to study in 3 major operations
02:38which is our add operation
02:42add which we call nq operation
02:45nq which is q which we have to add
02:47q which we have to add
02:48this add operation q which is called
02:50big of 1 which we have to implement
02:52q which we have to do
02:53if we have to add
02:56elements 1, 2, 3
02:58first we have to add 1 to here
03:00or here
03:01we will add a three
03:02in ourare to ourare to add
03:08than.
03:08we can add the 2
03:10and here
03:11add the other three
03:12more
03:15and again
03:16well
03:17mark
03:20This one is our 3.
03:28Our two operations, which we will find the remove operation.
03:32Remove operation is our Queue from where to remove the elements.
03:37We will try to remove the Queue by the ingredients.
03:48this DQ and this DQ, both are different. This DQ means a double-ended Q, which is
03:55which you can see in front and in front, and both sides. This DQ means an element
04:04to remove the difference. This DQ means a difference. If we have a Q in which
04:10there are some elements stored, one, two, three, and here we have a front and here
04:37which is the peak function. The peak function in stack
04:41is the peak function. This is the peak function. We will try to remove the
04:47front function. This is the peak function. We will try to do the implementation
04:54in three operations. The peak function is the peak function. But there are
05:10Now let's talk about the implementation
05:14In the implementation, we can create an array, link list, stack, etc.
05:23First, let's talk about the array.