a problem solving methodology using the extremality
play

A Problem-Solving Methodology using the Extremality Principle and - PowerPoint PPT Presentation

A Problem-Solving Methodology using the Extremality Principle and its Application to CS Education Jagadish M. IIT Bombay 29 June 2015 (Advisor: Prof. Sridhar Iyer) Contribution in a nutshell We have identified a few domains in theoretical


  1. A Problem-Solving Methodology using the Extremality Principle and its Application to CS Education Jagadish M. IIT Bombay 29 June 2015 (Advisor: Prof. Sridhar Iyer)

  2. Contribution in a nutshell We have identified a few domains in theoretical computer science and devised problem-solving techniques for problems in each domain.

  3. Problem-solving as a search process ‘If you can’t solve a problem, then there is an easier problem you can solve: find it.’

  4. Problem-solving as a search process Problem P P 1 P 2 P 3 P 4 Sol 1 Sol 2 Sol 3 Solution to P Weaken-Identify-Solve-Extend (WISE).

  5. Too general to be useful Problem P ′ Problem P P 1 P 2 P 3 P 4 P 1 P 2 P 3 P 4 Sol 1 Sol 2 Sol 3 Sol 1 Sol 2 Sol 3 Solution to P ′ Solution to P

  6. How to give precision? P 1 ≈ P 2 Problem P 1 Problem P 2 Solution to P 1 Solution to P 2

  7. How to give precision? 1. Restrict the domain 2. Extremality principle Looking at objects that maximize or minimize some properties.

  8. Generate extremal instances Step 1: Identify the properties of instances Step 2: Define max/min functions on properties.

  9. Generate extremal graphs Step 1: Property: Number of edges Step 2: Function: Maximum number of edges

  10. Generate extremal graphs Step 1: Property: Number of edges Step 2: Function: Maximum number of edges K 6

  11. Two types of extremal instances Domain-specific. Examples: Complete graph, path, binary tree, bipartite graph, etc. Problem-specific.

  12. Overview Extremality Principle Ad-hoc problems Computer science domain Query Lower Bounds Counter Examples for Greedy Algorithms Tree Learning Problem Linear Programming

  13. Overview Extremality Principle Ad-hoc problems Computer science domain Query Lower Bounds Graph-theoretic problems Counter Examples for Greedy Algorithms Tree Learning Problem Linear Programming

  14. Overview Extremality Principle Ad-hoc problems Computer science domain Query Lower Bounds Counter Examples for Greedy Algorithms Tree Learning Problem Linear Programming

  15. Overview Extremality Principle Ad-hoc problems Computer science domain Query Lower Bounds 1 Counter Examples for Greedy Algorithms Tree Learning Problem Linear Programming

  16. Connectivity: An example Problem We are given an adjacency matrix of a graph G = ( V , E ). How many entries do we have to probe to check if G is connected.

  17. Our proof vs textbook proof

  18. Connectivity: Textbook proof Current textbook-proofs of this problem goes through invariant analysis. Drawback. Not easily generalizable to other properties.

  19. Our proof: Main idea Problem of proving a lower bound. ⇓ reduced to Constructing a certain extremal graph.

  20. Our proof: Main idea Problem of proving a lower bound. ⇓ reduced to Constructing a certain extremal graph. ◮ More generalizable than the invariant proof. ◮ Students find the second task easy (Pilot experiment).

  21. Critical Graph A graph G is called a critical graph with respect to property P if ◮ Graph G does not have the property P . ◮ But replacing any non-edge with an edge endows G with the property.

  22. Connectivity K n / 2 K n / 2 K n / 2 K n / 2 A B A B ( a ) ( b ) - G is not connected. - But replacing any non-edge with an edge makes it so.

  23. Advantage of our proof Critical graphs for other topological graph properties are easy to construct. Hence, proving lower bounds becomes easy.

  24. Applicability Property Extremal critical graph Connectivity 2 K n s Triangle-freeness Star Hamiltonicity 2 K n s Perfect matching 2 K n s Bipartiteness K n , n Cyclic Path Degree-three node Cycle Planarity Triangulated graph Eulerian Cycle

  25. Overview: Counterexamples Extremality Principle Ad-hoc problems Computer science domain Query Lower Bounds 1 Counter Examples for Greedy Algorithms Tree Learning Problem Linear Programming

  26. Overview: Counterexamples Extremality Principle Ad-hoc problems Computer science domain Query Lower Bounds 1 Counter Examples for Greedy Algorithms 2 Tree Learning Problem Linear Programming

  27. Scope of problems Optimization Problem P Greedy Task T Counterexample C Greedy Algorithm A Original Task

  28. Max. Independent Set Problem (MIS) A set of vertices S is said to be independent if no two vertices in S have an edge between them. e d c a b Given a simple graph G output the largest independent set.

  29. Greedy strategy for MIS 1. Pick the vertex with the smallest degree (say v ). 2. Delete v and its neighbours from G . 3. Recurse on the remaining graph.

  30. Scope of problems Optimization Problem P Greedy Task T Counterexample C Greedy Algorithm A Original Task

  31. Definitions Maximal set An independent set is said to be maximal if we cannot extend it. Discrepancy of G The difference between the largest and the smallest maximal sets in G .

  32. Extremal graphs of interest Graphs with high discrepancy. Graphs with low discrepancy.

  33. MIS counterexample 1 2 n . . . Maximum discrepancy graph

  34. MIS counterexample Greedy counterexample 1 2 n . . . K n

  35. MIS counterexample Greedy counterexample 1 2 n . . . K n Minimum discrepancy graph

  36. MIS counterexample Greedy counterexample 1 2 n . . . K n Best Counterexample= Max. + Min. discrepancy graphs!

  37. Applicability Problem St. I St. II Independent Set Star K n Vertex Cover Star Centipede Matching Paths K n , n Maxleaf Path Binary tree Maxcut K n , n K n , n Network Flow - Paths Triangle-Free - K n s Dominating Set Paths Paths

  38. Pilot Experiments Counterexample Construction Discrepancy graphs. Students’ Approaches Bad first choice More general problem Reduce from known problem Try all small graphs

  39. Pilot Experiments Counterexample Construction Discrepancy graphs. Students’ Approaches Bad first choice More general problem Reduce from known problem Try all small graphs

  40. Pilot Experiments Counterexample Construction Discrepancy graphs. Students’ Approaches Bad first choice More general problem Reduce from known problem Try all small graphs

  41. Pilot Experiments Counterexample Construction Discrepancy graphs. Students’ Approaches Bad first choice More general problem Reduce from known problem Try all small graphs

  42. Pilot Experiments Counterexample Construction Discrepancy graphs. Students’ Approaches Bad first choice More general problem Reduce from known problem Try all small graphs

  43. Overview: Tree-learning problem Extremality Principle Ad-hoc problems Computer science domain Query Lower Bounds 1 Counter Examples for Greedy Algorithms 2 Tree Learning Problem Linear Programming

  44. Overview: Tree-learning problem Extremality Principle Ad-hoc problems Computer science domain Query Lower Bounds 1 Counter Examples for Greedy Algorithms 2 Tree Learning Problem 3 Linear Programming

  45. Problem description r 13 15 11 10 12 6 5 8 9 2 1 4 Query: ‘Is node x a descendant of node y ?’ Joint work with Anindya Sen.

  46. Problem description r 13 15 11 10 12 6 5 8 9 2 1 4 Result: An O ( n 1 . 5 log n ) algorithm. Previously, only O ( n 2 ) was known. Joint work with Anindya Sen.

  47. Key ideas via extremal trees Idea Extremal Tree Generalization I Path Bounded-leaves trees II Complete binary tree Short-diameter trees II Centipede Long diameter trees Ideas I+II+II = O ( n 1 . 8 log n ) algorithm Joint work with Anindya Sen.

  48. Overview: LPs Extremality Principle Ad-hoc problems Computer science domain 1 Query Lower Bounds 2 Counter Examples for Greedy Algorithms 3 Tree Learning Problem Linear Programming

  49. Overview: LPs Extremality Principle Ad-hoc problems Computer science domain 1 Query Lower Bounds 2 Counter Examples for Greedy Algorithms 3 Tree Learning Problem 4 Linear Programming

  50. Motivation Most books on linear programming assume knowledge of linear algebra.

  51. Motivation Introduce linear programming to a younger audience using weak duality.

  52. Scope of problems Math puzzles that can be formulated as a linear programs.

  53. Scope of problems Mathematical Olympiad Simple Polytopes Main Idea: Certificates are easy to find.

  54. Tiling Prove that every 10 × 10 board cannot be tiled using straight tetraminoes. 1 1 F. Ardilla and R.P. Stanley. Tilings . Mathematical Intelligencer 2010

  55. Tiling Every color appear appears 25 times (odd number).

  56. Tiling Every tile covers even number of colors.

  57. Tiling Every tile covers even number of colors.

  58. Tiling via LP What is maximum number of non-overlapping tiles we can place? LP-formulation. We ensure this by saying that among all the tiles that cover a cell c , at most one should be picked. � max: t t ∈ T � t ≤ 1 ∀ c ∈ C t ∈ T c

  59. Tiling - Dual The dual will have one variable for each cell. ◮ Minimize the sum of cell-variables. ◮ Constraint : Sum of every four adjacent cells > = 1.

  60. Tiling: Certificate Every tile must lie on exactly one dark cell. But there are only 24 dark cells.

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend