Further reading: [CLRS] Chapters 1, 2 and 3.
Counting sort and radix sort.
The classes P and NP. NP-completeness. Examples.
Linked lists and queues.
Dynamic programming: Fibonacci numbers and Knapsack (other examples in the
practice).
How to store a graph?
Breadth-first search (BFS), idea, the core part of the algorithm,
deciding connectivity, implementation, running time.
Breadth-first search (BFS):
Deciding connectedness needs cn^2 or m steps.
Determining the components. finding a spanning tree, finding
shortest paths, (deciding bipartiteness: in Practice).
BFS on directed graphs, strongly connected components.
Min-cost spanning tree. Prim's algorithm. Implementation, running time. Implementing using edge-lists and heaps: We need n DELETE-MIN, n INSERT and m DECREASE-KEY operations.
Implementing DECREASE-KEY in heaps. d-ary heaps.
Dijkstra's algorithm for shortest paths. Implementations, running time. Two applications: safest path, widest path. Acyclic digraph (DAG), topological ordering, finding it in O(m).
Method PERT. Shortest paths in DAGs.
Conservative weighting of directed graphs. The algorithm of Bellmann and Ford.
Potential, detecting negative cycles.
All-pairs shortest paths (Floyd-Warshall, Johnson).
Depth first search (DFS) and its applications.
Binary search trees, SEARCH and INSERT.
DELETE in binary search trees.
AVL trees.
Inner procedure: ROTATION.
INSERT into an AVL tree.
Basics of computational theory, Turing-machines, decidability and undecidability.
P and NP. Polynomial reduction, theorem of Cook, NP-completeness. Examples. co-NP, N\cap co-NP, the problem of integer factorization.
The basics of hashing, good hash functions, collisions.
Chaining.
Hash tables, open addressing, linear hashing.
Universal families of hash functions. Cuckoo hashing.
Approximation algorithms.
Definitions. Traveling Salesman Problem (TSP), Steiner tree.
FPTAS for Knapsack.
FPT: Fixed Parameter Tractable problems.
Kernel, Vertex-Cover and Exact-Path.