- 4
- 10 305
Furkan
Приєднався 21 січ 2013
Iterative Method - Design & Analysis of Algorithms - Decimal to Hexadecimal
CORRECTION BELOW
0:00 Explanation
1:58 State the problem
4:20 Introduction to Numbers
9:24 Converting to binary
12:14 Converting to hexadecimal
17:45 Pseudocode
26:41 Prove Correctness (code demo)
35:08 Analyze Time Complexity using Iterative Method
The design and & analysis of an algorithm that converts a base 10 number in N to a base 16 number in N. This video specifically demonstrates a recurrence relation analysis using the iterative method.
Correction to the recurrence relation base case. It should say:
T(n) = T(n/16^k) + k * O(1) ; T(1) = 1
To find the maximum that k reaches (which means the MAX NUMBER OF STEPS),
we set
T(n/16^k) equal to the base case = 1
then solve for k.
Thanks to Aarthi Srinivasan for bringing this up.
Link to formatted answer: imgur.com/qtOcvuZ
0:00 Explanation
1:58 State the problem
4:20 Introduction to Numbers
9:24 Converting to binary
12:14 Converting to hexadecimal
17:45 Pseudocode
26:41 Prove Correctness (code demo)
35:08 Analyze Time Complexity using Iterative Method
The design and & analysis of an algorithm that converts a base 10 number in N to a base 16 number in N. This video specifically demonstrates a recurrence relation analysis using the iterative method.
Correction to the recurrence relation base case. It should say:
T(n) = T(n/16^k) + k * O(1) ; T(1) = 1
To find the maximum that k reaches (which means the MAX NUMBER OF STEPS),
we set
T(n/16^k) equal to the base case = 1
then solve for k.
Thanks to Aarthi Srinivasan for bringing this up.
Link to formatted answer: imgur.com/qtOcvuZ
Переглядів: 296
Відео
Solving Recurrence Relations: Master Method
Переглядів 3702 роки тому
Solving Recurrence Relations: Master Method
Strongly Connected Components & Topological Sort
Переглядів 3263 роки тому
CSCE 221 review over our quiz on SCC & Top. Sort. 0:00 Questions 1-4: Tree Edges 5:39 Question 5: Compute Indegree 6:52 Question 6: Strongly Connected Components 13:02 Question 7: Strongly Connected Graph 14:38 Question 8: Can We Top Sort? 16:17 Question 9: DFS Top Sort 20:12 Question 9: Indegree Top Sort
Collision Resolution - Double Hashing Method
Переглядів 9 тис.3 роки тому
NOTE: Index 3 of the array should hold "13" rather than "3". I thought I wrote in 13 but the 1 is missing.