Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
0
1
00:00:00,510 --> 00:00:03,910
Hi and welcome to this lesson
1
2
00:00:03,920 --> 00:00:07,830
In today's lesson we will be discussing about the various types of data structures available
2
3
00:00:08,730 --> 00:00:13,260
Now we have two different types of data structure that is available to us.
3
4
00:00:13,260 --> 00:00:15,180
One is primitive data structure.
4
5
00:00:15,180 --> 00:00:18,390
Another one is non primitive data structure
5
6
00:00:18,450 --> 00:00:24,360
Now both of these categories are further sub-categorised into different categories.
6
7
00:00:24,360 --> 00:00:30,960
First of all we are going to discuss about the categories that are falling under primitive data structure.
7
8
00:00:30,970 --> 00:00:31,740
Now
8
9
00:00:31,920 --> 00:00:34,210
If I'm saying primitive data structure
9
10
00:00:34,230 --> 00:00:41,400
I'm trying to say that all the be data structure that are defined inbuilt and we can not modify them.
10
11
00:00:41,410 --> 00:00:45,240
but we can use them as it is where ever we need to.
11
12
00:00:45,300 --> 00:00:45,890
Right.
12
13
00:00:45,990 --> 00:00:48,390
So , under primitive data structure
13
14
00:00:48,420 --> 00:00:51,780
We have further categories out of those categories.
14
15
00:00:51,780 --> 00:01:01,320
The very first category is integer . Now, when i am saying integer I mean to say all those numerical numbers
15
16
00:01:01,710 --> 00:01:04,960
that don't have fractional part in them. Right.
16
17
00:01:05,600 --> 00:01:13,310
But if I'm saying integer value I never ever means that I can not have negative numbers in it.
17
18
00:01:13,860 --> 00:01:17,070
So , whenever we are saying integer data structure
18
19
00:01:17,100 --> 00:01:19,470
We can have negative numbers.
19
20
00:01:19,620 --> 00:01:23,880
We can have positive numbers and we can have zero as well.
20
21
00:01:24,230 --> 00:01:27,170
For example we can have minus two.
21
22
00:01:27,180 --> 00:01:31,210
We can have minus 1 ,0 , 1 and 2.
22
23
00:01:31,420 --> 00:01:32,170
OK.
23
24
00:01:32,220 --> 00:01:34,940
Some people call minus two as negative two.
24
25
00:01:34,980 --> 00:01:43,020
So what I mean to say is that on my number line we can have all the integers whether they are positive
25
26
00:01:43,080 --> 00:01:51,270
or they are negative they all fall under the category of integers .The next category under primitive structure
26
27
00:01:51,310 --> 00:01:55,230
that is known as real . Now, if i am saying real .
27
28
00:01:55,260 --> 00:02:04,710
I want to mention all those numerical values that may or may not have fractional part . Ok .that can
28
29
00:02:04,710 --> 00:02:09,830
have the number can have a decimal value or it can not have decimal value
29
30
00:02:10,030 --> 00:02:12,880
For example I can have number like 1.
30
31
00:02:12,900 --> 00:02:13,970
and 5
31
32
00:02:13,980 --> 00:02:20,380
These are also treated as real numbers because we can have one point zero , we can treat one as one
32
33
00:02:20,380 --> 00:02:21,540
point zero.
33
34
00:02:21,570 --> 00:02:27,540
we can treat five as five point zero or we can have numbers like seven point eighty six point five.
34
35
00:02:28,350 --> 00:02:32,290
And the third category under primitive data structure that is known as
35
36
00:02:32,390 --> 00:02:33,410
character
36
37
00:02:33,880 --> 00:02:40,390
Till now we were dealing only with the numerical values but what if we have to deal with
37
38
00:02:40,490 --> 00:02:41,380
alphabets
38
39
00:02:41,450 --> 00:02:48,470
we have to deal with special symbols then for that we need character data structure
39
40
00:02:48,570 --> 00:02:50,350
Under character data structure
40
41
00:02:50,350 --> 00:02:56,060
We can have all the alphabets whether they are small alphabets or they are capital alphabets
41
42
00:02:56,120 --> 00:02:56,500
Right.
42
43
00:02:56,940 --> 00:03:03,490
So the next category under primitive data structure that is known as boolean
43
44
00:03:03,510 --> 00:03:12,330
whenever i am saying boolean i can have only two possible values that is either represented by zero one or true false zero
44
45
00:03:12,330 --> 00:03:15,080
represents false and 1 represents true .
45
46
00:03:15,420 --> 00:03:16,010
OK.
46
47
00:03:16,140 --> 00:03:24,170
So these are the subcategories under primitive data structured now under non primitive data structure
47
48
00:03:24,240 --> 00:03:27,030
we again have two subcategories.
48
49
00:03:27,030 --> 00:03:30,620
One is known as linear data structure.
49
50
00:03:30,930 --> 00:03:35,050
Another one is known as nonlinear data structure.
50
51
00:03:35,250 --> 00:03:40,990
Now what are the topics under linear and under non linear data structure
51
52
00:03:41,010 --> 00:03:42,570
Let's just discuss them.
52
53
00:03:43,230 --> 00:03:50,230
So under non primitive data structure we have two categories one known as linear data structure .
53
54
00:03:50,280 --> 00:03:53,690
Another one is known as non-linear data structure
54
55
00:03:54,230 --> 00:03:58,980
Now linear data structure means all the data structures that are .
55
56
00:03:58,980 --> 00:04:03,070
Going to follow some particular pattern .Right, now.
56
57
00:04:03,100 --> 00:04:09,100
What are those patterns that we will discuss while discussing linear data structure .
57
58
00:04:09,480 --> 00:04:11,200
Right now you just need to understand
58
59
00:04:11,450 --> 00:04:17,860
one thing the difference between linear and non linear data structure is that in case of linear
59
60
00:04:17,910 --> 00:04:22,680
data structure all the elements are going to follow some kind of pattern.
60
61
00:04:23,130 --> 00:04:29,260
But in case of non-linear data structure they are not going to follow any kind of pattern.
61
62
00:04:29,820 --> 00:04:37,710
Now under non-linear structure we further have categories and linear data structure can be categorised
62
63
00:04:37,720 --> 00:04:41,030
into first category is arrays
63
64
00:04:41,220 --> 00:04:50,070
Now array whenever we want to store a group of data that is of similar type we use arrays then we
64
65
00:04:50,070 --> 00:04:57,590
have linked list . linked list are used when we don't want to store the data in consecutive memory locations.
65
66
00:04:57,690 --> 00:05:01,970
It is also used to store the data that is of similar type
66
67
00:05:02,040 --> 00:05:07,760
But in this case the data is not supposed to store at the consecutive location
67
68
00:05:07,770 --> 00:05:14,900
Next one is the known as stack. stack follows the concept of LIFO that is last in first out.
68
69
00:05:15,150 --> 00:05:16,790
Next one is known as
69
70
00:05:16,790 --> 00:05:25,980
Queue It follows the concept of FIFO that is first in and first out then under non linear data structure.
70
71
00:05:26,030 --> 00:05:28,740
We further have categories out of them.
71
72
00:05:28,740 --> 00:05:36,770
The very first one is tree ,where ever we want you represents hierarchical relationship between the elements.
72
73
00:05:36,780 --> 00:05:40,670
Then we can use tree data structure and
73
74
00:05:40,710 --> 00:05:42,300
One is known as Graphs
74
75
00:05:42,390 --> 00:05:49,220
Wherever we want to represents our data elements with the help of nodes and vertices
75
76
00:05:49,380 --> 00:05:57,850
Then we can use graph for example if we want to travel from one location another and we have three to four
76
77
00:05:57,870 --> 00:06:05,790
different ways to move then with the help of graphs we can find out that which way is the best possible way
77
78
00:06:05,790 --> 00:06:06,570
to move
78
79
00:06:07,180 --> 00:06:15,980
So these are the categories of the structure and each category is further subdivided in two subcategories.
79
80
00:06:16,060 --> 00:06:23,610
Now in our next lessons we'll be discussing that which the structure is to use which place.
80
81
00:06:23,620 --> 00:06:26,920
And how to implement these data structures.
81
82
00:06:26,930 --> 00:06:27,610
Thank you.
8521
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.