Test GR2: Różnice pomiędzy wersjami
m Zastępowanie tekstu - "\nonumber" na "" |
m Zastępowanie tekstu – „ \displaystyle ” na „” |
||
| Linia 13: | Linia 13: | ||
<center><math> | <center><math>\left| x \right|\ = \left\{ \begin{array}{rll} x & \text{ gdy }, x\geq 0 \\ -x & \text{ w przeciwnym przypadku}. | ||
\end{array} </math></center> | \end{array} </math></center> | ||
| Linia 32: | Linia 32: | ||
Ostatecznie, gramatyka w postaci Greibach ma postać: | Ostatecznie, gramatyka w postaci Greibach ma postać: | ||
<center><math> | <center><math> v_1 &\rightarrow bv_3v_2w_3v_1v_3\ |\ aw_3v_1v_3\ |\ bv_3v_2v_1v_3\ |\ av_1v_3\ |\ bv_3 \\ | ||
v_2 &\rightarrow bv_3v_2w_3v_1\ |\ aw_3v_1\ |\ bv_3v_2v_1\ |\ av_1\ |\ b \\ | v_2 &\rightarrow bv_3v_2w_3v_1\ |\ aw_3v_1\ |\ bv_3v_2v_1\ |\ av_1\ |\ b \\ | ||
v_3 &\rightarrow bv_3v_2w_3\ |\ aw_3\ |\ bv_3v_2\ |\ a | v_3 &\rightarrow bv_3v_2w_3\ |\ aw_3\ |\ bv_3v_2\ |\ a | ||
| Linia 241: | Linia 241: | ||
<math> | <math> | ||
\begin{array}{lll} | \begin{array}{lll} | ||
\displaystyle \text{b) } \lim_{x\rightarrow 2^+} (x-2)e^{\frac{1}{x-2}}&=& | \displaystyle \text{b) } \lim_{x\rightarrow 2^+} (x-2)e^{\frac{1}{x-2}}&=&\lim_{x\rightarrow | ||
2^+} \frac{e^{\frac{1}{x-2}}}{(x-2)^{-1}}\begin{array} {c}\left[\frac{\infty}{\infty}\right]\\=\\H\end{array} | 2^+} \frac{e^{\frac{1}{x-2}}}{(x-2)^{-1}}\begin{array} {c}\left[\frac{\infty}{\infty}\right]\\=\\H\end{array} | ||
\lim_{x\rightarrow 2^+} | \lim_{x\rightarrow 2^+} | ||
\frac{-(x-2)^{-2}e^{\frac{1}{x-2}}}{-(x-2)^{-2}}=\\ | \frac{-(x-2)^{-2}e^{\frac{1}{x-2}}}{-(x-2)^{-2}}=\\ | ||
&=& | &=&\lim_{x\rightarrow 2^+} e^{\frac{1}{x-2}}=+\infty; | ||
\end{array} | \end{array} | ||
</math><br> | </math><br> | ||
| Linia 474: | Linia 474: | ||
<math> | <math>g(C)=\left\{\begin{align} C\cup \{f(C')\}\\C\end{align} \right</math> | ||
<math> | <math>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 }\\ | (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</math> | \forall c \forall d\; &(c\in C\land d\in C'\setminus C) \implies c\sqsubseteq' d \end{align} \right</math> | ||
Wersja z 08:50, 28 sie 2023
| 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 | 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displaystyle g(C)=\left\{\begin{align} C\cup \{f(C')\}\\C\end{align} \right}
Parser nie mógł rozpoznać (błąd składni): {\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