Skip to content
Snippets Groups Projects
  1. Apr 15, 2022
  2. Mar 20, 2022
  3. Mar 06, 2022
  4. Feb 23, 2022
  5. Feb 09, 2022
  6. Feb 07, 2022
  7. Feb 05, 2022
  8. Feb 01, 2022
  9. Jan 27, 2022
  10. Jan 26, 2022
  11. Jan 02, 2022
  12. Dec 26, 2021
  13. Dec 20, 2021
  14. Dec 05, 2021
    • Tomáš Pecka's avatar
      algo: Fix AutomataConcatenation when first automaton has a word of len 1 · 0fb7a684
      Tomáš Pecka authored
      The algorithm, taken from BI-AAG course @ FIT CTU did not work
      correctly when first automaton accepts a word of length 1.
      
      There are two bugs. First, the set of final states was wrong. This was
      the easy part to spot.
      Second, we sometimes miss some transitions.
      
      Consider these two automata:
       DFA a b
       ><A B -
        <B - -
      
       DFA a b
       ><C - -
      
      The algorithm would result in this:
       DFA a   b
       ><S B   C
         A B|C -
         B -   -
        <C -   C
      
      Which is of course wrong because the first automaton accepts "a + #E"
      and the second one accepts a language of "b*". However, the result
      doesn't accept words from neither "a" nor "ab*" which is in language
      "(a+#E)b*".
      
      The problem is that for every transition in the first automaton that
      leads to a final state we create a new transition to an initial state of
      the second automaton. This effectively says that "ok, we are done with
      first automaton, we would accept. Let's continue from the initial state
      of the second automaton".
      Also, when we create a new initial state, we *only* copy transitions from
      both initial states there. But if the word is of length 1 and is to be
      accepted by the first automaton, we are missing this "transition to second
      automaton".
      In our example above, we need to add a transition (S, a) -> C and it's
      fine.
      Unverified
      0fb7a684
  15. Dec 03, 2021
  16. Nov 27, 2021
  17. Nov 26, 2021
  18. Nov 23, 2021
  19. Nov 21, 2021
    • Jan Trávníček's avatar
      algo: fix MP algo · e2929988
      Jan Trávníček authored and Tomáš Pecka's avatar Tomáš Pecka committed
      MP algorithm was always resetting the pattern index to 0 whereas it should be
      reused. This revealed that Spos should also take into account node wildcards
      otherwise the presumed not-necessary-to-be-parsed part of the pattern does not
      have to be matching the pattern. Which caused the computation of what does not
      need to be matched to underflow.
      Unverified
      e2929988
  20. Nov 20, 2021
  21. Oct 15, 2021
  22. Jul 20, 2021
  23. May 28, 2021
  24. Apr 03, 2021
  25. Mar 25, 2021
Loading