Test GR2: Różnice pomiędzy wersjami

Z Studia Informatyczne
Przejdź do nawigacjiPrzejdź do wyszukiwania
Rogoda (dyskusja | edycje)
Nie podano opisu zmian
Rogoda (dyskusja | edycje)
Nie podano opisu zmian
Linia 52: Linia 52:
! <math>\textnormal{p}</math>!! <math>\textnormal{q}</math>!! <math>\textnormal{p} \wedge \textnormal{q}</math>!! <math>\neg( p \wedge q)</math>!! <math>\neg p</math>!! <math>\neg q</math>!! <math>\neg p \vee \neg q</math>
! <math>\textnormal{p}</math>!! <math>\textnormal{q}</math>!! <math>\textnormal{p} \wedge \textnormal{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
| &nbsp;0&nbsp;|| &nbsp;0&nbsp;|| 0|| 1|| 1|| 1|| 1
|-
|-
| 0|| 1|| 0|| 1|| 1|| 0|| 1
| &nbsp;0&nbsp;|| &nbsp;1&nbsp;|| 0|| 1|| 1|| 0|| 1
|-
|-
| 1|| 0|| 0|| 1|| 0|| 1|| 1
| &nbsp;1&nbsp;|| &nbsp;0&nbsp;|| 0|| 1|| 0|| 1|| 1
|-
|-
| 1|| 1|| 1|| 0|| 0|| 0|| 0
| &nbsp;1&nbsp;|| &nbsp;1&nbsp;|| 1|| 0|| 0|| 0|| 0
|}
 
 
{| border="1"
! <math>\textnormal{p}</math>!! <math>\textnormal{q}</math>!! <math>\textnormal{r}</math>!!<math>(\textnormal{p} \wedge \textnormal{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|| 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
|}
|}

Wersja z 16:56, 4 sie 2006

Złożoność czasowa Złożoność pamięciowa
Maszyna dodająca f(0)=1
f(1)=3
f(n)=n+3;n2
f(0)=2
f(1)=3
f(n)=n+1;n2
Maszyna rozpoznająca ww f(n)=6+8++(n+3)+2;n=2k+1
f(n)=5+7++(n+3)+1;n=2k
f(n)=n+1


0 1 ... ...
Cell1 Cell2


0 1
 0   1   1 
 1   0   1 


p ¬p
 0   1 
 1   0 


0 1
 0   0   0 
 1   0   1 
0 1
 0   0   1 
 1   1   1 
Parser nie mógł rozpoznać (błąd składni): {\displaystyle \textnormal{p}} Parser nie mógł rozpoznać (błąd składni): {\displaystyle \textnormal{q}} Parser nie mógł rozpoznać (błąd składni): {\displaystyle \textnormal{p} \wedge \textnormal{q}} ¬(pq) ¬p ¬q ¬p¬q
 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


Parser nie mógł rozpoznać (błąd składni): {\displaystyle \textnormal{p}} Parser nie mógł rozpoznać (błąd składni): {\displaystyle \textnormal{q}} Parser nie mógł rozpoznać (błąd składni): {\displaystyle \textnormal{r}} Parser nie mógł rozpoznać (błąd składni): {\displaystyle (\textnormal{p} \wedge \textnormal{q})} (pr) (q¬r) (pr)(q¬r) (pq)((pr)(q¬r))
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