

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


1. Mathematics for analysis of algorithms Logarithmic, polynomial, and exponential functions. The factorial function and its logarithm, Stirling’s approximation to n! ( n! ( n / e ) n^ sqrt(2 n ) ). Binomial coefficients, probability of k successes in n independent trials. Rate of growth of functions (O( g ), ( g ), ( g ), o(g), (g)); using L’Hopital’sruleto evaluate limits; relative growth rates of logarithmic, polynomial, and exponential functions. (We say that exponentials dominate polynomials, but you should know what this means. For example, 5 sqrt (lg( n )) does not dominate n^2 .) Determining change in the running time of an algorithm caused by change in the input size, given ( T ( n )). Finding the running time of an algorithm, given pseudo-code. (For a recursive algorithm, you will obtain a recurrence.) Worst case vs expected case. Graphs and digraphs, data structures for representing (di)graphs, acyclic digraphs, sources and sinks, strongly connected components of a digraph, source and sink components, the component digraph. 2. Important Algorithms Fast exponentiation : You should understand how this algorithm improves upon the standard method of exponentiation, and be able to illustrate how it may be used to compute an^ (mod m ) for specific n. Straight insertion sort , merge and mergesort , max-heapify and heapsort , partition and quicksort : You should be familiar with the performance of each algorithm, and with its advantages and disadvantages (stability, extra space required, ability to take advantage of order present.) You should be able to illustrate the operation of partition and quicksort , and of max-heapify and heapsort. (I will not ask you to illustrate the other sorting algorithms.) Selecting the kth^ smallest in linear expected time. This algorithm also uses partition , and is similar to partition. You should be able to illustrate the operation of this algorithm. Polynomial multiplication in ( n lg ( n )) time using DFT and DFT ^1. You should know that this algorithm runs in ( n lg( n )) time, versus ( n^2 ) time if we compute the product directly from the definition and ( n 1.59) time using a simpler divide-and-conquer algorithm. You should know the general way in which the ( n lg( n )) time algorithm works. You should know how to evaluate a polynomial of degree bound n ( n = 2 k ) at the n th^ roots of unity by evaluating two polynomials of degree n /2 at the n / 2 th^ roots of unity, plus linear divide/combine time. All pairs shortest paths : How the algorithm works, optimal substructure. Prim’sandKruskal’sminimal spanning tree algorithms : You should be familiar with the definition and properties of an MST, as developed in the MST handout — especially the last theorem in the handout — and be able to illustrate the construction of an MST by Prim’sorKruskal’salgorithm. Depth-first search (DFS) in (di)graphs: You should understand how this algorithm is based on a stack, and be able to illustrate its operation on a digraph. You should understand the discover and finish times of a vertex, and the relationship of these times to the classification of edges. You should also understand the relation between edge types and strongly connected components. Topological sort (application of DFS): You should understand what it means to topologically sort an acyclic digraph, and be able illustrate the topological sort algorithm based on depth-first search. Finding the strongly connected components of a digraph (application of DFS): You should understand how the algorithm works, and be able to illustrate its operation.
To limit the number items you will need to study, I will NOT ask you any details of the following important algorithms, which we went over in class: Euclid's algorithm for finding the gcd The simple (n