Structure in solution spaces: Three lessons from Jean-Claude

Similar documents
Greedy Algorithm. Algorithm Fall Semester

V = set of vertices (vertex / node) E = set of edges (v, w) (v, w in V)

10.2 Graph Terminology and Special Types of Graphs

Chapter 9. Greedy Technique. Copyright 2007 Pearson Addison-Wesley. All rights reserved.

Distance vector protocol

MITSUBISHI ELECTRIC RESEARCH LABORATORIES Cambridge, Massachusetts. Introduction to Matroids and Applications. Srikumar Ramalingam

Lecture 12 : Topological Spaces

Outline. CS38 Introduction to Algorithms. Graphs. Graphs. Graphs. Graph traversals

Duality in linear interval equations

Lecture 8: Graph-theoretic problems (again)

Solids. Solids. Curriculum Ready.

Lecture 13: Graphs I: Breadth First Search

Class Overview. Database Design. Database Design Process. Database Design. Introduction to Data Management CSE 414

Paradigm 5. Data Structure. Suffix trees. What is a suffix tree? Suffix tree. Simple applications. Simple applications. Algorithms

Width and Bounding Box of Imprecise Points

Pattern Matching. Pattern Matching. Pattern Matching. Review of Regular Expressions

If you are at the university, either physically or via the VPN, you can download the chapters of this book as PDFs.

5 ANGLES AND POLYGONS

Comparison-based Choices

CS 551 Computer Graphics. Hidden Surface Elimination. Z-Buffering. Basic idea: Hidden Surface Removal

COMP108 Algorithmic Foundations

Containers: Queue and List

GENG2140 Modelling and Computer Analysis for Engineers

String comparison by transposition networks

Lesson 4.4. Euler Circuits and Paths. Explore This

Table-driven look-ahead lexical analysis

Internet Routing. Reminder: Routing. CPSC Network Programming

2 Computing all Intersections of a Set of Segments Line Segment Intersection

3D convex hulls. Convex Hull in 3D. convex polyhedron. convex polyhedron. The problem: Given a set P of points in 3D, compute their convex hull

Outline. Motivation Background ARCH. Experiment Additional usages for Input-Depth. Regular Expression Matching DPI over Compressed HTTP

CS 241 Week 4 Tutorial Solutions

COMP 423 lecture 11 Jan. 28, 2008

ΕΠΛ323 - Θεωρία και Πρακτική Μεταγλωττιστών

Premaster Course Algorithms 1 Chapter 6: Shortest Paths. Christian Scheideler SS 2018

10.5 Graphing Quadratic Functions

Ma/CS 6b Class 1: Graph Recap

Final Exam Review F 06 M 236 Be sure to look over all of your tests, as well as over the activities you did in the activity book

CS 340, Fall 2016 Sep 29th Exam 1 Note: in all questions, the special symbol ɛ (epsilon) is used to indicate the empty string.

Ma/CS 6b Class 1: Graph Recap

Midterm Exam CSC October 2001

Today. CS 188: Artificial Intelligence Fall Recap: Search. Example: Pancake Problem. Example: Pancake Problem. General Tree Search.

Calculus Differentiation

Section 2.3 Functions. Definition: Let A and B be sets. A function (mapping, map) f from A to B, denoted f :A B, is a subset of A B such that

Algorithm Design (5) Text Search

Distributed Systems Principles and Paradigms. Chapter 11: Distributed File Systems

Advanced Programming Handout 5. Enter Okasaki. Persistent vs. Ephemeral. Functional Queues. Simple Example. Persistent vs.

6.045J/18.400J: Automata, Computability and Complexity. Quiz 2: Solutions. Please write your name in the upper corner of each page.

Cooperative Routing in Multi-Source Multi-Destination Multi-hop Wireless Networks

s 1 t 4 s 2 4 t 2 a b r 2 r 8 r10 g 4

Journal of Combinatorial Theory, Series A

Distributed Systems Principles and Paradigms

Introduction to Algebra

Bayesian Networks: Directed Markov Properties (Cont d) and Markov Equivalent DAGs

COMMON FRACTIONS. or a / b = a b. , a is called the numerator, and b is called the denominator.

Tries. Yufei Tao KAIST. April 9, Y. Tao, April 9, 2013 Tries

Computational geometry

Distance Computation between Non-convex Polyhedra at Short Range Based on Discrete Voronoi Regions

Rolling Back Remote Provisioning Changes. Dell Command Integration for System Center

Chapter 4 Fuzzy Graph and Relation

1.1. Interval Notation and Set Notation Essential Question When is it convenient to use set-builder notation to represent a set of numbers?

Comparing Hierarchical Data in External Memory

COSC 6374 Parallel Computation. Non-blocking Collective Operations. Edgar Gabriel Fall Overview

XML and Databases. Outline. XPath. Outline - Lectures. XPath Data Model. Outline - Assignments. XPath. Sebastian Maneth NICTA and UNSW

In the last lecture, we discussed how valid tokens may be specified by regular expressions.

Announcements. CS 188: Artificial Intelligence Fall Recap: Search. Today. Example: Pancake Problem. Example: Pancake Problem

Definition of Regular Expression

Tight triangulations: a link between combinatorics and topology

6.3 Volumes. Just as area is always positive, so is volume and our attitudes towards finding it.

A Tautology Checker loosely related to Stålmarck s Algorithm by Martin Richards

Minimal Memory Abstractions

Line The set of points extending in two directions without end uniquely determined by two points. The set of points on a line between two points

PROBLEM OF APOLLONIUS

WORKSHOP 19 GLOBAL/LOCAL MODELING USING FEM FIELDS

Graph theory Route problems

[Prakash* et al., 5(8): August, 2016] ISSN: IC Value: 3.00 Impact Factor: 4.116

UTMC APPLICATION NOTE UT1553B BCRT TO INTERFACE PSEUDO-DUAL-PORT RAM ARCHITECTURE INTRODUCTION ARBITRATION DETAILS DESIGN SELECTIONS

12/9/14. CS151 Fall 20124Lecture (almost there) 12/6. Graphs. Seven Bridges of Königsberg. Leonard Euler

CS143 Handout 07 Summer 2011 June 24 th, 2011 Written Set 1: Lexical Analysis

Convex Hull Algorithms. Convex hull: basic facts

Introduction. Example

MATH 25 CLASS 5 NOTES, SEP

WORKSHOP 6 FRAME SURFACE MODEL ANALYSIS

Chapter 16. Shortest Paths Shortest Weighted Paths

Typing with Weird Keyboards Notes

Graph Contraction and Connectivity

A23 ECR SEP2017 WW RR A24 ECR MAY2018 KD FL N#0.30

Announcements. CS 188: Artificial Intelligence Fall Recap: Search. Today. General Tree Search. Uniform Cost. Lecture 3: A* Search 9/4/2007

and vertically shrinked by

Honors Thesis: Investigating the Algebraic Properties of Cayley Digraphs

13.1 Weighted Graphs and Their Representation

Cellular-based Population to Enhance Genetic Algorithm for Assignment Problems

Answer Key Lesson 6: Workshop: Angles and Lines

Kinetic Collision Detection: Algorithms and Experiments

An Efficient Algorithm for the Physical Mapping of Clustered Task Graphs onto Multiprocessor Architectures

Unit #9 : Definite Integral Properties, Fundamental Theorem of Calculus

A dual of the rectangle-segmentation problem for binary matrices

4.3 Balanced Trees. let us assume that we can manipulate them conveniently and see how they can be put together to form trees.

Fig.25: the Role of LEX

CS481: Bioinformatics Algorithms

WORKSHOP 3 FRAME MODEL CREATION USING CURVES, AND ANALYSIS

Transcription:

Struture in solution spes: Three lessons from Jen-Clue Dvi Eppstein Computer Siene Deprtment, Univ. of Cliforni, Irvine Conferene on Meningfulness n Lerning Spes: A Triute to the Work of Jen-Clue Flmgne Ferury 27 28, 2014

My speilty: Algorithm esign The lgorithm esign proess: Fin omputtionl tsk in nee of solution Astrt wy unimportnt etils Often, nive lgorithm exists ut is too slow Design lgorithms tht re fster (sle etter with prolem size) without srifiing solution qulity CC-BY imge 2012 Itlin GP - Ferrri pit.jpg y Frneso Cripp from Wikimei ommons

ALEKS ir 2000 2005 AC ABCDEFG A ABCDEFGH ABCDEF ABCDE ABCDF ABDFH ABCE ABCD ABDF ACE ABC ABD AB Ø ACBDEFH B ABCDFH Limite to qusi-orinl lerning spes: Wht stuent knows is represente s finite set, the set of onepts the stuent hs mstere Lerning spe: the fmily of sets tht oul possily e the stte of knowlege of some stuent Qusi-orinl: the intersetion or union of ny two sets in the fmily is nother set in the fmily

Wht s wrong with qusi-orinl spes? Closure uner unions mkes sense psyhologilly, ut losure uner intersetions oes not This uses the spes to hve more sets thn they shoul (intersetions tht n t relly hppen) The extr sets inrese the numer of test questions neee to ssess stuent, slow own the ssessment lultions, n le to inuries in the ssessments Beuse of these prolems, JCF ws esperte to eliminte this restrition.

If qusi-orinl spes re, why use them? Mthemtilly, qusi-orinl spes form istriutive ltties Birkhoff s representtion theorem: the sets in these spes n e represente s ownwr-lose susets of prtil orer ABCDEFGH ABCDEFG ACBDEFH ABCDEF ABCDFH G H ABCDE ABCDF ABDFH E F ABCE ABCD ABDF C D ACE ABC ABD A B AC AB A B Ø

But wht oes it men? A prtil orer on set of onepts to e lerne esries prerequisite reltion A stuent will only eome rey to mster onept fter he or she hs mstere ll its prerequisites CC-BY-NC imge from http://strusegoose.om/272

Avntges of using the unerlying prtil orer It s onise Only the prerequisite reltion nees to e ommunite to lient softwre It s fst Key omputtionl ottlenek: listing ll sttes in the lerning spe Time per stte #onepts / mhine wor size [s implemente in erly versions of ALEKS] Cn theoretilly e improve to O(log #onepts) per stte [Squire 1995]

Lesson I When your stte spe forms istriutive lttie, fin out wht the unerlying prtil orer mens, n tke vntge of it for fst n spe-effiient lgorithms

Applition: Retngulr rtogrms Stylize geogrphi regions s retngles Retngle res represent numeril t [Risz, The retngulr sttistil rtogrm, Geog. Rev. 1934] Styliztion emphsizes the ft tht it s not mp The simpliity of the shpes mkes res esy to ompre

Formliztion of rtogrm onstrution Fin prtition of retngle into smller retngles, stisfying: Ajeny: Geogrphilly jent regions shoul sty jent Orienttion: Avoi gross geogrphi misplement (e.g. Cliforni shoul not e north of Oregon) Are universlity: Cn just to ny esire set of res while preserving jeny Are-universl 2 1 1 2 Not re-universl

Comintoril lnguge for esriing lyouts Augment jeny grph with four extr verties, one per sie of outer retngle Color sie-y-sie jenies lue, orient left to right Color ove jenies re, orient top to ottom Lyouts for given set of jenies orrespon 1-for-1 with lelings in whih the four olors n orienttions hve the orret lokwise orer t ll verties

Lol hnges from one lyout to nother Chnge olors/orienttions within qurilterl Correspons to twisting either the ounry etween two regions (s shown) or retngle surroune y four others

The istriutive lttie of lyouts n lelings (,0) (,0) (,0) (,1) (,0) (,0) (,0) (,0) (,0) (,1) (,0) (,0) (,0) (,0) (,1) (,0) (,0) (,0) (,0) (,1) (,0) (,0) (,0) (,0) (,1) (,0) (,0) (,0) (,0) (,1) (,0) (,0) (,0) (,0) (,1) (,0) (,0) (,0) (,0) (,1)

Wht oes it men? Elements = lyouts Neighors = lyouts tht iffer y single twist (,0) (,0) (,1) (,0) (,0) Upwr in lttie orer = twist ounterlokwise Elements of prtil orer = numer of times eh ounry hs een twiste Are-universl if n only if no ege twists re possile

Results of pplying Lesson I Although there my e exponentilly mny lyouts, the unerlying prtil orer hs polynomil size n n e onstrute in polynomil time By working t the prtil orer level of strtion, n effiiently fin n re-universl lyout (if it exists) with ritrry onstrints on ounry orienttions E., Mumfor, Spekmnn, & Vereek, Are-universl n onstrine retngulr lyouts, SIAM J. Comput. 2012

Beyon qusi-orinl spes My ontriution to ALEKS: Inste of prerequisites, esrie lerning spe y its lerning sequenes: orerings in whih ll onepts in the spe oul e lerne Sttes = unions of prefixes of the lerning sequenes ABC AB AC BC This exmple hs four lerning sequenes: A B C, A C B, C A B, n C B A A C Only two, A B C n C B A, suffie to efine the whole spe Ø

Avntges of the lerning sequene formultion Cple of representing every lerning spe tht is essile (n e lerne one onept t time) n lose uner unions Mthemtilly, suh spe forms n ntimtroi As with qusi-orinl spes, n list ll sttes quikly (the key step in stuent ssessment) Still quite onise Cn onstrut esription using the smllest possile set of lerning sequenes in time polynomil in the numer of sttes

Reltion to qusi-orinl spes n prtil orers A lerning sequene of qusi-orinl spe is liner extension of its unerlying prtil orer, or equivlently topologil orering of its prerequisite reltion. (A sequene of the verties of irete yli grph suh tht eh ege is oriente from erlier to lter in the sequene.) Thus, lerning sequenes provie nturl metho of generlizing liner extensions n topologil orerings to more generl spes

Lesson II Antimtrois re goo wy of esriing sets of orerings. When prolem involves liner extensions of prtil orers or topologil orers of irete yli grphs, generlize to ntimtrois n lerning sequenes.

Exmple: Burr puzzle isssemly sequenes

Applition of Lesson II: The 1/3 2/3 onjeture Conjeture: every prtil orer tht is not totl orer hs two elements x n y suh tht the numer of liner extensions with x erlier thn y is etween 1/3 n 2/3 of the totl numer Formulte inepenently y Kislitsyn (1968), Fremn (ir 1976), n Linil (1984) Equivlently, in omprison sorting, it is lwys possile to reue the numer of potentil output sorte orerings y 2/3 ftor, y mking single well-hosen omprison (As onsequene, every prtil orer n e sorte in numer of omprisons logrithmi in its numer of liner extensions.)

The 1/3 2/3 onjeture for ntimtrois Conjeture: every ntimtroi tht is not totl orer hs two elements x n y suh tht the numer of lerning sequenes with x erlier thn y is etween 1/3 n 2/3 of the totl numer [E., Antimtrois n lne pirs, Orer 2014] {,,,,e} {,,,,e} {,,,} {,,,} {,,,e} {,,,e} {,,,} {,,,e} {,,,e} {,,} {,,} {,,} {,,} {,,} {,,} {,,} {,,} {,,} {,} {,} {,} {,} {,} {,} {} {} {} {} {} {} Ø Ø Ø Three ntimtrois for whih the onjeture is tight

True for: Prtil results on the onjeture Antimtrois efine y two lerning sequenes (generlizing with-two prtil orers) Antimtrois of height two (generlizing height-two prtil orers) Antimtrois with t most six elements (y omputer serh) Severl lsses of ntimtrois efine from grph serhing Exmple: Elimintion orerings of mximl plnr grphs The re verties hve 2 neighors n n sfely e remove. The yellow verties hve to wit until some neighors hve een remove.

Beyon lerning spes Mei: systems of sttes n trnsitions tht n e emee in istne-preserving wy into Hmming ue {0, 1} n Every lerning spe is meium, ut not onversely < < < < <,, <, < < <,, < < <, <,, < < < < < Meium of voter preferenes with frozen sttes {0, 1} 19 From Flmgne, Regenwetter, n Grofmn, 1997

Fst shortest pths in mei The meium struture mkes fining shortest pths etween ll pirs of sttes esier thn in ritrry stte-trnsition systems E. & Flmgne, Dis. Appl. Mth. 2008 By omining it-prllel reth-first-serh se leling phse with the fst shortest pth lgorithm, n reognize whether stte-trnsition system forms meium in qurti time E., SODA 2008 & J. Grph. Alg. Appl. 2011

Lesson III Lrge numers of ifferent stte-trnsition systems hve the struture of meium When they o, the unerlying hyperue emeing llows fst onstrution of shortest pths

Unexpline ihotomy in omputtionl omplexity Three importnt lsses of omputtionl prolems P: prolems tht n e solve in polynomil time NP: prolems tht n e solve in exponentil time y simple rute-fore serh NP-hr: t lest s iffiult s ll prolems in NP Most omputtionl prolems tht hve een stuie re either known to e in P or known to e NP-hr One of the rre exeptions: rottion istne in inry trees / flip istne in polygon tringultions

Rottion in inry trees Sttes: inry trees hving given orere sequene of keys Trnsitions: swp prent-hil reltion etween two noes (rerrnging their three other hilren to preserve key sequene) CC-BY-SA-imge Tree rottion.png y Rmsmy from Wikimei ommons

Binry trees n polygon tringultions Binry trees with n leves orrespon y plnr grph ulity to tringultions of n (n + 1)-sie polygon The one extr sie mrks the root of the tree Tree rottions flips in the tringultion Flip: retringulte the qurilterl forme y two jent tringles

Flip istne: Distne in the flip grph

Generlize flip istne to non-onvex point sets E.g. in this se the point set is 3 3 gri The generlize prolem is NP-hr Luiw & Pthk, CCCG 2012 Pilz, Comp. Geom. 2014 But mye some other speil ses re esier?

Applition of Lesson III to flip istne Tringultions n flips form meium if n only if the point set oes not inlue the verties of n empty onvex pentgon Inlues ll onvex susets of n integer gri, n some other sets: When this is true, we n ompute flip istne in polynomil time E., SoCG 2007 & J. Comp. Geom. 2010

Conlusions To ompute effiiently with lrge stte spes, one must unerstn their mthemtil struture The strutures ientifie y JCF inluing qusi-orinl spes, lerning spes, n mei pper uiquitously oth in soil siene pplitions n eyon Ientifying one of these strutures in n pplition is the first step to fining effiient lgorithms for tht pplition Thnk you, Jen-Clue!