Test GR2: Różnice pomiędzy wersjami
m Zastępowanie tekstu - "\endcases" na "\end{cases}" |
m Zastępowanie tekstu - "\textnormal" na "\text" |
||
Linia 305: | Linia 305: | ||
{| border="1" | {| border="1" | ||
! <math>\ | ! <math>\text{p}</math>!! <math>\text{q}</math>!! <math>\text{p} \wedge \text{q}</math>!! <math>\neg( p \wedge q)</math>!! <math>\neg p</math>!! <math>\neg q</math>!! <math>\neg p \vee \neg q</math> | ||
|- | |- | ||
| 0 || 0 || 0|| 1|| 1|| 1|| 1 | | 0 || 0 || 0|| 1|| 1|| 1|| 1 | ||
Linia 318: | Linia 318: | ||
{| border="1" | {| border="1" | ||
! <math>\ | ! <math>\text{p}</math>!! <math>\text{q}</math>!! <math>\text{r}</math>!!<math>(\text{p} \wedge \text{q})</math>!! <math>( p \wedge r)</math>!! <math>( q \wedge \neg r)</math>!! <math>(p \wedge r) \vee (q \wedge \neg r)</math>!! <math>(p \wedge q) \Rightarrow ((p \wedge r) \vee (q \wedge \neg r))</math> | ||
|- | |- | ||
| 0|| 0|| 0|| 0|| 0|| 0|| 0|| 1 | | 0|| 0|| 0|| 0|| 0|| 0|| 0|| 1 | ||
Linia 347: | Linia 347: | ||
| 2|| 0|| 0|| 1|| 0|| || <math>\neg (p \Rightarrow q)</math> | | 2|| 0|| 0|| 1|| 0|| || <math>\neg (p \Rightarrow q)</math> | ||
|- | |- | ||
| 3|| 0|| 0|| 1|| 1|| || <math>\ | | 3|| 0|| 0|| 1|| 1|| || <math>\text{p}</math> | ||
|- | |- | ||
| 4|| 0|| 1|| 0|| 0|| || <math>\neg (q \Rightarrow p)</math> | | 4|| 0|| 1|| 0|| 0|| || <math>\neg (q \Rightarrow p)</math> | ||
|- | |- | ||
| 5|| 0|| 1|| 0|| 1|| || <math>\ | | 5|| 0|| 1|| 0|| 1|| || <math>\text{q}</math> | ||
|- | |- | ||
| 6|| 0|| 1|| 1|| 0|| || <math>XOR</math> | | 6|| 0|| 1|| 1|| 0|| || <math>XOR</math> | ||
Linia 376: | Linia 376: | ||
{| border="1" | {| border="1" | ||
! <math>\ | ! <math>\text{p}</math>!! <math>\text{q}</math>!! <math>\text{r}</math>!!<math>(p \leftrightarrow q)</math>!! <math>(p \leftrightarrow q) \leftrightarrow r</math>!! <math>(q \leftrightarrow r)</math>!! <math>p \leftrightarrow (q \leftrightarrow r)</math> | ||
|- | |- | ||
| 0|| 0|| 0|| 1|| 0|| 1|| 0 | | 0|| 0|| 0|| 1|| 0|| 1|| 0 | ||
Linia 397: | Linia 397: | ||
{| border="1" | {| border="1" | ||
! <math>\ | ! <math>\text{p}</math>!! <math>\text{q}</math>!! <math>\text{r}</math>!!<math>\circ (p, q, r)</math> | ||
|- | |- | ||
| 0|| 0|| 0|| 0 | | 0|| 0|| 0|| 0 | ||
Linia 418: | Linia 418: | ||
{| border="1" | {| border="1" | ||
! <math>\ | ! <math>\text{p}</math>!! <math>\text{q}</math>!! <math>\text{r}</math>!!<math>f_{p \rightarrow _(q \rightarrow r)}</math> | ||
|- | |- | ||
| 0|| 0|| 0|| 1 | | 0|| 0|| 0|| 1 |
Wersja z 15:27, 10 cze 2020
0 | 0 | 1 | 1 | |
0 | 1 | 0 | 1 | |
1 | 0 | 1 | 1 | |
1 | 1 | 1 | 1 |
oraz
Ostatecznie, gramatyka w postaci Greibach ma postać:
Algorytm Minimalizuj2 - algorytm minimalizacji automatu wykorzystujący stabilizujący się ciąg relacji
1 Wejście: - automat taki, że . 2 Wyjście: automat minimalny dla . 3 ; 4 ; 5 repeat 6 Parser nie mógł rozpoznać (nieznana funkcja „\slash”): {\displaystyle \displaystyle \slash \slash} oblicz : ; 7 ; 8 empty 9 for each do 10 flagtrue; 11 for each 12 if not then 13 flagfalse; 14 end if 15 end for 16 if flag=true and then 17 ; 18 end if 19 end for 20 until 21 Parser nie mógł rozpoznać (nieznana funkcja „\slash”): {\displaystyle \displaystyle S' \leftarrow S \slash \overline{\rho}_i} ; 22 for each Parser nie mógł rozpoznać (nieznana funkcja „\slash”): {\displaystyle \displaystyle [s]_{\overline{\rho}_i} \in S \slash \overline{\rho}_i} do 23 for each do 24 ; 25 end for 26 end for 27 ; 28 ; 29 return ;
|| || | |
|| || || | |
|| || || | |
|| || || | |
|| || || | |
|| || || | |
|| || || | |
|| || || | |
|| || || | |
... || ... || ... || ... | |
alalalalaa
alala
Złożoność czasowa | Złożoność pamięciowa | |
---|---|---|
Maszyna dodająca | ||
Maszyna rozpoznająca |
0 | 1 | ... | ... | |
---|---|---|---|---|
Cell1 | Cell2 |
0 | 1 | ||
---|---|---|---|
0 | 1 | 1 | |
1 | 0 | 1 |
0 | 1 | |
1 | 0 |
0 | 1 | ||
---|---|---|---|
0 | 0 | 0 | |
1 | 0 | 1 |
0 | 1 | ||
---|---|---|---|
0 | 0 | 1 | |
1 | 1 | 1 |
0 | 0 | 0 | 1 | 1 | 1 | 1 |
0 | 1 | 0 | 1 | 1 | 0 | 1 |
1 | 0 | 0 | 1 | 0 | 1 | 1 |
1 | 1 | 1 | 0 | 0 | 0 | 0 |
0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 |
0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 |
1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1 | 0 | 1 | 0 | 1 | 0 | 1 | 1 |
1 | 1 | 0 | 1 | 0 | 1 | 1 | 1 |
1 | 1 | 1 | 1 | 1 | 0 | 1 | 1 |
Numer funkcji |
||||||
---|---|---|---|---|---|---|
0 | 0 | 0 | 0 | 0 | ||
1 | 0 | 0 | 0 | 1 | ||
2 | 0 | 0 | 1 | 0 | ||
3 | 0 | 0 | 1 | 1 | ||
4 | 0 | 1 | 0 | 0 | ||
5 | 0 | 1 | 0 | 1 | ||
6 | 0 | 1 | 1 | 0 | ||
7 | 0 | 1 | 1 | 1 | ||
8 | 1 | 0 | 0 | 0 | ||
9 | 1 | 0 | 0 | 1 | ||
10 | 1 | 0 | 1 | 0 | ||
11 | 1 | 0 | 1 | 1 | ||
12 | 1 | 1 | 0 | 0 | ||
13 | 1 | 1 | 0 | 1 | ||
14 | 1 | 1 | 1 | 0 | ||
15 | 1 | 1 | 1 | 1 |
0 | 0 | 0 | 1 | 0 | 1 | 0 |
0 | 0 | 1 | 1 | 1 | 0 | 1 |
0 | 1 | 0 | 0 | 1 | 0 | 1 |
0 | 1 | 1 | 0 | 0 | 1 | 0 |
1 | 0 | 0 | 0 | 1 | 1 | 1 |
1 | 0 | 1 | 0 | 0 | 0 | 0 |
1 | 1 | 0 | 1 | 0 | 0 | 0 |
1 | 1 | 1 | 1 | 1 | 1 | 1 |
0 | 0 | 0 | 0 |
0 | 0 | 1 | 1 |
0 | 1 | 0 | 1 |
0 | 1 | 1 | 0 |
1 | 0 | 0 | 1 |
1 | 0 | 1 | 0 |
1 | 1 | 0 | 0 |
1 | 1 | 1 | 1 |
0 | 0 | 0 | 1 |
0 | 0 | 1 | 1 |
0 | 1 | 0 | 1 |
0 | 1 | 1 | 1 |
1 | 0 | 0 | 1 |
1 | 0 | 1 | 1 |
1 | 1 | 0 | 0 |
1 | 1 | 1 | 1 |
0 | 1 | 2 | ||
---|---|---|---|---|
0 | 2 | 2 | 2 | |
1 | 0 | 2 | 2 | |
2 | 0 | 1 | 2 |
Nagroda Goedla
Zobacz Nagroda Goedla]]
Nagroda Turinga
Zobacz Nagroda Turinga
Nagroda Knutha
Zobacz Nagroda Knutha
Parser nie mógł rozpoznać (błąd składni): {\displaystyle \displaystyle g(C)=\left\{\begin{align} C\cup \{f(C')\}\\C\end{align} \right}
Parser nie mógł rozpoznać (błąd składni): {\displaystyle \displaystyle c\forall d\; c\in C \land d\in C \land c\sqsubseteq d\implies c\sqsubseteq' d, (C,\sqsubseteq) \preccurlyeq (C',\sqsubseteq') \iff C\subset C' \land \left\{\begin{align} \forall c \forall d\; &(c\in C\land d\in C) \implies (c\sqsubseteq d \iff c\sqsubseteq' d) \text{ oraz }\\ \forall c \forall d\; &(c\in C\land d\in C'\setminus C) \implies c\sqsubseteq' d \end{align} \right}
dla każdego Parser nie mógł rozpoznać (błąd składni): {\displaystyle a \in A \\h(n', a) = g(h(n, a), n, a)}
dla każdego i
dla każdego Parser nie mógł rozpoznać (błąd składni): {\displaystyle a \in A \\ e(g(n, a), n, a)}
dla każdego i