-
Notifications
You must be signed in to change notification settings - Fork 1
/
dsa-mindmap.blinkmind
292 lines (292 loc) · 8.49 KB
/
dsa-mindmap.blinkmind
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
{
"rootTopicKey": "ce8526e2-816e-4dc1-8c35-4925d9f9ca51",
"editorRootTopicKey": "ce8526e2-816e-4dc1-8c35-4925d9f9ca51",
"focusKey": "023d497b-a52e-40bb-940e-48a1824bf1ec",
"extData": {
"TOPIC_REFERENCE": {
"reference": {}
}
},
"topics": [
{
"key": "ce824433-bb10-421d-939a-6f633651ecf1",
"parentKey": "a5629588-5712-4ff6-88e5-e39d0984e2b9",
"subKeys": [],
"collapse": false,
"style": "{\"contentStyle\":{\"background\":\"#b6adae\"}}",
"blocks": [
{
"type": "CONTENT",
"data": "Explore concrete\nexamples"
}
]
},
{
"key": "ce8526e2-816e-4dc1-8c35-4925d9f9ca51",
"parentKey": null,
"subKeys": [
"023d497b-a52e-40bb-940e-48a1824bf1ec",
"153751ed-3a72-4136-8576-b34c34c2b3d1",
"630c5336-cd8b-48d7-887f-109f9e1f404b",
"a5629588-5712-4ff6-88e5-e39d0984e2b9",
"a915244e-ded5-43e6-a7c8-cbdc60f8e82f"
],
"collapse": false,
"style": null,
"blocks": [
{
"type": "CONTENT",
"data": "DSA"
}
]
},
{
"key": "630c5336-cd8b-48d7-887f-109f9e1f404b",
"parentKey": "ce8526e2-816e-4dc1-8c35-4925d9f9ca51",
"subKeys": [],
"collapse": false,
"style": null,
"blocks": [
{
"type": "CONTENT",
"data": "Algorithms"
},
{
"type": "DESC",
"data": "**Algorithm **is a process or set of steps to accomplish a certain task.\n\n| **Algorithms** | **Programs** |\n|:---:|:---:|\n| It is a step\\-by\\-step procedure for solving the problem | It is the implementation in “code” that instructs the computer how to execute the algorithm. |\n"
}
]
},
{
"key": "8a763c54-a7f0-403c-95ab-f3d45e82b3f0",
"parentKey": "023d497b-a52e-40bb-940e-48a1824bf1ec",
"subKeys": [],
"collapse": false,
"style": null,
"blocks": [
{
"type": "CONTENT",
"data": "Space complexity"
}
]
},
{
"key": "153751ed-3a72-4136-8576-b34c34c2b3d1",
"parentKey": "ce8526e2-816e-4dc1-8c35-4925d9f9ca51",
"subKeys": [],
"collapse": false,
"style": null,
"blocks": [
{
"type": "CONTENT",
"data": "Data\nStructures"
},
{
"type": "DESC",
"data": "**Data structure** is way to store and organize data, so that it can be used efficiently."
}
]
},
{
"key": "10e19250-68fb-4c0d-adcf-0d09d059f9a0",
"parentKey": "a915244e-ded5-43e6-a7c8-cbdc60f8e82f",
"subKeys": [],
"collapse": false,
"style": null,
"blocks": [
{
"type": "CONTENT",
"data": "Frequency counter\npattern"
}
]
},
{
"key": "023d497b-a52e-40bb-940e-48a1824bf1ec",
"parentKey": "ce8526e2-816e-4dc1-8c35-4925d9f9ca51",
"subKeys": [
"7c8d779f-8730-4a23-a7d9-368ee2da0f66",
"8a763c54-a7f0-403c-95ab-f3d45e82b3f0"
],
"collapse": false,
"style": null,
"blocks": [
{
"type": "CONTENT",
"data": "Big O Notation"
},
{
"type": "DESC",
"data": "**Big O notation** is used to describe the **performance** or** complexity **of an algorithm. Big O specifically describes the worst\\-case scenario, and can be used to describe the execution time required or the space used \\(e.g. in memory or on disk\\) by an algorithm.\n\n**Common notations**_:_\n1. Omega\\(Ω\\)\n1. Theta \\(θ\\)\n1. Omicron\\(O\\) or Big O\n\n\n\n\n### Big\\-O notation :\n\n* **O\\(1\\)** \\- **Constant** \\- no loops\n* **O\\(log N\\)** \\- **Logarithmic** \\- usually searching algorithms have log n if they are sorted \\(Binary Search\\)\n* **O\\(n\\)** \\- _Linear_ \\- for loops, while loops through n items\n* **O\\(n log\\(n\\)\\)** \\- **Log Linear** \\- usually sorting operations\n* **O\\(n^2\\)** \\- **Quadratic** \\- every element in a collection needs to be compared to ever other element. Two nested loops\n* **O\\(2^n\\)** \\- **Exponential** \\- recursive algorithms that solves a problem of size N\n* **O\\(n\\!\\)** \\- **Factorial** \\- you are adding a loop for every element\n\n"
}
]
},
{
"key": "a915244e-ded5-43e6-a7c8-cbdc60f8e82f",
"parentKey": "ce8526e2-816e-4dc1-8c35-4925d9f9ca51",
"subKeys": [
"10e19250-68fb-4c0d-adcf-0d09d059f9a0",
"07e17ca6-badb-46b8-aee4-87d608152c7a"
],
"collapse": false,
"style": null,
"blocks": [
{
"type": "CONTENT",
"data": "Problem solving\npatterns"
}
]
},
{
"key": "07e17ca6-badb-46b8-aee4-87d608152c7a",
"parentKey": "a915244e-ded5-43e6-a7c8-cbdc60f8e82f",
"subKeys": [],
"collapse": false,
"style": null,
"blocks": [
{
"type": "CONTENT",
"data": "Multi pointer\npattern"
}
]
},
{
"key": "aca84290-cc11-4438-87fe-b92d95b1bd6a",
"parentKey": "a5629588-5712-4ff6-88e5-e39d0984e2b9",
"subKeys": [],
"collapse": false,
"style": null,
"blocks": [
{
"type": "CONTENT",
"data": "Solve /\nSimplify"
}
]
},
{
"key": "0651eb64-886b-4476-9b1a-e330522b0f1c",
"parentKey": "a5629588-5712-4ff6-88e5-e39d0984e2b9",
"subKeys": [],
"collapse": false,
"style": null,
"blocks": [
{
"type": "CONTENT",
"data": "Breat it\ndown"
}
]
},
{
"key": "d86fb1db-1080-4339-9216-b61ad91acaf5",
"parentKey": "a5629588-5712-4ff6-88e5-e39d0984e2b9",
"subKeys": [],
"collapse": false,
"style": null,
"blocks": [
{
"type": "CONTENT",
"data": "Refractor"
}
]
},
{
"key": "54e0233a-5759-4284-846c-9d5b976745ed",
"parentKey": "a5629588-5712-4ff6-88e5-e39d0984e2b9",
"subKeys": [],
"collapse": false,
"style": null,
"blocks": [
{
"type": "CONTENT",
"data": "Understanding\nProblem"
},
{
"type": "DESC",
"data": "## Understand the problem\n\n* Can I restate the problem in my own words ?\n* What are the inputs that go into the problem ?\n* What are the outputs that should come from the solution to the problem ?\n* Can the outputs be determined from the inputs ? Do I have enough info to solve the problem ?\n* How should I label the important pieces of data that are a part of the problem ?\n\n"
}
]
},
{
"key": "7c8d779f-8730-4a23-a7d9-368ee2da0f66",
"parentKey": "023d497b-a52e-40bb-940e-48a1824bf1ec",
"subKeys": [],
"collapse": false,
"style": null,
"blocks": [
{
"type": "CONTENT",
"data": "Time complexity"
}
]
},
{
"key": "a5629588-5712-4ff6-88e5-e39d0984e2b9",
"parentKey": "ce8526e2-816e-4dc1-8c35-4925d9f9ca51",
"subKeys": [
"54e0233a-5759-4284-846c-9d5b976745ed",
"ce824433-bb10-421d-939a-6f633651ecf1",
"0651eb64-886b-4476-9b1a-e330522b0f1c",
"aca84290-cc11-4438-87fe-b92d95b1bd6a",
"d86fb1db-1080-4339-9216-b61ad91acaf5"
],
"collapse": false,
"style": null,
"blocks": [
{
"type": "CONTENT",
"data": "Problem Solving\napproach"
},
{
"type": "DESC",
"data": ""
}
]
}
],
"config": {
"readOnly": false,
"allowUndo": true,
"layoutDir": 2,
"theme": {
"name": "default",
"randomColor": true,
"background": "rgb(57,60,65)",
"highlightColor": "#50C9CE",
"marginH": 60,
"marginV": 20,
"contentStyle": {
"lineHeight": "1.5",
"fontSize": "16px"
},
"linkStyle": {
"lineRadius": 5,
"lineType": "curve",
"lineWidth": "3px"
},
"rootTopic": {
"contentStyle": {
"fontSize": "36px"
},
"subLinkStyle": {
"lineType": "curve",
"lineWidth": "3px"
}
},
"primaryTopic": {
"contentStyle": {
"fontSize": "24px"
},
"subLinkStyle": {
"lineType": "curve",
"lineWidth": "3px"
}
},
"normalTopic": {
"subLinkStyle": {
"lineType": "curve",
"lineWidth": "3px"
}
}
}
},
"formatVersion": "0.0"
}