Solve .
Algorithms
Asymptotic analysis, recurrences, sorting, searching, greedy, dynamic programming and graph algorithms. 8 questions with worked solutions.
Solve .
What is the maximum number of elements binary search examines in a sorted array of 1000 elements?
Dijkstra's algorithm may give wrong answers when the graph has:
A graph has vertices A, B, C, D and weighted edges AB = 1, BC = 2, CD = 1, AD = 4, AC = 3, BD = 5. What is the weight of its minimum spanning tree?
Which of these sorting algorithms is stable in its standard form?
A knapsack has capacity 5. Items (weight, value) are (2, 3), (3, 4), (4, 5) and (5, 6), each usable at most once. What is the maximum total value?
A directed graph has a topological ordering if and only if it: