-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdsa.html
480 lines (426 loc) · 27.5 KB
/
dsa.html
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
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-HCERBDV76D"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-HCERBDV76D');
</script>
<meta name="msvalidate.01" content="B0487B46A104E90209E8A3BEA24ECA0E" />
<meta name="yandex-verification" content="f044b3a12c7918f1" />
<!--end-->
<meta name="description" content="pythonread.github.io is a free interactive Python tutorial for people who want to learn Python.The Complete Python Programming Course,Learning Python for Data Analysis and Visualization,Python for Beginners."/>
<meta name="author" content="learnPython"/>
<meta name="keywords" content="Learn Python for free,learn python for beginners,Core Python,Web frameworks,Multiprocess architecture,Serverside templating language,python tutorials,python4"/>
<meta property="og:type" content="website" />
<meta property="og:description" content="This Python basics free course covers basic and advanced concepts in Python.learn about data types, variables, lists, tuples, dictionaries, decision-making statements, and loops,user-defined functions, object-oriented programming, threading, and Python scripting." />
<meta name=”geo.region” content="US-CA" />
<meta name=”geo.placename” content="353 Jane Stanford Way, Stanford, CA 94305, United States" />
<meta name=”geo.position” content="37.430089898615456;-122.17332683124829"/>
<meta name=”ICBM” content="37.430089898615456, -122.17332683124829" />
<link href='https://pythonread.github.io/?m=1' rel='alternate'/>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="/favicon.png" rel="icon" />
<title>Data Structure and Algorithms</title>
<link href="https://pythonread.github.io/dsa.html?m=1" rel="canonical" />
<link type="text/css" rel="stylesheet"
href="/style1.css"
media="all" />
<link type="text/css" rel="stylesheet"
href="/style2.css"
media="all" />
<link type="text/css" rel="stylesheet" href="/style0.css" media="all" />
</head>
<body>
<div class="nav-wrapper">
<div class="container">
<nav>
<div class="logo wave">
<a href="/" id="logo">
Python Tutorial
</a>
</div>
<div class="nav-toggle-icon" id="nav-toggle-icon" onclick="mobileMenu()">
<div class="material-hamburger">
<span>
</span>
<span>
</span>
<span>
</span>
</div>
</div>
<div class="menu-wrapper" id="menu-wrapper">
<div class="nav-indicator">
</div>
<ul class="menus">
<li>
<a class="wave" href="/">
Home
</a>
</li>
<li>
<a class="wave" href="/projects.html">
Projects
</a>
</li>
<li>
<a class="wave" href="/free-course.html"
target="_blank">
Free Course
</a>
</li>
<li>
<a class="wave" href="/dsa.html" >
DSA
</a>
</li>
</ul>
</div>
</nav>
</div>
</div>
<div class="contents contents--neg" style="margin-top: 60px">
<div class="container">
<div class="row">
<div class="col-sm-12">
<div class="d-flex">
<div class="left-bar d-none d-lg-block">
<div class="card-alt mb-10x">
<h3>Page Index</h3>
<div class="list">
<ul>
<li><a href="#data-structure-1" title="Data Structures (I)">Data Structures
(I)</a></li>
<li><a href="#data-structure-2" title="Data Structures (II)">Data Structures
(II)</a></li>
<li><a href="#tree-1" title="Tree based DSA (I)">Tree based DSA (I)</a></li>
<li><a href="#tree-2" title="Tree based DSA (II)">Tree based DSA (II)</a></li>
<li><a href="#graph" title="Graph Data Structures and Algorithm">Graph based
DSA</a></li>
<li><a href="#sorting-searching" title="Sorting and Searching">Sorting and
Searching</a></li>
<li><a href="#greedy-algorithm" title="Greedy Algorithms">Greedy Algorithms</a>
</li>
<li><a href="#dynamic-programming" title="Dynamic Programming">Dynamic
Programming</a></li>
<li><a href="#other-algorithms" title="Other Algorithms">Other Algorithms</a>
</li>
</ul>
</div>
</div>
</div>
<div class="right-bar">
<div class="card-alt mb-9x" id="data-structure-1">
<h3>Data Structures (I)</h3>
<div class="cart-alt__contents">
<div class="progress-list">
<ul>
<li><a href="
/dsa/stack.html">
Stack</a></li>
<li><a href="
/dsa/queue.html">
Queue</a></li>
<li><a href="
/dsa/types-of-queue.html">
Types of Queue</a></li>
<li><a href="
/dsa/circular-queue.html">
Circular Queue</a></li>
<li><a href="
/dsa/priority-queue.html">
Priority Queue</a></li>
<li><a href="
/dsa/deque.html">
Deque</a></li>
</ul>
</div>
</div>
</div>
<div class="card-alt mb-9x" id="data-structure-2">
<h3>Data Structures (II)</h3>
<div class="cart-alt__contents">
<div class="progress-list">
<ul>
<li><a href="
/dsa/linked-list.html">
Linked List</a></li>
<li><a href="
/dsa/linked-list-operations.html">
Linked List Operations</a></li>
<li><a href="
/dsa/linked-list-types.html">
Types of Linked List</a></li>
<li><a href="
/dsa/hash-table.html">
Hash Table</a></li>
<li><a href="
/dsa/heap-data-structure.html">
Heap Data Structure</a></li>
<li><a href="
/dsa/fibonacci-heap.html">
Fibonacci Heap</a></li>
<li><a href="
/dsa/decrease-key-and-delete-node-from-a-fibonacci-heap.html">
Decrease Key and Delete node from Fibonacci Heap</a></li>
</ul>
</div>
</div>
</div>
<div class="card-alt mb-9x" id="tree-1">
<h3>Tree based DSA (I)</h3>
<div class="cart-alt__contents">
<div class="progress-list">
<ul>
<li><a href="
/dsa/trees.html">
Tree Data Structure</a></li>
<li><a href="
/dsa/tree-traversal.html">
Tree Traversal</a></li>
<li><a href="
/dsa/binary-tree.html">
Binary Tree</a></li>
<li><a href="
/dsa/full-binary-tree.html">
Full Binary Tree</a></li>
<li><a href="
/dsa/perfect-binary-tree.html">
Perfect Binary Tree</a></li>
<li><a href="
/dsa/complete-binary-tree.html">
Complete Binary Tree</a></li>
<li><a href="
/dsa/balanced-binary-tree.html">
Balanced Binary Tree</a></li>
<li><a href="
/dsa/binary-search-tree.html">
Binary Search Tree</a></li>
<li><a href="
/dsa/avl-tree.html">
AVL Tree</a></li>
</ul>
</div>
</div>
</div>
<div class="card-alt mb-9x" id="tree-2">
<h3>Tree based DSA (II)</h3>
<div class="cart-alt__contents">
<div class="progress-list">
<ul>
<li><a href="
/dsa/b-tree.html">
B Tree</a></li>
<li><a href="
/dsa/insertion-into-a-b-tree.html">
Insertion into B-tree</a></li>
<li><a href="
/dsa/deletion-from-a-b-tree.html">
Deletion from B-tree</a></li>
<li><a href="
/dsa/b-plus-tree.html">
B+ Tree</a></li>
<li><a href="
/dsa/insertion-on-a-b-plus-tree.html">
Insertion on a B+ Tree</a></li>
<li><a href="
/dsa/deletion-from-a-b-plus-tree.html">
Deletion from a B+ Tree</a></li>
<li><a href="
/dsa/red-black-tree.html">
Red Black Tree</a></li>
<li><a href="
/dsa/insertion-in-a-red-black-tree.html">
Insertion in Red Black Tree</a></li>
<li><a href="
/dsa/deletion-from-a-red-black-tree.html">
Deletion from Red Black Tree</a></li>
</ul>
</div>
</div>
</div>
<div class="card-alt mb-9x" id="graph">
<h3>Graph based DSA</h3>
<div class="cart-alt__contents">
<div class="progress-list">
<ul>
<li><a href="
/dsa/graph.html">
Graph Data Structure</a></li>
<li><a href="
/dsa/spanning-tree-and-minimum-spanning-tree.html">
Spanning Tree</a></li>
<li><a href="
/dsa/strongly-connected-components.html">
Strongly Connected Components</a></li>
<li><a href="
/dsa/graph-adjacency-matrix.html">
Adjacency Matrix</a></li>
<li><a href="
/dsa/graph-adjacency-list.html">
Adjacency List</a></li>
<li><a href="
/dsa/graph-dfs.html">
DFS Algorithm</a></li>
<li><a href="
/dsa/graph-bfs.html">
Breadth-first Search</a></li>
<li><a href="
/dsa/bellman-ford-algorithm.html">
Bellman Ford's Algorithm</a></li>
</ul>
</div>
</div>
</div>
<div class="card-alt mb-9x" id="sorting-searching">
<h3>Sorting and Searching Algorithms</h3>
<div class="cart-alt__contents">
<div class="progress-list">
<ul>
<li><a href="
/dsa/bubble-sort.html">
Bubble Sort</a></li>
<li><a href="
/dsa/selection-sort.html">
Selection Sort</a></li>
<li><a href="
/dsa/insertion-sort.html">
Insertion Sort</a></li>
<li><a href="
/dsa/merge-sort.html">
Merge Sort</a></li>
<li><a href="
/dsa/quick-sort.html">
Quick Sort</a></li>
<li><a href="
/dsa/counting-sort.html">
Counting Sort</a></li>
<li><a href="
/dsa/radix-sort.html">
Radix Sort</a></li>
<li><a href="
/dsa/bucket-sort.html">
Bucket Sort</a></li>
<li><a href="
/dsa/heap-sort.html">
Heap Sort</a></li>
<li><a href="
/dsa/shell-sort.html">
Shell Sort</a></li>
<li><a href="
/dsa/linear-search.html">
Linear Search</a></li>
<li><a href="
/dsa/binary-search.html">
Binary Search</a></li>
</ul>
</div>
</div>
</div>
<div class="card-alt mb-9x" id="greedy-algorithm">
<h3>Greedy Algorithms</h3>
<div class="cart-alt__contents">
<div class="progress-list">
<ul>
<li><a href="
/dsa/greedy-algorithm.html">
Greedy Algorithm</a></li>
<li><a href="
/dsa/ford-fulkerson-algorithm.html">
Ford-Fulkerson Algorithm</a></li>
<li><a href="
/dsa/dijkstra-algorithm.html">
Dijkstra's Algorithm</a></li>
<li><a href="
/dsa/kruskal-algorithm.html">
Kruskal's Algorithm</a></li>
<li><a href="
/dsa/prim-algorithm.html">
Prim's Algorithm</a></li>
<li><a href="
/dsa/huffman-coding.html">
Huffman Code</a></li>
</ul>
</div>
</div>
</div>
<div class="card-alt mb-9x" id="dynamic-programming">
<h3>Dynamic Programming</h3>
<div class="cart-alt__contents">
<div class="progress-list">
<ul>
<li><a href="
/dsa/dynamic-programming.html">
Dynamic Programming</a></li>
<li><a href="
/dsa/floyd-warshall-algorithm.html">
Floyd Warshall Algorithm</a></li>
<li><a href="
/dsa/longest-common-subsequence.html">
Longest Common Subsequence</a></li>
</ul>
</div>
</div>
</div>
<div class="card-alt mb-9x" id="other-algorithms">
<h3>Other Algorithms</h3>
<div class="cart-alt__contents">
<div class="progress-list">
<ul>
<li><a href="
/dsa/backtracking-algorithm.html">
Backtracking Algorithm</a></li>
<li><a href="
/dsa/rabin-karp-algorithm.html">
Rabin-Karp Algorithm</a></li>
<li><a href="
/dsa/divide-and-conquer.html">
Divide and Conquer Algorithm</a></li>
</ul>
</div>
</div>
</div>
<br/>
<br/>
<h2>Free Courses on YouTube</h2>
<br/>
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgT9Spnddn1UerjXEbcWQUPhfDHLL9rppkmUp1x4JRPKsdTwmX0kI26Rd0-2qKlwGAAnbgiPz7dZMm5Rv5Fd1QLhkQC6n3ob13ug1bTYtizkDpk2B0LxRiA8QUIjeTmfu6vZHoKJ7pXUgt73sHoXvSpGWjKQ6ZM01IIbJnXmwzXq4RdNYA4swdULgNy/s16000/youtube-logo.png" width="35px" height="35px">
<button style="padding:5px; margin-bottom:2px"><a href="
https://www.youtube.com/watch?v=IbSXF7eT-AU&list=PLR_5PTwg_uAQw40OhdvAwN4NvzWv0xOZ2">
Python Full Course Playlist</a></button>
<br/>
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgT9Spnddn1UerjXEbcWQUPhfDHLL9rppkmUp1x4JRPKsdTwmX0kI26Rd0-2qKlwGAAnbgiPz7dZMm5Rv5Fd1QLhkQC6n3ob13ug1bTYtizkDpk2B0LxRiA8QUIjeTmfu6vZHoKJ7pXUgt73sHoXvSpGWjKQ6ZM01IIbJnXmwzXq4RdNYA4swdULgNy/s16000/youtube-logo.png" width="35px" height="35px">
<button style="padding:5px; margin-bottom:2px" ><a href="https://www.youtube.com/watch?v=UEl6wB90Gs8">
105 STL Algorithms in Less Than an Hour</a></button>
<br/>
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgT9Spnddn1UerjXEbcWQUPhfDHLL9rppkmUp1x4JRPKsdTwmX0kI26Rd0-2qKlwGAAnbgiPz7dZMm5Rv5Fd1QLhkQC6n3ob13ug1bTYtizkDpk2B0LxRiA8QUIjeTmfu6vZHoKJ7pXUgt73sHoXvSpGWjKQ6ZM01IIbJnXmwzXq4RdNYA4swdULgNy/s16000/youtube-logo.png" width="35px" height="35px">
<button style="padding:5px; margin-bottom:2px" ><a href="https://www.youtube.com/watch?v=zZXTgN7L1UU&list=PLR_5PTwg_uAS6C1cSMjU6oVhOcCX8Zu_4">
C++ STL Playlist</a></button>
<br/>
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgT9Spnddn1UerjXEbcWQUPhfDHLL9rppkmUp1x4JRPKsdTwmX0kI26Rd0-2qKlwGAAnbgiPz7dZMm5Rv5Fd1QLhkQC6n3ob13ug1bTYtizkDpk2B0LxRiA8QUIjeTmfu6vZHoKJ7pXUgt73sHoXvSpGWjKQ6ZM01IIbJnXmwzXq4RdNYA4swdULgNy/s16000/youtube-logo.png" width="35px" height="35px">
<button style="padding:5px; margin-bottom:2px" ><a href="https://youtu.be/ty9756v3kc8">
Learn Node.js </a></button>
<br/>
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgT9Spnddn1UerjXEbcWQUPhfDHLL9rppkmUp1x4JRPKsdTwmX0kI26Rd0-2qKlwGAAnbgiPz7dZMm5Rv5Fd1QLhkQC6n3ob13ug1bTYtizkDpk2B0LxRiA8QUIjeTmfu6vZHoKJ7pXUgt73sHoXvSpGWjKQ6ZM01IIbJnXmwzXq4RdNYA4swdULgNy/s16000/youtube-logo.png" width="35px" height="35px">
<button style="padding:5px; margin-bottom:2px" ><a href="https://youtu.be/exrIpdS3Crc">
Learn Data Science Full course</a></button>
<br/>
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgT9Spnddn1UerjXEbcWQUPhfDHLL9rppkmUp1x4JRPKsdTwmX0kI26Rd0-2qKlwGAAnbgiPz7dZMm5Rv5Fd1QLhkQC6n3ob13ug1bTYtizkDpk2B0LxRiA8QUIjeTmfu6vZHoKJ7pXUgt73sHoXvSpGWjKQ6ZM01IIbJnXmwzXq4RdNYA4swdULgNy/s16000/youtube-logo.png" width="35px" height="35px">
<button style="padding:5px; margin-bottom:2px" ><a href="https://youtu.be/Q8tDO2uSk5U">
Learn Computer Networking Full course</a></button>
<br/>
<!-- Get app link -->
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>