-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstructures.txt
More file actions
49 lines (40 loc) · 1.48 KB
/
Copy pathstructures.txt
File metadata and controls
49 lines (40 loc) · 1.48 KB
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
Some types of data structures
Assessed by the IB (IB standards are the intellectual property of the International Baccalaureate Organization)
1. static and dynamic data structure
2. arrays
3. two-dimensional arrays
4. stack
5. queue
6. linked list
7. tree
8. binary tree
9. collections
10. recursion
NOT Assessed by the IB , but you should know them
1. lists
2. dictionaries
3. sets
4. tuple
From link: https://computersciencewiki.org/index.php/Abstract_data_structures#Some_types_of_abstract_data_structures
Relation of data structure to algorithms:
Sorting:
Algorithms such as quicksort, merge sort, and heapsort
all use arrays as the underlying data structure.
These algorithms partition and rearrange the elements in the array
to put them in a sorted order.
Searching:
Algorithms such as linear search and binary search
can be implemented using arrays or linked lists. These algorithms
look for a specific value in a collection of elements.
Graph traversal:
Algorithms such as breadth-first search and
depth-first search can be implemented using graph data structures
such as an adjacency list or an adjacency matrix.
Shortest path:
Algorithm like Dijkstra, Bellman-Ford and others require the use
of priority queue, which is commonly implemented as a heap.
Huffman coding:
It uses the binary tree, to store the frequency of characters.
Hash-based search:
The hash table data structure is used in many algorithms such as
Hash-based search and many other lookups based on key-value pair