1/32
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
|---|
No study sessions yet.

True, AVL Tree are more balanced than Red-Black Tree
BFS用?實作
Queue
DFS用?實作
Stack
List can be constructed to a BST with worst case O(n)
False, skewed tree will have worst case O(n2)
“The height of tree is n and there are n elements“
O(nlogn)/O(nlogn)/O(n^2). When the data are sorted
Merge Sort: Best/Avg/Worst
O(nlogn)/O(nlogn)/O(nlogn)
O(n)/O(n^2)/O(n^2)/ when the data are sorted
Selection Sort:Best/Avg/Worst
O(n^2)/O(n^2)/O(n^2)
If a weighted graph with weight w_i\geq0 , then if a new graph with w_i+M,M\geq0 , the shortest path will remain the same.
Time complexity for k-coloring problem when
1.k <= 2
2. k >=3
O(V+E) ( 判斷是否為二分圖)
2. NP-C
degree=\lceil\frac{order}{2}\rceil
keys = 2t-1
child = 2t
It’s possible to run radix sort in linear time with respect to the length of the list
"True, but only when the length of elements are all fixed, otherwise it will be O(kn) k for digit,n for # of elements"

AD
Time Complexity of Floyd Warshall
O(V^3)
Time Complexity of Dijsktra
O(VlgV+E) using Fibonacci Heap
O(VlgV+ElgV) using Binary Heap
Time Complexity of Bellman Ford
O(VE)
Conversion between Red-Black Tree and 2-3-4 Tree
紅節點與父節點合併,black depth為height

False, Trie不是BST
m-nary tree has how many Internal and External node
L=(m-1)I+1
|E|=n-1=I+L-1
Every tree is a bipartite graph
True
An AVL tree with height = h has node’s n >= ?
n\geq F_{h+2}-1
Time Complexity of Strassen’s Matrix Multiplication
O(n^{log_{2}{7}})
The number of degree 0 nodes in a tree
#deg(2)+1
B+ Tree
A B tree that store data only in leaf, 利於執行連續搜尋3
The number of spanning in complete graph K_n
n^{n-2}