1 / 20

Optimization Problems and Algorithms

This lecture covers the wrap-up of Part I of the course on Optimization Problems, including backtracking algorithms, greedy algorithms, and dynamic programming. Part II focuses on optimization problems on graphs, such as single-source shortest paths, all-pairs shortest paths, maximum flow, and maximum bipartite matching. Part III covers miscellaneous topics including NP-completeness, approximation algorithms, and linear programming. The exam will consist of exercises similar to homework and questions on algorithms and proofs.

Download Presentation

Optimization Problems and Algorithms

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. Algorithms (2IL15) – Lecture 13 Wrap-up lecture

  2. Part I of the course: Optimization Problems wewant to find valid solution minimizing cost (or maximizing profit)  always start by investigating structure of optimal solution backtracking: just try all solutions (pruning when possible) • extra exercises: backtracking algorithms for NP-hard problems Vertex Cover, 3-SAT, Hamiltonian Cycle, … greedy algorithms: make choice that seems best, recursively solve remaining subproblem • proof is crucial; make sure you know proof structure by heart • extra exercises: greedy algorithms explained in book dynamic programming: give recursive formula, fill in table • make sure you know steps to design dynamic-programming algorithm • extra exercises: dynamic-programming algorithms explained in book

  3. − 2 1 2 1 2 2.3 4 4 3 1 5 3 2 8 3 Part II of the course: optimization problems on graphs single-source shortest paths Find shortest path from source vertex to all other vertices all-pairs shortest paths Find shortest paths between all pairs of vertices maximum flow Find maximum flow from source vertex to target vertex maximum bipartite matching Find maximum number of disjoint pairs of vertices with edge between them

  4. single-source / all-pairs shortest paths • you should know and understand the various algorithms SSSP: Bellman-Ford, Dijkstra, algorithm on DAGs APSP: relation to matrix multiplication, Johnson’s reweighting • extra exercises: give algorithms, give proofs of important lemmas maximum flow + maximum bipartite matching • definition of flow network, flow • Ford-Fulkerson method + Edmonds-Karp implementation (concept of augmenting flow, residual path, etcetera) • relation between flows and cuts (e.g. max flow = min cut) • integer capacities: there is always a max flow that is integral  basis for many applications, e.g. for max bipartite matching)

  5. Part III of the course: Miscellaneous topics • NP-completeness • definitions and concepts: P, NP, reductions • list of NP-complete problems • you should be able to reproduce NP-completeness proofs … • (they also teach you tricks for other NP-completeness proofs) • approximation algorithms • definitions and concepts: approximation factor, (F)PTAS • how to prove approximation ratio: compare to lower (upper) bound • linear programming • definitions and concepts: LP, standard form integer LP, 0/1-LP • how to model a problem as an LP Part III of the course: miscellaneous topics

  6. The exam • most exercises are of the same type as the homework exercises • about 1/3 of exercises is (almost) identical to homework exercises • exam may also have some questions where the answer can be found literally on the slides or in the book (reproduce algorithm or proof, definitions) How to prepare • study the slides (only look into the book when there are things in the slides that you do not understand) • solve all the homework exercises again ! • reproduce algorithms / proofs from the book

  7. What we did not do in the course … … lots, in particular … algorithms for big data geometric algorithms algorithms for geographic data

  8. ALU registers L1 cache L2 cache L3 cache internal memory disk Algorithms for Big Data Data, data, everywhere. Economist 2010

  9. ALU registers L1 cache L2 cache L3 cache internal memory disk I/O- and caching behavior analysis of running time:(asymptotically) determine number of elementary operations as a function of input size basic assumption:elementary operations take roughly same amount of time is this justified? Not when data is stored on disk: disk operations can be factor 100,000 (or more) slower than operations on data in main memory • how can we design I/O-efficient algorithms? • how should we analyze such algorithms? • can / should we also worry about caching ?

  10. streaming algorithms data stream model: • data is read sequentially in one (or few) passes • size of the working memory is much smaller than size of data example:traffic going through high speed routers (data can not be revisited) • how can we design algorithms for data streams? (e.g. maintain approximate median of stream of numbers) • how should we analyze such algorithms?  take Advanced Algorithms (big data + more approximation algorithms)

  11. Geometric algorithms

  12. computer-aided design and manufacturing (CAD/CAM) • motion planning • virtual walkthroughs 3D model of power plant (12.748.510 triangles)

  13. 9 5 4 6 8 7 3 2 1 3D copier surface reconstruction 3D printer 3D scanner

  14. many areas where geometry plays important role: • geographic information systems • computer-aided design and manufacturing • robotics and motion planning • computer graphics and virtual reality • databases • structural computational biology • and more … salary 50.000 30.000 30 45 age

  15. Geometric data structures • store geometric datain 2-, 3- or higher dimensional space such that certain queries can be answered efficiently • applications: GIS, graphics and virtual reality, … Examples: • point location • range searching • nearest-neighbor searching want to know more about algorithms and data structures for spatial data?  take Geometric Algorithms

  16. Algorithms for Geographic Data

  17. geographic information systems (GIS) Mississippi delta Arlington Arlington Memphis Memphis Memphis Memphis 30 cities: 430 = 1018 possibilities

  18. automated cartography examples: • map labeling • scaling and simplification • schematization • maps for various types of data, e.g., flows

  19. trajectory data data of • animals, humans, vehicles, … Examples of analysis tasks: • How similar are two trajectories? • How to find clusters? • How to represent a cluster? • How to simplify a trajectory? • …  take Algorithms for Geographic Data

  20. THE END well, except for the exam … comments / suggestions for improvements are welcome

More Related