Homomorphic Hashing for Sparse Coefficient Extraction

Slides:



Advertisements
Similar presentations
Rectangle-Efficient Aggregation in Spatial Data Streams Srikanta Tirthapura David Woodruff Iowa State IBM Almaden.
Advertisements

1+eps-Approximate Sparse Recovery Eric Price MIT David Woodruff IBM Almaden.
Solving connectivity problems parameterized by treewidth in single exponential time Marek Cygan, Marcin Pilipczuk, Michal Pilipczuk Jesper Nederlof, Dagstuhl.
Satisfiability Modulo Theories (An introduction)
Chapter Outline 3.1 Introduction
CS21 Decidability and Tractability
Ch 7.3: Systems of Linear Equations, Linear Independence, Eigenvalues
Preference Analysis Joachim Giesen and Eva Schuberth May 24, 2006.
1 The PCP starting point. 2 Overview In this lecture we’ll present the Quadratic Solvability problem. In this lecture we’ll present the Quadratic Solvability.
Orthogonality and Least Squares
8.3 Solving Systems of Linear Equations by Elimination
1 1.1 © 2012 Pearson Education, Inc. Linear Equations in Linear Algebra SYSTEMS OF LINEAR EQUATIONS.
System of Linear Equations Nattee Niparnan. LINEAR EQUATIONS.
MA2213 Lecture 5 Linear Equations (Direct Solvers)
Cs: compressed sensing
1 1.3 © 2012 Pearson Education, Inc. Linear Equations in Linear Algebra VECTOR EQUATIONS.
Surya Bhupatiraju MIT PRIMES May 20 th, 2012 On the Complexity of the Marginal Consistency Problem.
Weikang Qian. Outline Intersection Pattern and the Problem Motivation Solution 2.
Generating a d-dimensional linear subspace efficiently Raphael Yuster SODA’10.
1.7 Linear Independence. in R n is said to be linearly independent if has only the trivial solution. in R n is said to be linearly dependent if there.
Ch 6 Vector Spaces. Vector Space Axioms X,Y,Z elements of  and α, β elements of  Def of vector addition Def of multiplication of scalar and vector These.
1 MAC 2103 Module 11 lnner Product Spaces II. 2 Rev.F09 Learning Objectives Upon completing this module, you should be able to: 1. Construct an orthonormal.
Linear Algebra Engineering Mathematics-I. Linear Systems in Two Unknowns Engineering Mathematics-I.
Theory of Computational Complexity Probability and Computing Chapter Hikaru Inada Iwama and Ito lab M1.
REVIEW Linear Combinations Given vectors and given scalars
Parallel Direct Methods for Sparse Linear Systems
MAT 322: LINEAR ALGEBRA.
Automatic Test Generation
Property Testing (a.k.a. Sublinear Algorithms )
Lecture 7 Vector Space Last Time - Properties of Determinants
Fast Hamiltonicity Checking via Bases of Perfect Matchings
Richard Anderson Lecture 26 NP-Completeness
Hans Bodlaender, Marek Cygan and Stefan Kratsch
NP-Completeness (2) NP-Completeness Graphs 7/23/ :02 PM x x x x
Richard Anderson Lecture 26 NP-Completeness
NP-Completeness Yin Tat Lee
Solving Systems Using Elimination
Linear Algebra: Matrices and Vectors – Part 3
Dissertation for the degree of Philosophiae Doctor (PhD)
Linear Transformations
CS154, Lecture 16: More NP-Complete Problems; PCPs
Faster Space-Efficient Algorithms for Subset Sum
Finding Large Set Covers Faster via the Representation Method
Nikhil Bansal, Shashwat Garg, Jesper Nederlof, Nikhil Vyas
LPSAT: A Unified Approach to RTL Satisfiability
Linear Equations in Linear Algebra
Systems of Linear Equations in Engineering
Exponential Time Paradigms Through the Polynomial Time Lens
Sudocodes Fast measurement and reconstruction of sparse signals
1.3 Vector Equations.
Resolution Proofs for Combinational Equivalence
Chapter 11 Limitations of Algorithm Power
Bart M. P. Jansen Jesper Nederlof
“(More) Consequences of Falsifying SETH
What can we know from RREF?
Linear Algebra Lecture 18.
Graphs and Algorithms (2MMD30)
On The Quantitative Hardness of the Closest Vector Problem
Maths for Signals and Systems Linear Algebra in Engineering Lectures 13 – 14, Tuesday 8th November 2016 DR TANIA STATHAKI READER (ASSOCIATE PROFFESOR)
Mathematics for Signals and Systems
CSE 6408 Advanced Algorithms.
NP-Completeness Reference: Computers and Intractability: A Guide to the Theory of NP-Completeness by Garey and Johnson, W.H. Freeman and Company, 1979.
Maths for Signals and Systems Linear Algebra in Engineering Lectures 4-5, Tuesday 18th October 2016 DR TANIA STATHAKI READER (ASSOCIATE PROFFESOR) IN.
CS21 Decidability and Tractability
Trevor Brown DC 2338, Office hour M3-4pm
Math review - scalars, vectors, and matrices
Lecture 24 Classical NP-hard Problems
Linear Algebra Lecture 16.
Alan Mishchenko Department of EECS UC Berkeley
Presentation transcript:

Homomorphic Hashing for Sparse Coefficient Extraction Petteri Kaski, Mikko Koivisto, Jesper Nederlof IPEC 2012

Outline Introduction Subset Sum Linear Sat CNF-Sat Concluding remarks Bonus slide: CNF-Sat result.

Main Idea

Semigroup algebra’s, arithmetic circuits and coefficient extraction/polynomial interpolation

Semigroup algebra’s, arithmetic circuits and coefficient extraction/polynomial interpolation

A generic problem Semigroup algebra’s, arithmetic circuits and coefficient extraction/polynomial interpolation A generic problem Semigroup Consider the following generic problem: Fix a set     with operator                              . Given     pairs                                        and           . Find                 such that                                                . Subset Sum: If              (or                for large    ) and             . CNF-Sat: Given                                     of vars                    , take                 ,            , and      to be    .            are clause containing neg/pos literal of     .

A generic, naive, DP algorithm Make table entries for every                         and            .                  #ways to sum up to     with first    pairs. Compute entries            given all                   . OR: Compute only non-zero entries. Linear in #non-zero entries.

Subset Sum Given: integers and integer . Asked: is there such that                       Given:     integers                  and integer   . Asked: is there                          such that              Example Target:                   3 20 58 90 267 493 869 961 1000 1153 1246 1598 1766 1922

Subset Sum Given: integers and integer . Asked: is there such that                       Given:     integers                  and integer   . Asked: is there                          such that              Example Target:                   3 20 58 90 267 493 869 961 1000 1153 1246 1598 1766 1922

DP Subset Sum                                                                                      

1 2 ... 14 3 4 5 6 7 8 9 10 5842 ?

1 2 ... 14 3 4 5 6 7 8 9 10 5842 ?

1 2 ... 14 3 4 5 6 7 8 9 10 5842 ?

1 2 ... 14 3 4 5 6 7 8 9 10 5842 ?

1 2 ... 14 3 4 5 6 7 8 9 10 5842 ?

1 2 ... 14 3 4 5 6 7 8 9 10 5842 ?

1 2 ... 14 3 4 5 6 7 8 9 10 5842 ?

1 2 ... 14 3 4 5 6 7 8 9 10 5842 ?

1 2 ... 14 3 4 5 6 7 8 9 10 5842 ?

1 2 ... 14 3 4 5 6 7 8 9 10 5842 ?

1 2 ... 14 3 4 5 6 7 8 9 10 5842 ?

Sparse DP for Subset Sum

1 2 ... 14 3 4 5 6 7 8 9 10 5842 ?

1 2 ... 14 3 4 5 6 7 8 9 10 5842 ?

1 2 ... 14 3 4 5 6 7 8 9 10 5842 ?

1 2 ... 14 3 4 5 6 7 8 9 10 5842 ?

DP for Subset Sum Naive DP: time. Sparse DP: time, where                                                      Trivially,                   DFT (LN10):             time and             space. Can we get a              time and             space? Yes. First hash down, then use DFT algo.

DP Subset Sum                                                                                      

DP Subset Sum                                                                                                

Homomorphic property: Same recurrence can be used. 1 2 ... 14 3 4 5 6 7 8 9 10 5842 ? 1 2 ... 14 3 4 5 ? Homomorphic hashing Homomorphic property: Same recurrence can be used. Hashing property: No conflicts when extracting. Only depends on #non-zero entries in last column! (sparse coefficient interpolation)

Linear Sat Given                     ,              ,                 and            . Find                such that                and                  .

Linear Sat Given , , and . Find such that and . Exhaustive search:                 time and             space.

Linear Sat Given , , and . Find such that and . Exhaustive search:                 time and             space. DP:                time and space.

Linear Sat Given , , and . Find such that and . Exhaustive search:                 time and             space. DP:                time and space. DFT:                time and             space.

Linear Sat Given , , and . Find such that and . Exhaustive search:                 time and             space. DP:                time and space. DFT:                time and             space. Sparse DP:                      time and space.

Linear Sat Given , , and . Find such that and . Exhaustive search:                 time and             space. DP:                time and space. DFT:                time and             space. Sparse DP:                      time and space. Split and list:                    time and space.

Linear Sat Given , , and . Find such that and . Exhaustive search:                 time and             space. DP:                time and space. DFT:                time and             space. Sparse DP:                      time and space. Split and list:                    time and space. Is                      and             space possible?

Linear Sat Given , , and . Find such that and . Exhaustive search:                 time and             space. DP:                time and space. DFT:                time and             space. Sparse DP:                      time and space. Split and list:                    time and space. Is                      and             space possible? Yes. Hash down the DP by pre-multiplying      and    with a random                      matrix. Then apply DFT algorithm.

Linear Sat Given , , and . Find such that and . Exhaustive search:                 time and             space. DP:                time and space. DFT:                time and             space. Sparse DP:                      time and space. Split and list:                    time and space. Is                      and             space possible? Yes. Is                    and             space possible?

Linear Sat Given , , and . Find such that and . Exhaustive search:                 time and             space. DP:                time and space. DFT:                time and             space. Sparse DP:                      time and space. Split and list:                    time and space. Is                      and             space possible? Yes. Is                    and             space possible? Yes. Use a Win/Win aproach: If A has full rank, there is one solution and it can be found with Gauss elimination; So if high rank: branch to full rank, otherwise hash.

CNF-Sat Given: over variables. Asked: Is satisfiable? Solvable in                (BF) and                 time (DP). SETH: Not solvable in                          time, even when         is constant. Cygan et al. (CCC’12) counting sols not in                           time unless SETH fails.

CNF-Sat Given: over variables. A set is a projection of if there exists a variable assignment      such that      satisfies       iff            .     satisfiable iff        is a projection of    . Define                  as the set of all projections of     Clearly                                     . We count #solutions of     in                               time. Involves hashing down the DP to a ring associated with poset obtained by iterative compression.

Concluding remarks If a dimension of a DP-table is indexed by ints, binary vectors or subsets, it is sometimes possible to hash down the DP to exploit sparsity in the target segment. Improves space usage of previously known sparse DP algo’s for Subset Sum and Linear Sat Gives improved algorithm for CNF-Sat with few projections. Somehow orthogonal to branching (at least for Linear Sat) Original motivation: Can we combine our approach with ideas ensuring few Subset Sums/projections? Dissociated Subset Sum: In P or NP-C?

CNF-Sat in time. Given . . . We construct given . .                                     .                                                  . We construct                        given                  .                                                                                            .                    #as. projecting to      in      .                    #as. not satisfying clauses not in      in      . Compute                  in poly time for every                                                                           Compute             for same      using easy DP in time quadratic in the number of     ’s.