Circuit Complexity of Shuffle - IWOCA 2013

Michael Soltys
Michael SoltysProfessor, Chair of the Department of Computer Science at California State University-Channel Islands
Circuit complexity of shuffle
Michael Soltys
July 10, 2013
Shuffle - Soltys IWOCA 2013 Title - 1/12
Shuffle
w is a shuffle of x and y: Shuffle(x, y, w)
x = 01101110
y = 10101000
w = 0110110011101000
Shuffle - Soltys IWOCA 2013 Definition - 2/12
Shuffle
w is a shuffle of x and y: Shuffle(x, y, w)
x = 01101110
y = 10101000
w = 0110110011101000
w is a shuffle of x and y provided:
x = x1x2 · · · xk and y = y1y2 · · · yk
and w obtained by “interleaving”:
w = x1y1x2y2 · · · xkyk.
Shuffle - Soltys IWOCA 2013 Definition - 2/12
Motivation
Modelling and verification of concurrent systems
Used in XML database systems for schema definitions
Plan recognition
Natural language processing
See http://bit.ly/17OD2md for more details
Shuffle - Soltys IWOCA 2013 Motivation - 3/12
Square Shuffle
w is a square provided it is equal to a shuffle of a x with itself, i.e.,
∃x s.t. Shuffle(x, x, w).
The string w = 0110110011101000 is a square:
w = 0110110011101000
and
x = 01101100 = 01101100
Shuffle - Soltys IWOCA 2013 Square Shuffle - 4/12
given an alphabet Σ, |Σ| ≥ 7,
Square = {w : ∃x Shuffle(x, x, w)}
is NP-complete; see http://arxiv.org/abs/1211.7161
What we leave open:
What about |Σ| = 2 (for |Σ| = 1, Square is just the set of
even length strings)
What about if |Σ| = ∞ but each symbol cannot occur more
often than, say, 6 times (if each symbol occurs at most 4
times, Square can be reduced to 2-Sat – see P. Austrin
Stack Exchange post http://bit.ly/WATco3)
Shuffle - Soltys IWOCA 2013 Square Shuffle - 5/12
Upper Bound
Shuffle(000, 111, 010101)
Shuffle(011, 011, 001111)
Based on Mansfield’s algorithm, Shuffle ∈ NL
Shuffle - Soltys IWOCA 2013 Upper bound - 6/12
Circuits
5.1. BASIC RESULTS AND DEFINITIONS 67
¬
OO
_
OO
^
OO
^
OO
GG
¬
??
¬
__
>> `` OO
66
OO
KK
Figure 1. Using de Morgan and replicating gates.
_
OO
_
OO
?? __GG WWShuffle - Soltys IWOCA 2013 Upper bound - 7/12
Suppose that we want a family of circuits that recognize
{1n : n ∈ N} ⊆ {0, 1}∗.
4x x x x x x x x x x1 21 1 12 23 3
I.e., it can be done with a ciruit family {Ci } where |Ci | ≤ 1 (and
depth 1), and hence in AC0
.
Shuffle - Soltys IWOCA 2013 Upper bound - 8/12
By results of Sudborough & Venkateswaran:
NL ⊆ SAC1
⊆ AC1
Shuffle - Soltys IWOCA 2013 Upper bound - 9/12
Lower Bound
#(x)s be the number of occurrences of a symbol s in the string x.
Shuffle(0#(x)0 , 1#(x)1 , x) is always true.
Parity(x) =
0 ≤ i ≤ |x|
i is odd
Shuffle(0|x|−i
, 1i
, x),
Shuffle - Soltys IWOCA 2013 Lower bound - 10/12
n−i
i=1 i=3 i=5 i=n
0 x 1 1 10 0 0x x x1
ii n−i i in−i n−i
Shuffle - Soltys IWOCA 2013 Lower bound - 11/12
By the famous result of Furst, Saxe, Sipser, Parity ∈ AC0
.
Therefore Shuffle ∈ AC0
.
Shuffle - Soltys IWOCA 2013 Lower bound - 12/12
1 of 13

Recommended

Numerical Methods: curve fitting and interpolation by
Numerical Methods: curve fitting and interpolationNumerical Methods: curve fitting and interpolation
Numerical Methods: curve fitting and interpolationNikolai Priezjev
475 views61 slides
Perfect method for Frames by
Perfect method for FramesPerfect method for Frames
Perfect method for Framesandreslahe
462 views46 slides
Controllability observability-pole-zero-cancellation by
Controllability observability-pole-zero-cancellationControllability observability-pole-zero-cancellation
Controllability observability-pole-zero-cancellationcairo university
55 views3 slides
Vcla - Inner Products by
Vcla - Inner ProductsVcla - Inner Products
Vcla - Inner ProductsPreetshah1212
566 views28 slides
South indian bridal makeup by
South indian bridal makeupSouth indian bridal makeup
South indian bridal makeupSrinivas Krishnaswamy
164 views15 slides
Amalfi coast villa 947,italy by
Amalfi coast villa 947,italyAmalfi coast villa 947,italy
Amalfi coast villa 947,italyVillaGetaways
289 views7 slides

More Related Content

Viewers also liked

Unambiguous functions in logarithmic space - CiE 2009 by
Unambiguous functions in logarithmic space - CiE 2009Unambiguous functions in logarithmic space - CiE 2009
Unambiguous functions in logarithmic space - CiE 2009Michael Soltys
809 views34 slides
Games on Posets - CiE 2008 by
Games on Posets - CiE 2008Games on Posets - CiE 2008
Games on Posets - CiE 2008Michael Soltys
830 views27 slides
Boolean Programs and Quantified Propositional Proof System - by
Boolean Programs and Quantified Propositional Proof System - Boolean Programs and Quantified Propositional Proof System -
Boolean Programs and Quantified Propositional Proof System - Michael Soltys
2.1K views17 slides
Intro to Cryptography by
Intro to CryptographyIntro to Cryptography
Intro to CryptographyMichael Soltys
1.2K views45 slides
Algorithms on Strings by
Algorithms on StringsAlgorithms on Strings
Algorithms on StringsMichael Soltys
1.6K views29 slides
The proof complexity of matrix algebra - Newton Institute, Cambridge 2006 by
The proof complexity of matrix algebra - Newton Institute, Cambridge 2006The proof complexity of matrix algebra - Newton Institute, Cambridge 2006
The proof complexity of matrix algebra - Newton Institute, Cambridge 2006Michael Soltys
1K views45 slides

Viewers also liked(20)

Unambiguous functions in logarithmic space - CiE 2009 by Michael Soltys
Unambiguous functions in logarithmic space - CiE 2009Unambiguous functions in logarithmic space - CiE 2009
Unambiguous functions in logarithmic space - CiE 2009
Michael Soltys809 views
Boolean Programs and Quantified Propositional Proof System - by Michael Soltys
Boolean Programs and Quantified Propositional Proof System - Boolean Programs and Quantified Propositional Proof System -
Boolean Programs and Quantified Propositional Proof System -
Michael Soltys2.1K views
The proof complexity of matrix algebra - Newton Institute, Cambridge 2006 by Michael Soltys
The proof complexity of matrix algebra - Newton Institute, Cambridge 2006The proof complexity of matrix algebra - Newton Institute, Cambridge 2006
The proof complexity of matrix algebra - Newton Institute, Cambridge 2006
Michael Soltys1K views
La, permutations, and the hajós calculus - ICALP 2004 by Michael Soltys
La, permutations, and the hajós calculus - ICALP 2004La, permutations, and the hajós calculus - ICALP 2004
La, permutations, and the hajós calculus - ICALP 2004
Michael Soltys735 views
Fair ranking in competitive bidding procurement: a case analysis by Michael Soltys
Fair ranking in competitive bidding procurement: a case analysisFair ranking in competitive bidding procurement: a case analysis
Fair ranking in competitive bidding procurement: a case analysis
Michael Soltys952 views
Feasible Combinatorial Matrix Theory - MFCS2013 by Michael Soltys
Feasible Combinatorial Matrix Theory - MFCS2013Feasible Combinatorial Matrix Theory - MFCS2013
Feasible Combinatorial Matrix Theory - MFCS2013
Michael Soltys1.7K views
The proof theoretic strength of the Steinitz exchange theorem - EACA 2006 by Michael Soltys
The proof theoretic strength of the Steinitz exchange theorem - EACA 2006The proof theoretic strength of the Steinitz exchange theorem - EACA 2006
The proof theoretic strength of the Steinitz exchange theorem - EACA 2006
Michael Soltys904 views
Feasible Combinatorial Matrix Theory - LICS2013 presentation by Michael Soltys
Feasible Combinatorial Matrix Theory - LICS2013 presentationFeasible Combinatorial Matrix Theory - LICS2013 presentation
Feasible Combinatorial Matrix Theory - LICS2013 presentation
Michael Soltys1.2K views
A formal framework for Stringology by Michael Soltys
A formal framework for StringologyA formal framework for Stringology
A formal framework for Stringology
Michael Soltys1.1K views
Perceptions of Foundational Knowledge by CS students - WCCCE 2012 by Michael Soltys
Perceptions of Foundational Knowledge by CS students - WCCCE 2012Perceptions of Foundational Knowledge by CS students - WCCCE 2012
Perceptions of Foundational Knowledge by CS students - WCCCE 2012
Michael Soltys763 views
FITT Toolbox: Tools for Internal Collaboration by FITT
FITT Toolbox: Tools for Internal CollaborationFITT Toolbox: Tools for Internal Collaboration
FITT Toolbox: Tools for Internal Collaboration
FITT660 views
Forced repetitions over alphabet lists by Michael Soltys
Forced repetitions over alphabet listsForced repetitions over alphabet lists
Forced repetitions over alphabet lists
Michael Soltys805 views
An algorithmic view of Computer Science by Michael Soltys
An algorithmic view of Computer ScienceAn algorithmic view of Computer Science
An algorithmic view of Computer Science
Michael Soltys1.4K views
Iso 14001 environmental management system by TechnoSysCon
Iso 14001 environmental management systemIso 14001 environmental management system
Iso 14001 environmental management system
TechnoSysCon6.9K views
Story Mapping in a Nutshell by VersionOne
Story Mapping in a NutshellStory Mapping in a Nutshell
Story Mapping in a Nutshell
VersionOne37.4K views
20 Ideas for your Website Homepage Content by Barry Feldman
20 Ideas for your Website Homepage Content20 Ideas for your Website Homepage Content
20 Ideas for your Website Homepage Content
Barry Feldman98.1K views

Similar to Circuit Complexity of Shuffle - IWOCA 2013

MMsemester project by
MMsemester projectMMsemester project
MMsemester projectPreeti Sahu
79 views14 slides
Anomalous Diffusion Through Homopolar Membrane: One-Dimensional Model_ Crimso... by
Anomalous Diffusion Through Homopolar Membrane: One-Dimensional Model_ Crimso...Anomalous Diffusion Through Homopolar Membrane: One-Dimensional Model_ Crimso...
Anomalous Diffusion Through Homopolar Membrane: One-Dimensional Model_ Crimso...Crimsonpublishers-Mechanicalengineering
63 views4 slides
Two algorithms to accelerate training of back-propagation neural networks by
Two algorithms to accelerate training of back-propagation neural networksTwo algorithms to accelerate training of back-propagation neural networks
Two algorithms to accelerate training of back-propagation neural networksESCOM
845 views13 slides
Dynamic response of structures with uncertain properties by
Dynamic response of structures with uncertain propertiesDynamic response of structures with uncertain properties
Dynamic response of structures with uncertain propertiesUniversity of Glasgow
2.6K views50 slides
Electron diffraction: Tutorial with exercises and solutions (EMAT Workshop 2017) by
Electron diffraction: Tutorial with exercises and solutions (EMAT Workshop 2017)Electron diffraction: Tutorial with exercises and solutions (EMAT Workshop 2017)
Electron diffraction: Tutorial with exercises and solutions (EMAT Workshop 2017)Joke Hadermann
2.3K views210 slides
2d beam element with combined loading bending axial and torsion by
2d beam element with combined loading bending axial and torsion2d beam element with combined loading bending axial and torsion
2d beam element with combined loading bending axial and torsionrro7560
1.5K views64 slides

Similar to Circuit Complexity of Shuffle - IWOCA 2013(20)

Two algorithms to accelerate training of back-propagation neural networks by ESCOM
Two algorithms to accelerate training of back-propagation neural networksTwo algorithms to accelerate training of back-propagation neural networks
Two algorithms to accelerate training of back-propagation neural networks
ESCOM845 views
Dynamic response of structures with uncertain properties by University of Glasgow
Dynamic response of structures with uncertain propertiesDynamic response of structures with uncertain properties
Dynamic response of structures with uncertain properties
Electron diffraction: Tutorial with exercises and solutions (EMAT Workshop 2017) by Joke Hadermann
Electron diffraction: Tutorial with exercises and solutions (EMAT Workshop 2017)Electron diffraction: Tutorial with exercises and solutions (EMAT Workshop 2017)
Electron diffraction: Tutorial with exercises and solutions (EMAT Workshop 2017)
Joke Hadermann2.3K views
2d beam element with combined loading bending axial and torsion by rro7560
2d beam element with combined loading bending axial and torsion2d beam element with combined loading bending axial and torsion
2d beam element with combined loading bending axial and torsion
rro75601.5K views
Mathcad - CMS (Component Mode Synthesis) Analysis.pdf by Julio Banks
Mathcad - CMS (Component Mode Synthesis) Analysis.pdfMathcad - CMS (Component Mode Synthesis) Analysis.pdf
Mathcad - CMS (Component Mode Synthesis) Analysis.pdf
Julio Banks28 views
Chapter 15 solutions_to_exercises(engineering circuit analysis 7th) by Maamoun Hennache
Chapter 15 solutions_to_exercises(engineering circuit analysis 7th)Chapter 15 solutions_to_exercises(engineering circuit analysis 7th)
Chapter 15 solutions_to_exercises(engineering circuit analysis 7th)
Maamoun Hennache9.5K views
Artificial neural netwoks2 by yosser atassi
Artificial neural netwoks2Artificial neural netwoks2
Artificial neural netwoks2
yosser atassi179 views
Lecture 5: Stochastic Hydrology by Amro Elfeki
Lecture 5: Stochastic Hydrology Lecture 5: Stochastic Hydrology
Lecture 5: Stochastic Hydrology
Amro Elfeki216 views
Chapter 16 solutions_to_exercises(engineering circuit analysis 7th) by Maamoun Hennache
Chapter 16 solutions_to_exercises(engineering circuit analysis 7th)Chapter 16 solutions_to_exercises(engineering circuit analysis 7th)
Chapter 16 solutions_to_exercises(engineering circuit analysis 7th)
Maamoun Hennache9.8K views
Engineering circuit-analysis-solutions-7ed-hayt [upload by r1-lher by Rick Cevallos
Engineering circuit-analysis-solutions-7ed-hayt [upload by r1-lherEngineering circuit-analysis-solutions-7ed-hayt [upload by r1-lher
Engineering circuit-analysis-solutions-7ed-hayt [upload by r1-lher
Rick Cevallos4.6K views
Engineering circuit-analysis-solutions-7ed-hayt by Aracely Guerrero
Engineering circuit-analysis-solutions-7ed-haytEngineering circuit-analysis-solutions-7ed-hayt
Engineering circuit-analysis-solutions-7ed-hayt
Aracely Guerrero215 views
Section 4 3_the_scattering_matrix_package by Jamal Kazazi
Section 4 3_the_scattering_matrix_packageSection 4 3_the_scattering_matrix_package
Section 4 3_the_scattering_matrix_package
Jamal Kazazi667 views

Recently uploaded

Homily: Christ The King 2023.docx by
Homily: Christ The King 2023.docxHomily: Christ The King 2023.docx
Homily: Christ The King 2023.docxJames Knipper
36 views2 slides
Walking in maturity by
Walking in maturityWalking in maturity
Walking in maturityEd Sullivan
29 views34 slides
The Revealed Path Guide Book New Muslims by
The Revealed Path Guide Book New MuslimsThe Revealed Path Guide Book New Muslims
The Revealed Path Guide Book New MuslimsRamzy Ajem
9 views68 slides
First Sunday of Advent 2023 by
First Sunday of Advent 2023First Sunday of Advent 2023
First Sunday of Advent 2023Mission San Luis Rey Parish
431 views25 slides
His_Life_Our_Light_Part_1_His_Life_Our_Light by
His_Life_Our_Light_Part_1_His_Life_Our_LightHis_Life_Our_Light_Part_1_His_Life_Our_Light
His_Life_Our_Light_Part_1_His_Life_Our_LightNetwork Bible Fellowship
6 views17 slides
Christmas List - Mary_Slideshare.pptx by
Christmas List - Mary_Slideshare.pptxChristmas List - Mary_Slideshare.pptx
Christmas List - Mary_Slideshare.pptxStephen Palm
15 views20 slides

Recently uploaded(20)

Homily: Christ The King 2023.docx by James Knipper
Homily: Christ The King 2023.docxHomily: Christ The King 2023.docx
Homily: Christ The King 2023.docx
James Knipper36 views
Walking in maturity by Ed Sullivan
Walking in maturityWalking in maturity
Walking in maturity
Ed Sullivan29 views
The Revealed Path Guide Book New Muslims by Ramzy Ajem
The Revealed Path Guide Book New MuslimsThe Revealed Path Guide Book New Muslims
The Revealed Path Guide Book New Muslims
Ramzy Ajem9 views
Christmas List - Mary_Slideshare.pptx by Stephen Palm
Christmas List - Mary_Slideshare.pptxChristmas List - Mary_Slideshare.pptx
Christmas List - Mary_Slideshare.pptx
Stephen Palm15 views
Bulletin Final.pdf by business86
Bulletin Final.pdfBulletin Final.pdf
Bulletin Final.pdf
business8632 views
December 2023 Calendar of Events by Floodwoodvern
December 2023 Calendar of EventsDecember 2023 Calendar of Events
December 2023 Calendar of Events
Floodwoodvern14 views
Deerfoot Church of Christ 12 3 23 by deerfootcoc
Deerfoot Church of Christ 12 3 23Deerfoot Church of Christ 12 3 23
Deerfoot Church of Christ 12 3 23
deerfootcoc15 views
Presentation for USA partners. Service in November 2023.pptx by Pavel Tsarevsky
Presentation for USA partners. Service in November 2023.pptxPresentation for USA partners. Service in November 2023.pptx
Presentation for USA partners. Service in November 2023.pptx
Pavel Tsarevsky12 views
Parish Diary for Dec. 23-Jan. 24. by Chris Lyne
Parish Diary for Dec. 23-Jan. 24.Parish Diary for Dec. 23-Jan. 24.
Parish Diary for Dec. 23-Jan. 24.
Chris Lyne7 views
KingsandProphets2.pptx by Vaughndj
KingsandProphets2.pptxKingsandProphets2.pptx
KingsandProphets2.pptx
Vaughndj12 views
BRAVELY - CHICO XAVIER.pdf by MashaL38
BRAVELY - CHICO XAVIER.pdfBRAVELY - CHICO XAVIER.pdf
BRAVELY - CHICO XAVIER.pdf
MashaL3811 views
Formed: Finding the Truth About Who You Are by Cole Hartman
Formed: Finding the Truth About Who You AreFormed: Finding the Truth About Who You Are
Formed: Finding the Truth About Who You Are
Cole Hartman27 views

Circuit Complexity of Shuffle - IWOCA 2013

  • 1. Circuit complexity of shuffle Michael Soltys July 10, 2013 Shuffle - Soltys IWOCA 2013 Title - 1/12
  • 2. Shuffle w is a shuffle of x and y: Shuffle(x, y, w) x = 01101110 y = 10101000 w = 0110110011101000 Shuffle - Soltys IWOCA 2013 Definition - 2/12
  • 3. Shuffle w is a shuffle of x and y: Shuffle(x, y, w) x = 01101110 y = 10101000 w = 0110110011101000 w is a shuffle of x and y provided: x = x1x2 · · · xk and y = y1y2 · · · yk and w obtained by “interleaving”: w = x1y1x2y2 · · · xkyk. Shuffle - Soltys IWOCA 2013 Definition - 2/12
  • 4. Motivation Modelling and verification of concurrent systems Used in XML database systems for schema definitions Plan recognition Natural language processing See http://bit.ly/17OD2md for more details Shuffle - Soltys IWOCA 2013 Motivation - 3/12
  • 5. Square Shuffle w is a square provided it is equal to a shuffle of a x with itself, i.e., ∃x s.t. Shuffle(x, x, w). The string w = 0110110011101000 is a square: w = 0110110011101000 and x = 01101100 = 01101100 Shuffle - Soltys IWOCA 2013 Square Shuffle - 4/12
  • 6. given an alphabet Σ, |Σ| ≥ 7, Square = {w : ∃x Shuffle(x, x, w)} is NP-complete; see http://arxiv.org/abs/1211.7161 What we leave open: What about |Σ| = 2 (for |Σ| = 1, Square is just the set of even length strings) What about if |Σ| = ∞ but each symbol cannot occur more often than, say, 6 times (if each symbol occurs at most 4 times, Square can be reduced to 2-Sat – see P. Austrin Stack Exchange post http://bit.ly/WATco3) Shuffle - Soltys IWOCA 2013 Square Shuffle - 5/12
  • 7. Upper Bound Shuffle(000, 111, 010101) Shuffle(011, 011, 001111) Based on Mansfield’s algorithm, Shuffle ∈ NL Shuffle - Soltys IWOCA 2013 Upper bound - 6/12
  • 8. Circuits 5.1. BASIC RESULTS AND DEFINITIONS 67 ¬ OO _ OO ^ OO ^ OO GG ¬ ?? ¬ __ >> `` OO 66 OO KK Figure 1. Using de Morgan and replicating gates. _ OO _ OO ?? __GG WWShuffle - Soltys IWOCA 2013 Upper bound - 7/12
  • 9. Suppose that we want a family of circuits that recognize {1n : n ∈ N} ⊆ {0, 1}∗. 4x x x x x x x x x x1 21 1 12 23 3 I.e., it can be done with a ciruit family {Ci } where |Ci | ≤ 1 (and depth 1), and hence in AC0 . Shuffle - Soltys IWOCA 2013 Upper bound - 8/12
  • 10. By results of Sudborough & Venkateswaran: NL ⊆ SAC1 ⊆ AC1 Shuffle - Soltys IWOCA 2013 Upper bound - 9/12
  • 11. Lower Bound #(x)s be the number of occurrences of a symbol s in the string x. Shuffle(0#(x)0 , 1#(x)1 , x) is always true. Parity(x) = 0 ≤ i ≤ |x| i is odd Shuffle(0|x|−i , 1i , x), Shuffle - Soltys IWOCA 2013 Lower bound - 10/12
  • 12. n−i i=1 i=3 i=5 i=n 0 x 1 1 10 0 0x x x1 ii n−i i in−i n−i Shuffle - Soltys IWOCA 2013 Lower bound - 11/12
  • 13. By the famous result of Furst, Saxe, Sipser, Parity ∈ AC0 . Therefore Shuffle ∈ AC0 . Shuffle - Soltys IWOCA 2013 Lower bound - 12/12