The document discusses various algorithms and their time complexities, including recursive binary search, Johnson-Trotter for permutations, and the power function using divide and conquer. It also covers Horspool's algorithm for pattern matching, Floyd-Warshall for all-pairs shortest paths, Kruskal's for minimum weight spanning trees, and the knapsack problem using dynamic programming. Additionally, it contrasts divide and conquer with dynamic programming in terms of efficiency and complexity.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
2 views2 pages
Algorithm Answers
The document discusses various algorithms and their time complexities, including recursive binary search, Johnson-Trotter for permutations, and the power function using divide and conquer. It also covers Horspool's algorithm for pattern matching, Floyd-Warshall for all-pairs shortest paths, Kruskal's for minimum weight spanning trees, and the knapsack problem using dynamic programming. Additionally, it contrasts divide and conquer with dynamic programming in terms of efficiency and complexity.