compressed membership for nfa dfa with compressed labels
play

Compressed Membership for NFA (DFA) with Compressed Labels is in NP - PowerPoint PPT Presentation

Compressed Membership for NFA (DFA) with Compressed Labels is in NP (P) Artur Je Wrocaw, Poland 7 September 2011 Compressed membership for NFA 7 September 2011 1 / 25 Artur Je Straight Line Programms SLPs Definition (Straight Line


  1. Compressed Membership for NFA (DFA) with Compressed Labels is in NP (P) Artur Jeż Wrocław, Poland 7 September 2011 Compressed membership for NFA 7 September 2011 1 / 25 Artur Jeż

  2. Straight Line Programms SLPs Definition (Straight Line Programms (SLP)) Context free grammar defining a single word. (Chomsky normal form). Compressed membership for NFA 7 September 2011 2 / 25 Artur Jeż

  3. Straight Line Programms SLPs Definition (Straight Line Programms (SLP)) Context free grammar defining a single word. (Chomsky normal form). Much smaller, than the word. Word a n : grammar size O ( log n ) A 1 → a A 2 → A 1 A 1 . . . A ℓ + 1 → A ℓ A ℓ A → A ℓ 0 A ℓ 1 . . . Compressed membership for NFA 7 September 2011 2 / 25 Artur Jeż

  4. Straight Line Programms SLPs Definition (Straight Line Programms (SLP)) Context free grammar defining a single word. (Chomsky normal form). Much smaller, than the word. Word a n : grammar size O ( log n ) A 1 → a A 2 → A 1 A 1 . . . A ℓ + 1 → A ℓ A ℓ A → A ℓ 0 A ℓ 1 . . . SLPs as a compression model application (LZ, logarithmic transformation) theory (formal languages) up to exponential compression preserves/captures word properties Compressed membership for NFA 7 September 2011 2 / 25 Artur Jeż

  5. Usage and work on SLP Theory word equations (Plandowski: satisfiability in PSPACE) Compressed membership for NFA 7 September 2011 3 / 25 Artur Jeż

  6. Usage and work on SLP Theory word equations (Plandowski: satisfiability in PSPACE) String algorithms equality pattern matching Compressed membership for NFA 7 September 2011 3 / 25 Artur Jeż

  7. Usage and work on SLP Theory word equations (Plandowski: satisfiability in PSPACE) String algorithms equality pattern matching LZW/LZ dealing algorithms O ( n log n ) pattern matching for LZ compressed text O ( n ) pattern matching for fully LZW compressed text Compressed membership for NFA 7 September 2011 3 / 25 Artur Jeż

  8. Usage and work on SLP Theory word equations (Plandowski: satisfiability in PSPACE) String algorithms equality pattern matching LZW/LZ dealing algorithms O ( n log n ) pattern matching for LZ compressed text O ( n ) pattern matching for fully LZW compressed text Independent interest indexing structure for SLP Compressed membership for NFA 7 September 2011 3 / 25 Artur Jeż

  9. Compressed membership SLPs are used membership problem develop tools/gain understanding Compressed membership for NFA 7 September 2011 4 / 25 Artur Jeż

  10. Compressed membership SLPs are used membership problem develop tools/gain understanding Compressed membership [Plandowski & Rytter; Jewels are forever 1999] In membership problems, words are given as SLPs. Compressed membership for NFA 7 September 2011 4 / 25 Artur Jeż

  11. Compressed membership SLPs are used membership problem develop tools/gain understanding Compressed membership [Plandowski & Rytter; Jewels are forever 1999] In membership problems, words are given as SLPs. Known results RE, CFG, Conjunctive grammars . . . Compressed membership for NFA 7 September 2011 4 / 25 Artur Jeż

  12. Compressed membership SLPs are used membership problem develop tools/gain understanding Compressed membership [Plandowski & Rytter; Jewels are forever 1999] In membership problems, words are given as SLPs. Known results RE, CFG, Conjunctive grammars . . . Open questions Posted in Jewels are forever some solved Compressed membership for NFA Compressed membership for NFA 7 September 2011 4 / 25 Artur Jeż

  13. Compressed membership for NFA Input: SLP, NFA N Output: Yes/No Compressed membership for NFA 7 September 2011 5 / 25 Artur Jeż

  14. Compressed membership for NFA Input: SLP, NFA N Output: Yes/No Simple dynamic algorithm: for X i calculate { ( p , q ) | δ ( p , word ( X i ) , q ) } Compressed membership for NFA 7 September 2011 5 / 25 Artur Jeż

  15. Compressed membership for NFA Input: SLP, NFA N Output: Yes/No Simple dynamic algorithm: for X i calculate { ( p , q ) | δ ( p , word ( X i ) , q ) } Where is the hardness? Compressed membership for NFA 7 September 2011 5 / 25 Artur Jeż

  16. Compressed membership for NFA Input: SLP, NFA N Output: Yes/No Simple dynamic algorithm: for X i calculate { ( p , q ) | δ ( p , word ( X i ) , q ) } Where is the hardness? Compress N as well: allow transition by words. Compressed membership for NFA 7 September 2011 5 / 25 Artur Jeż

  17. Compressed membership for NFA Input: SLP, NFA N Output: Yes/No Simple dynamic algorithm: for X i calculate { ( p , q ) | δ ( p , word ( X i ) , q ) } Where is the hardness? Compress N as well: allow transition by words. Fully compressed NFA membership SLP for w NFA N , compressed transitions Compressed membership for NFA 7 September 2011 5 / 25 Artur Jeż

  18. Compressed membership for NFA Input: SLP, NFA N Output: Yes/No Simple dynamic algorithm: for X i calculate { ( p , q ) | δ ( p , word ( X i ) , q ) } Where is the hardness? Compress N as well: allow transition by words. a X Fully compressed NFA membership Y b SLP for w NFA N , compressed transitions A X Compressed membership for NFA 7 September 2011 5 / 25 Artur Jeż

  19. Compressed membership for NFA: complexity Complexity NP-hardness (subsum), already for ◮ acyclic NFA ◮ unary alphabet in PSPACE: enough to store positions inside decompressed words Compressed membership for NFA 7 September 2011 6 / 25 Artur Jeż

  20. Compressed membership for NFA: complexity Complexity NP-hardness (subsum), already for ◮ acyclic NFA ◮ unary alphabet in PSPACE: enough to store positions inside decompressed words Conjecture In NP. Partial results Plandowski & Rytter (unary in NP) Lohrey & Mathissen (highly periodic in NP, highly aperiodic in P) Compressed membership for NFA 7 September 2011 6 / 25 Artur Jeż

  21. New results Theorem Fully compressed membership for NFA is in NP. Theorem Fully compressed membership for DFA is in P. Compressed membership for NFA 7 September 2011 7 / 25 Artur Jeż

  22. New results Theorem Fully compressed membership for NFA is in NP. Theorem Fully compressed membership for DFA is in P. New technique New, interesting technique. Compressed membership for NFA 7 September 2011 7 / 25 Artur Jeż

  23. Convention Convention SLPs given as a single grammar X i → X j X k , implies i > j , i > k input word: X n word ( X i ) Compressed membership for NFA 7 September 2011 8 / 25 Artur Jeż

  24. Idea: Recompression Difficulty: the words are long. Shorten them. Compressed membership for NFA 7 September 2011 9 / 25 Artur Jeż

  25. Idea: Recompression Difficulty: the words are long. Shorten them. a b c a a b Compressed membership for NFA 7 September 2011 9 / 25 Artur Jeż

  26. Idea: Recompression Difficulty: the words are long. Shorten them. d c a d Compressed membership for NFA 7 September 2011 9 / 25 Artur Jeż

  27. Idea: Recompression Difficulty: the words are long. Shorten them. d c a d Deeper understanding New production: d → ab . Building new SLP (recompression). SLP problems: hard, as SLP are different. Building canonical SLP for the instance. Compressed membership for NFA 7 September 2011 9 / 25 Artur Jeż

  28. Idea: Recompression Difficulty: the words are long. Shorten them. d c a d Deeper understanding New production: d → ab . Building new SLP (recompression). SLP problems: hard, as SLP are different. Building canonical SLP for the instance. What to do with a n ? a a c a a a Compressed membership for NFA 7 September 2011 9 / 25 Artur Jeż

  29. Idea: Recompression Difficulty: the words are long. Shorten them. d c a d Deeper understanding New production: d → ab . Building new SLP (recompression). SLP problems: hard, as SLP are different. Building canonical SLP for the instance. Replace each non-extendible a n by a single symbol. What to do with a n ? a 2 c a 3 Compressed membership for NFA 7 September 2011 9 / 25 Artur Jeż

  30. Idea: Recompression Difficulty: the words are long. Shorten them. d c a d Deeper understanding New production: d → ab . Building new SLP (recompression). SLP problems: hard, as SLP are different. Building canonical SLP for the instance. Replace each non-extendible a n by a single symbol. What to do with a n ? a 2 c a 3 Problems easy for text, what about grammar? what to do with the NFA? Compressed membership for NFA 7 September 2011 9 / 25 Artur Jeż

  31. Local decompression Re-compression decompressed text: easy; size: large, compressed text: hard; size: small. Compressed membership for NFA 7 September 2011 10 / 25 Artur Jeż

  32. Local decompression Re-compression decompressed text: easy; size: large, compressed text: hard; size: small. Local decompression Decompress locally the SLP: X → uYvZ u , v : blocks of letters, linear size Y , Z : nonterminals recompression inside u , v Compressed membership for NFA 7 September 2011 10 / 25 Artur Jeż

  33. Outline Outline of the algorithm while | word ( X n ) > n | do L Σ ← list of letters, L P ← list of pairs for ab ∈ L P do compress pair ab , modify N accordingly for a ∈ L Σ do compress a non-extendible appearances, modify N accordingly Decompress the word and solve the problem naively. Compressed membership for NFA 7 September 2011 11 / 25 Artur Jeż

Recommend


More recommend