On Testing Dynamic Environments

Slides:



Advertisements
Similar presentations
Numerical Linear Algebra in the Streaming Model Ken Clarkson - IBM David Woodruff - IBM.
Advertisements

Shortest Vector In A Lattice is NP-Hard to approximate
Distributional Property Estimation Past, Present, and Future Gregory Valiant (Joint work w. Paul Valiant)
Fast Algorithms For Hierarchical Range Histogram Constructions
1 Distribution-free testing algorithms for monomials with a sublinear number of queries Elya Dolev & Dana Ron Tel-Aviv University.
Distribution-free testing algorithms for monomials with a sublinear number of queries Elya Dolev & Dana Ron Tel-Aviv University.
The Divide-and-Conquer Strategy
1 The Monte Carlo method. 2 (0,0) (1,1) (-1,-1) (-1,1) (1,-1) 1 Z= 1 If  X 2 +Y 2  1 0 o/w (X,Y) is a point chosen uniformly at random in a 2  2 square.
Approximating Average Parameters of Graphs Oded Goldreich, Weizmann Institute Dana Ron, Tel Aviv University.
Maria-Florina Balcan Modern Topics in Learning Theory Maria-Florina Balcan 04/19/2006.
Property Testing: A Learning Theory Perspective Dana Ron Tel Aviv University.
Proclaiming Dictators and Juntas or Testing Boolean Formulae Michal Parnas Dana Ron Alex Samorodnitsky.
Putting a Junta to the Test Joint work with Eldar Fischer, Dana Ron, Shmuel Safra, and Alex Samorodnitsky Guy Kindler.
Testing of Clustering Noga Alon, Seannie Dar Michal Parnas, Dana Ron.
Sublinear Algorithms for Approximating Graph Parameters Dana Ron Tel-Aviv University.
Approximate Nearest Neighbors and the Fast Johnson-Lindenstrauss Transform Nir Ailon, Bernard Chazelle (Princeton University)
Sublinear time algorithms Ronitt Rubinfeld Blavatnik School of Computer Science Tel Aviv University TexPoint fonts used in EMF. Read the TexPoint manual.
Michael Bender - SUNY Stony Brook Dana Ron - Tel Aviv University Testing Acyclicity of Directed Graphs in Sublinear Time.
Testing Metric Properties Michal Parnas and Dana Ron.
On Proximity Oblivious Testing Oded Goldreich - Weizmann Institute of Science Dana Ron – Tel Aviv University.
Computational Complexity, Physical Mapping III + Perl CIS 667 March 4, 2004.
1 On approximating the number of relevant variables in a function Dana Ron & Gilad Tsur Tel-Aviv University.
On Testing Convexity and Submodularity Michal Parnas Dana Ron Ronitt Rubinfeld.
1 On the Benefits of Adaptivity in Property Testing of Dense Graphs Joint work with Mira Gonen Dana Ron Tel-Aviv University.
1 Algorithmic Aspects in Property Testing of Dense Graphs Oded Goldreich – Weizmann Institute Dana Ron - Tel-Aviv University.
1 On the Benefits of Adaptivity in Property Testing of Dense Graphs Joint works with Mira Gonen and Oded Goldreich Dana Ron Tel-Aviv University.
Lower Bounds for Property Testing Luca Trevisan U C Berkeley.
On Testing Computability by small Width OBDDs Oded Goldreich Weizmann Institute of Science.
Sublinear Algorithms for Approximating Graph Parameters Dana Ron Tel-Aviv University.
Maximum Likelihood Estimator of Proportion Let {s 1,s 2,…,s n } be a set of independent outcomes from a Bernoulli experiment with unknown probability.
Week 10Complexity of Algorithms1 Hard Computational Problems Some computational problems are hard Despite a numerous attempts we do not know any efficient.
CSC 211 Data Structures Lecture 13
Confidence intervals and hypothesis testing Petter Mostad
Complexity and Efficient Algorithms Group / Department of Computer Science Testing the Cluster Structure of Graphs Christian Sohler joint work with Artur.
Lecture. Today Problem set 9 out (due next Thursday) Topics: –Complexity Theory –Optimization versus Decision Problems –P and NP –Efficient Verification.
Giansalvo EXIN Cirrincione unit #4 Single-layer networks They directly compute linear discriminant functions using the TS without need of determining.
Complexity and Efficient Algorithms Group / Department of Computer Science Testing the Cluster Structure of Graphs Christian Sohler joint work with Artur.
Dense-Region Based Compact Data Cube
P & NP.
On Sample Based Testers
Clustering Data Streams
Property Testing (a.k.a. Sublinear Algorithms )
Probabilistic Algorithms
Stochastic Streams: Sample Complexity vs. Space Complexity
Tell Me Who I Am: An Interactive Recommendation System
Randomness and Computation
New Characterizations in Turnstile Streams with Applications
Dana Ron Tel Aviv University
Statistical Quality Control, 7th Edition by Douglas C. Montgomery.
Approximating the MST Weight in Sublinear Time
From dense to sparse and back again: On testing graph properties (and some properties of Oded)
Lecture 18: Uniformity Testing Monotonicity Testing
Quantum Two.
On Learning and Testing Dynamic Environments
Background: Lattices and the Learning-with-Errors problem
Chapter 9 Hypothesis Testing.
Algorithm design and Analysis
Hidden Markov Models Part 2: Algorithms
Bin Fu Department of Computer Science
Bin Sort, Radix Sort, Sparse Arrays, and Stack-based Depth-First Search CSE 373, Copyright S. Tanimoto, 2002 Bin Sort, Radix.
Locally Decodable Codes from Lifting
Bin Sort, Radix Sort, Sparse Arrays, and Stack-based Depth-First Search CSE 373, Copyright S. Tanimoto, 2001 Bin Sort, Radix.
The Subgraph Testing Model
Every set in P is strongly testable under a suitable encoding
Instructor: Aaron Roth
Algorithms CSCI 235, Spring 2019 Lecture 36 P vs
On Derandomizing Algorithms that Err Extremely Rarely
Complexity Theory: Foundations
Presentation transcript:

On Testing Dynamic Environments Oded Goldreich, Weizmann Institute Dana Ron, Tel Aviv University

Testing – A quick reminder ? Let OBJ be an object.  Given query access to OBJ and approximation parameter (0,1], a Testing Algorithm for a (prespecified) property P should accept if OBJ has P and reject if OBJ is -far from having P. Distance is normalized Hamming and algorithm should succeed with high constant probability (whp). 5 8 12 21 35 57 84 96 For example, OBJ may be an array of n numbers and the property is that it is sorted (monotonically increasing). The algorithm may query OBJ[i] for i of its choice. It should accept whp if OBJ is sorted and reject whp if OBJ should be modified on more than n entries so that it become sorted.

Testing Dynamic Environments - Informal The object, environment ENV, can change with time.  time 0  time 1 Properties of dynamic environments: change is according to a prespecified local rule R (initial configuration may be constrained) Given query access to ENV during time steps 0,…,T, testing algorithm should accept whp if ENV evolved according to R and reject whp if -far from such an evolution. Restrictions on algorithm: (1) Cannot go back in time (2) Number of queries should be sublinear in each time step.

Testing Dynamic Environments - Formalized Consider environments [n]d ENV(j,i1,…,id) is state of location (i1,…,id) in environment at time j. Evolution is local: ENV(j,i1,…,id) is determined by {ENV(j-1,i1+s1,…,id+sd)}, s1,…,sd  {-1,0,+1} . j-1 i-1 i i+1 V() j i On input (n,d,T,), algorithm asks queries (j,i1,…,id) and gets V(ENV(j,i1,…,id)) where V:’ is viewing function: V()’ is visible part of state . Time conforming: Algorithm cannot query (j,i1,…,id) after (j’,i’1,…,i’d) if j < j’.

Testing Dynamic Environments - Formalized Consider environments [n]d (mainly d  {1,2,3}) ENV(j,i1,…,id) is state of location (i1,…,id) in environment at time j. Evolution is local: ENV(j,i1,…,id) is determined by {ENV(j-1,i1+s1,…,id+sd)}, s1,…,sd  {-1,0,+1} . On input (n,d,T,), algorithm asks queries (j,i1,…,id) and gets V(ENV(j,i1,…,id)) where V:’ is viewing function: V()’ is visible part of state . Algorithm must be time conforming: cannot query (j,i1,…,id) after (j’,i’1,…,i’d) if j > j’. If ENV evolves from ENV0=ENV(0,*) in times 1,…,T according to rule R, then alg should accept whp, and if V(ENV) is -far from V(ENV’) for any such ENV’, then alg should reject whp. Temporal query complexity: Algorithm should perform o(nd) queries per time j.

Our Results Separation and Hardness Results: Time conformity can have a big (exponential) price. Adaptivity can give a big (exponential) benefit Testing may be as hard as learning (a learning algorithm should construct -close approximation of V(ENV)). Testing (with sublinear query complexity) may be computationally hard Specific Positive Results: Linear rules have sublinear query (and time) complexity. Environments of moving objects have sublinear query (and time) complexity.

Environments of Moving Objects Consider environments in which initially a subset of the locations are occupied by objects (“basic creatures”). Each object either wants to move right , or to move left , or to stand in place. These, as well as empty location are states of environment. At each time step, each object moves according to its trajectory, unless the new location is occupied, in which case it stops moving.

Environments of Moving Objects - Results We give a testing algorithm whose (total) query complexity and running time are poly(1/). The algorithm has two-sided error. This is unavoidable if complexity independent of n: We prove that any one-sided error algorithm must perform (log n) queries (if non-adaptive, as our algorithm is, then (n1/2) ) The algorithm performs a series of sub-tests (all but one have one-sided error, i.e., cause rejection based on “hard evidence”, and one has two-sided error since based on “statistical evidence”) The analysis has a contrapositive structure: Prove that if environment passes all sub-tests with constant probability, then close to legal environment.

Moving Objects – Some ideas and difficulties I First high-level idea that comes to mind: Uniformly select locations in ENV0 and for each that contains an object, check that it “behaves as it should” (approximately) in future time steps. If ENV0(i) = , must have ENVj(i) = for all j If ENV0(i) = , must have ENVj(i+j) = for every j  st(i), where st(i) is stopping location of object. Analogous statement for ENV0(i) = as well as for ENVT(i) = : ENVj(i) = for j  st(i) j1 j1 j2 j2 T j3

Moving Objects – Some ideas and difficulties II Note: If not time conforming then could find st(i) exactly by binary search. Since time conforming, can find st(i) approximately: Sample along diagonals and columns of “time  space” matrix to approximate st(i) for sampled i‘s (or find evidence for illegal environment, and reject). i i+j1 i+j2 i+j3 i+j4 j1 j2 < st(i) < j3 j2 j3 j4

Moving Objects – Some ideas and difficulties II Refer to sub-test for approximately finding st(i) as “non-interruptible individual movement check”. (Sample along diagonals and columns of “time  space” matrix to approximate st(i) for sampled i‘s (or find evidence for illegal environment, and reject).) “For the same price” can perform “non crossing pairs check”

Moving Objects – Some ideas and difficulties III At this point, if did not reject, “know” (with high confidence) that: “(almost) all objects move/stand in an (almost) non-interruptible way, (almost) without crossing each other” Source of two-sided error But, what is the relation between the moving and standing objects? Once a moving object stops, it should become a standing object. Perform a “matching of movement and standing check”. Use estimated times where sampled moving objects stopped moving and estimated times in which standing objects started to stand.

Moving Objects – Some ideas and difficulties IV At this point, if did not reject, “know” (with high confidence) that close to an environment in which objects move, then stop and stand without interruptions and crossings. But, objects can’t just stop at their whim, there should be a reason for stopping (i.e., another object blocking their way). Perform “non-spaced standing check”. Roughly speaking, between certain pairs of object standing at time T, must have standing objects between them.

Moving Objects – Some ideas and difficulties IV (Objects can’t just stop at their whim, there should be a reason for stopping (i.e., another object blocking their way).) Perform “non-spaced standing check”. Roughly speaking, between certain pairs of object standing at time T, must have standing objects between them. Full of standing objects

Moving Objects – Lower Bound for 1-sided error

Open Problems Price of time conformity when state is fully visible (viewing function V is identity) Benefit of adaptivity when state is fully visible Testing linear rules in polylog(n) (we show O(n) for <d, e.g., for d=1 binary field, get O(n0.8)). Extending the moving objects result to higher dimensions Extending the moving objects result to more complex (but natural) movement rules Sparse versions of moving objects (we have some results)

Thanks

Testing and Learning – quick reminder ? Let O be an object. 1 Given query access to O and approximation parameter (0,1], a Testing Algorithm for a (prespecified) property P should accept if O has P and reject if O is -far from having P. a Learning Algorithm should output hypothesis H s.t. H is -close to O. Alg has promise that O belongs to known class C (has the property of belonging to C) For both: distance is normalized Hamming (i.e. w.r.t. Uniform) and alg is allowed small constant error probability. Not hard to verify: Testing easier (not harder) than Learning

Dynamic Environments The object, environment E, can change with time. 1 t=0 t=1 The property: change is according to a prespecified rule R (or a rule that belongs to a prespecified class of rules R). Given query access to O and approximation parameter (0,1], a Testing Algorithm for a (prespecified) property P should accept if O has P and reject if O is -far from having P. a Learning Algorithm should output hypothesis H s.t. H is -close to O. Alg has promise that O belongs to known class C (has the property of belonging to C)

Environments of Moving Objects(*) Consider environments in which initially a subset of the locations are occupied by objects (“basic creatures”). Each object either wants to move right, or to move left, or to stay in place. At each time step, each object moves according to its trajectory, unless the new location is occupied, in which case it stops moving. (*) Inspired by

Environments of Moving Objects Consider environments in which initially a subset of the locations are occupied by objects (“basic creatures”). Each object either wants to move right, or to move left, or to stay in place. At each time step, each object moves according to its trajectory, unless the new location is occupied, in which case it stops moving.

Environments of Moving Objects - Definition Environment ENV : {0,…,T} x [n]  {0,-1,+1,} where 0 = stand, -1 = move left, +1 = move right,  = empty location Denote: ENVj(i) = ENV(j,i). Assume initially dist > 1 between moving objects Evolution rule as described in previous slide. For example: ENVj(i) = +1 if ENVj-1(i-1) = +1 and ENVj-1(i)  {0,-1} and ENVj-1(i+1)  -1 States are fully visible (viewing function V is identity).