1 / 13

Design and Analysis of Algorithms Review

Design and Analysis of Algorithms Review. Haidong Xue Summer 2012, at GSU. Measurement of running time. Analysis. Asymptotic notations. Probabilistic analysis. Divide & Conquer. Design. Dynamic Programming. Algorithms. Greedy. Classic problems and their algorithms. Dynamic set model.

lilac
Download Presentation

Design and Analysis of Algorithms Review

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Design and Analysis of AlgorithmsReview HaidongXue Summer 2012, at GSU

  2. Measurement of running time Analysis Asymptotic notations Probabilistic analysis Divide & Conquer Design Dynamic Programming Algorithms Greedy Classic problems and their algorithms Dynamic set model Data structures Hash tables Binary search trees NP-Completeness

  3. 1. Algorithm analysis • What is an algorithm? • What are we interested about an algorithm? • How to measure the running time of an algorithm? • What are asymptotic notations? • Can you tell the asymptotic relation between two functions?

  4. 2. Algorithm design • What is a divide-and-conquer algorithm? • How to design a divide-and-conquer algorithm? • How to code a divide-and-conquer algorithm? • Recursion • How to calculate the running time of a divide-and-conquer algorithm? • Recurrence equation

  5. 2. Algorithm design • Problems efficiently solved by divide-and-conquer • Maximum sub-array • Matrix multiplication • Sorting • Quick sort, merge sort

  6. 2. Algorithm design • When to apply dynamic programming strategy? • What is a dynamic programming algorithm? • What are the two manners to dynamic programming algorithms? • Problems efficiently solved by dynamic programming • Matrix chain multiplication • Longest common sequence • Bellman-Ford algorithm • Floyd-Warshall algorithm

  7. 2. Algorithm design • What is a greedy algorithm? • When is a greedy algorithm correct? • Problems efficiently solved by greedy algorithms • Coin changing with certain coin denominations • Activity selection • Fractional knapsack • Dijkstra’s algorithm (single-source shortest path) • Kruskal’s algorithm (MST) • Prim’s algorithm (MST)

  8. 3. Sorting algorithm • What are comparison based sorting algorithms? • What is the lower bound of comparison based sorting algorithms? • Classic comparison based sorting algorithms • Insertion sort • Merge sort • Quick sort • Heap sort • Non-comparison based sorting algorithms • Counting sort

  9. 4. Graph related algorithms • What is a directed graph? • What is a undirected graph? • What are the two representations of graphs? • BFS, DFS, BFS-Traversal, DFS-Traversal • Topological sort, unweighted shortest path • MST • Kruskal; Prim • Single-source shortest path • Bellman-Ford; Dijkstra • All-pair shortest path • Floyd-Warshall • Vertex-cover – NP-complete • Travelling salesman problem – NP-complete

  10. 5. Data structures • What is the dynamic set model? • What are the operations on a dynamic set? • Hash tables • What are hash tables? • What is the worst case running time of each operation? • Hash functions • Multiplication hashing; division hashing; universal hashing • Open address • Binary search tree • Binary search tree properties • Algorithms of each dynamic set operation • Red-black tree

  11. 6. NP-Complete • What are P and NP problems? • What are NP-complete problems? • NP-Hard • How to prove a problem is NP-complete? • What are approximation algorithms for NP-complete problems? • What is the approximation ratio?

  12. 6. NP-Complete • Classic approximation algorithms for some NPC problems • Vertex cover • Set cover • TSP

  13. Computer Software Software Engineering Database Data mining Network Wireless Network Algorithms Applications Web programming Security Data Structure Signal processing Graphics Programming Language AI Robotics Compiler Principles of Compilers Automata Operating System Machine Language Computer Architecture Hardware Computer Composition Microchip Interfaces VLSI Design

More Related